Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1040] Too many connections in /opt/ojs_openjournal/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:38 Stack trace: #0 /opt/ojs_openjournal/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(38): PDO->__construct() #1 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct() #2 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(46): Illuminate\Database\Connectors\Connector->createPdoConnection() #3 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection() #4 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\Database\Connectors\MySqlConnector->connect() #5 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() #6 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(926): call_user_func() #7 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(961): Illuminate\Database\Connection->getPdo() #8 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(405): Illuminate\Database\Connection->getReadPdo() #9 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(360): Illuminate\Database\Connection->getPdoForSelect() #10 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(664): Illuminate\Database\Connection->Illuminate\Database\{closure}() #11 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\Database\Connection->runQueryCallback() #12 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(373): Illuminate\Database\Connection->run() #13 [internal function]: Illuminate\Database\Connection->cursor() #14 /opt/ojs_openjournal/lib/pkp/classes/session/SessionDAO.inc.php(37): Generator->current() #15 /opt/ojs_openjournal/lib/pkp/classes/session/SessionManager.inc.php(170): SessionDAO->getSession() #16 [internal function]: SessionManager->read() #17 /opt/ojs_openjournal/lib/pkp/classes/session/SessionManager.inc.php(60): session_start() #18 /opt/ojs_openjournal/lib/pkp/classes/session/SessionManager.inc.php(131): SessionManager->__construct() #19 /opt/ojs_openjournal/lib/pkp/classes/i18n/PKPLocale.inc.php(131): SessionManager::getManager() #20 /opt/ojs_openjournal/lib/pkp/classes/i18n/PKPLocale.inc.php(290): PKPLocale::getLocale() #21 /opt/ojs_openjournal/lib/pkp/classes/core/Dispatcher.inc.php(116): PKPLocale::initialize() #22 /opt/ojs_openjournal/lib/pkp/classes/core/PKPApplication.inc.php(360): Dispatcher->dispatch() #23 /opt/ojs_openjournal/index.php(68): PKPApplication->execute() #24 {main} Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [1040] Too many connections in /opt/ojs_openjournal/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18 Stack trace: #0 /opt/ojs_openjournal/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(42): Doctrine\DBAL\Driver\PDO\Exception::new() #1 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct() #2 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(46): Illuminate\Database\Connectors\Connector->createPdoConnection() #3 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection() #4 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\Database\Connectors\MySqlConnector->connect() #5 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() #6 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(926): call_user_func() #7 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(961): Illuminate\Database\Connection->getPdo() #8 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(405): Illuminate\Database\Connection->getReadPdo() #9 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(360): Illuminate\Database\Connection->getPdoForSelect() #10 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(664): Illuminate\Database\Connection->Illuminate\Database\{closure}() #11 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\Database\Connection->runQueryCallback() #12 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(373): Illuminate\Database\Connection->run() #13 [internal function]: Illuminate\Database\Connection->cursor() #14 /opt/ojs_openjournal/lib/pkp/classes/session/SessionDAO.inc.php(37): Generator->current() #15 /opt/ojs_openjournal/lib/pkp/classes/session/SessionManager.inc.php(170): SessionDAO->getSession() #16 [internal function]: SessionManager->read() #17 /opt/ojs_openjournal/lib/pkp/classes/session/SessionManager.inc.php(60): session_start() #18 /opt/ojs_openjournal/lib/pkp/classes/session/SessionManager.inc.php(131): SessionManager->__construct() #19 /opt/ojs_openjournal/lib/pkp/classes/i18n/PKPLocale.inc.php(131): SessionManager::getManager() #20 /opt/ojs_openjournal/lib/pkp/classes/i18n/PKPLocale.inc.php(290): PKPLocale::getLocale() #21 /opt/ojs_openjournal/lib/pkp/classes/core/Dispatcher.inc.php(116): PKPLocale::initialize() #22 /opt/ojs_openjournal/lib/pkp/classes/core/PKPApplication.inc.php(360): Dispatcher->dispatch() #23 /opt/ojs_openjournal/index.php(68): PKPApplication->execute() #24 {main} Next Illuminate\Database\QueryException: SQLSTATE[HY000] [1040] Too many connections (SQL: SELECT * FROM sessions WHERE session_id = op9nl9abtipk4cv9en72stfs09) in /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php:671 Stack trace: #0 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\Database\Connection->runQueryCallback() #1 /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(373): Illuminate\Database\Connection->run() #2 [internal function]: Illuminate\Database\Connection->cursor() #3 /opt/ojs_openjournal/lib/pkp/classes/session/SessionDAO.inc.php(37): Generator->current() #4 /opt/ojs_openjournal/lib/pkp/classes/session/SessionManager.inc.php(170): SessionDAO->getSession() #5 [internal function]: SessionManager->read() #6 /opt/ojs_openjournal/lib/pkp/classes/session/SessionManager.inc.php(60): session_start() #7 /opt/ojs_openjournal/lib/pkp/classes/session/SessionManager.inc.php(131): SessionManager->__construct() #8 /opt/ojs_openjournal/lib/pkp/classes/i18n/PKPLocale.inc.php(131): SessionManager::getManager() #9 /opt/ojs_openjournal/lib/pkp/classes/i18n/PKPLocale.inc.php(290): PKPLocale::getLocale() #10 /opt/ojs_openjournal/lib/pkp/classes/core/Dispatcher.inc.php(116): PKPLocale::initialize() #11 /opt/ojs_openjournal/lib/pkp/classes/core/PKPApplication.inc.php(360): Dispatcher->dispatch() #12 /opt/ojs_openjournal/index.php(68): PKPApplication->execute() #13 {main} thrown in /opt/ojs_openjournal/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 671