Just to add my case in the discussion to help : today the mysql database returned a too many connections exception (it seems there is a problem with my host) and the boot message was displayed to everybody with the password of the db... it was panic on board when I saw that ! I activated maintenance mode urgently !
I'm running beta 15 with debug off.
The full message hiding critical information with stars :
Flarum encountered a boot error (Doctrine\DBAL\Driver\PDO\Exception)
SQLSTATE[08004] [1040] Too many connections
thrown in /**********************************/beta/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php on line 18
PDOException: SQLSTATE[08004] [1040] Too many connections in *********************************/beta/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:38
Stack trace:
#0 *********************************/beta/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(38): PDO->__construct('mysql:host=**********.', '******************', '****************', Array)
#1 *********************************/beta/vendor/illuminate/database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=******.', '********', '**********', Array)
#2 *********************************/beta/vendor/illuminate/database/Connectors/Connector.php(46): Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=********', '********', '**************', Array)
#3 *********************************/beta/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=*****', Array, Array)
#4 *********************************/beta/vendor/illuminate/database/Connectors/ConnectionFactory.php(182): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#6 *********************************/beta/vendor/illuminate/database/Connection.php(924): call_user_func(Object(Closure))
#7 *********************************/beta/vendor/illuminate/database/Connection.php(906): Illuminate\Database\Connection->getPdo()
#8 *********************************/beta/vendor/illuminate/database/Connection.php(892): Illuminate\Database\Connection->getDoctrineConnection()
#9 *********************************/beta/vendor/flarum/core/src/Database/Migrator.php(67): Illuminate\Database\Connection->getDoctrineSchemaManager()
#10 [internal function]: Flarum\Database\Migrator->__construct(Object(Flarum\Database\DatabaseMigrationRepository), Object(Illuminate\Database\MySqlConnection), Object(Illuminate\Filesystem\Filesystem))
#11 *********************************/beta/vendor/illuminate/container/Container.php(843): ReflectionClass->newInstanceArgs(Array)
#12 *********************************/beta/vendor/illuminate/container/Container.php(681): Illuminate\Container\Container->build('Flarum\\Database...')
#13 *********************************/beta/vendor/illuminate/container/Container.php(629): Illuminate\Container\Container->resolve('Flarum\\Database...', Array)
#14 *********************************/beta/vendor/illuminate/container/Container.php(945): Illuminate\Container\Container->make('Flarum\\Database...')
#15 *********************************/beta/vendor/illuminate/container/Container.php(873): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#16 *********************************/beta/vendor/illuminate/container/Container.php(834): Illuminate\Container\Container->resolveDependencies(Array)
#17 *********************************/beta/vendor/illuminate/container/Container.php(261): Illuminate\Container\Container->build('Flarum\\Extensio...')
#18 *********************************/beta/vendor/illuminate/container/Container.php(799): Illuminate\Container\Container->Illuminate\Container\{closure}(Object(Illuminate\Container\Container), Array)
#19 *********************************/beta/vendor/illuminate/container/Container.php(681): Illuminate\Container\Container->build(Object(Closure))
#20 *********************************/beta/vendor/illuminate/container/Container.php(629): Illuminate\Container\Container->resolve('Flarum\\Extensio...', Array)
#21 *********************************/beta/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(30): Illuminate\Container\Container->make('flarum.extensio...')
#22 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension\{closure}(Object(Flarum\Foundation\Application))
#23 *********************************/beta/vendor/flarum/core/src/Foundation/Application.php(322): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#24 *********************************/beta/vendor/flarum/core/src/Foundation/Application.php(263): Flarum\Foundation\Application->fireAppCallbacks(Array)
#25 *********************************/beta/vendor/flarum/core/src/Foundation/InstalledSite.php(148): Flarum\Foundation\Application->boot()
#26 *********************************/beta/vendor/flarum/core/src/Foundation/InstalledSite.php(81): Flarum\Foundation\InstalledSite->bootLaravel()
#27 *********************************/beta/vendor/flarum/core/src/Http/Server.php(56): Flarum\Foundation\InstalledSite->bootApp()
#28 *********************************/beta/vendor/flarum/core/src/Http/Server.php(33): Flarum\Http\Server->safelyBootAndGetHandler()
#29 *********************************/beta/public/index.php(26): Flarum\Http\Server->listen()
#30 {main}
Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[08004] [1040] Too many connections in *********************************/beta/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
Stack trace:
#0 *********************************/beta/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(42): Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))
#1 *********************************/beta/vendor/illuminate/database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=*****', '*****', '************', Array)
#2 *********************************/beta/vendor/illuminate/database/Connectors/Connector.php(46): Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=*****', '*****', '************', Array)
#3 *********************************/beta/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=*****', Array, Array)
#4 *********************************/beta/vendor/illuminate/database/Connectors/ConnectionFactory.php(182): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#6 *********************************/beta/vendor/illuminate/database/Connection.php(924): call_user_func(Object(Closure))
#7 *********************************/beta/vendor/illuminate/database/Connection.php(906): Illuminate\Database\Connection->getPdo()
#8 *********************************/beta/vendor/illuminate/database/Connection.php(892): Illuminate\Database\Connection->getDoctrineConnection()
#9 *********************************/beta/vendor/flarum/core/src/Database/Migrator.php(67): Illuminate\Database\Connection->getDoctrineSchemaManager()
#10 [internal function]: Flarum\Database\Migrator->__construct(Object(Flarum\Database\DatabaseMigrationRepository), Object(Illuminate\Database\MySqlConnection), Object(Illuminate\Filesystem\Filesystem))
#11 *********************************/beta/vendor/illuminate/container/Container.php(843): ReflectionClass->newInstanceArgs(Array)
#12 *********************************/beta/vendor/illuminate/container/Container.php(681): Illuminate\Container\Container->build('Flarum\\Database...')
#13 *********************************/beta/vendor/illuminate/container/Container.php(629): Illuminate\Container\Container->resolve('Flarum\\Database...', Array)
#14 *********************************/beta/vendor/illuminate/container/Container.php(945): Illuminate\Container\Container->make('Flarum\\Database...')
#15 *********************************/beta/vendor/illuminate/container/Container.php(873): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#16 *********************************/beta/vendor/illuminate/container/Container.php(834): Illuminate\Container\Container->resolveDependencies(Array)
#17 *********************************/beta/vendor/illuminate/container/Container.php(261): Illuminate\Container\Container->build('Flarum\\Extensio...')
#18 *********************************/beta/vendor/illuminate/container/Container.php(799): Illuminate\Container\Container->Illuminate\Container\{closure}(Object(Illuminate\Container\Container), Array)
#19 *********************************/beta/vendor/illuminate/container/Container.php(681): Illuminate\Container\Container->build(Object(Closure))
#20 *********************************/beta/vendor/illuminate/container/Container.php(629): Illuminate\Container\Container->resolve('Flarum\\Extensio...', Array)
#21 *********************************/beta/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(30): Illuminate\Container\Container->make('flarum.extensio...')
#22 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension\{closure}(Object(Flarum\Foundation\Application))
#23 *********************************/beta/vendor/flarum/core/src/Foundation/Application.php(322): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#24 *********************************/beta/vendor/flarum/core/src/Foundation/Application.php(263): Flarum\Foundation\Application->fireAppCallbacks(Array)
#25 *********************************/beta/vendor/flarum/core/src/Foundation/InstalledSite.php(148): Flarum\Foundation\Application->boot()
#26 *********************************/beta/vendor/flarum/core/src/Foundation/InstalledSite.php(81): Flarum\Foundation\InstalledSite->bootLaravel()
#27 *********************************/beta/vendor/flarum/core/src/Http/Server.php(56): Flarum\Foundation\InstalledSite->bootApp()
#28 *********************************/beta/vendor/flarum/core/src/Http/Server.php(33): Flarum\Http\Server->safelyBootAndGetHandler()
#29 *********************************/beta/public/index.php(26): Flarum\Http\Server->listen()
#30 {main}