exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/vendor/propel/propel/src/Propel/Runtime/Connection/PdoConnection.php:59 Stack trace: #0 /var/www/vendor/propel/propel/src/Propel/Runtime/Connection/PdoConnection.php(59): PDO->__construct('mysql:host=127....', 'root', 'root', Array) #1 /var/www/vendor/propel/propel/src/Propel/Runtime/Adapter/Pdo/PdoAdapter.php(69): Propel\Runtime\Connection\PdoConnection->__construct('mysql:host=127....', 'root', 'root', Array) #2 /var/www/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionFactory.php(41): Propel\Runtime\Adapter\Pdo\PdoAdapter->getConnection(Array) #3 /var/www/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionManagerSingle.php(76): Propel\Runtime\Connection\ConnectionFactory::create(Array, Object(Propel\Runtime\Adapter\Pdo\MysqlAdapter)) #4 /var/www/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionManagerSingle.php(90): Propel\Runtime\Connection\ConnectionManagerSingle->getWriteConnection(Object(Propel\Runtime\Adapter\Pdo\MysqlAdapter)) #5 /var/www/vendor/propel/propel/src/Propel/Runtime/ServiceContainer/StandardServiceContainer.php(372): Propel\Runtime\Connection\ConnectionManagerSingle->getReadConnection(Object(Propel\Runtime\Adapter\Pdo\MysqlAdapter)) #6 /var/www/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/ModelCriteria.php(1018): Propel\Runtime\ServiceContainer\StandardServiceContainer->getReadConnection('wezooz') #7 /var/www/routes/hooks.php(19): Propel\Runtime\ActiveQuery\ModelCriteria->findOne() #8 [internal function]: {closure}() #9 /var/www/vendor/slim/slim/Slim/Slim.php(1208): call_user_func_array(Object(Closure), Array) #10 /var/www/vendor/slim/slim/Slim/Slim.php(1349): Slim\Slim->applyHook('slim.before.rou...') #11 /var/www/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call() #12 /var/www/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call() #13 /var/www/vendor/slim/slim/Slim/Slim.php(1300): Slim\Middleware\MethodOverride->call() #14 /var/www/app.php(30): Slim\Slim->run() #15 /var/www/bootstrap.php(50): require_once('/var/www/app.ph...') #16 /var/www/public/index.php(9): require('/var/www/bootst...') #17 {main} Next exception 'Propel\Runtime\Adapter\Exception\AdapterException' with message 'Unable to open PDO connection' in /var/www/vendor/propel/propel/src/Propel/Runtime/Adapter/Pdo/PdoAdapter.php:72 Stack trace: #0 /var/www/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionFactory.php(41): Propel\Runtime\Adapter\Pdo\PdoAdapter->getConnection(Array) #1 /var/www/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionManagerSingle.php(76): Propel\Runtime\Connection\ConnectionFactory::create(Array, Object(Propel\Runtime\Adapter\Pdo\MysqlAdapter)) #2 /var/www/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionManagerSingle.php(90): Propel\Runtime\Connection\ConnectionManagerSingle->getWriteConnection(Object(Propel\Runtime\Adapter\Pdo\MysqlAdapter)) #3 /var/www/vendor/propel/propel/src/Propel/Runtime/ServiceContainer/StandardServiceContainer.php(372): Propel\Runtime\Connection\ConnectionManagerSingle->getReadConnection(Object(Propel\Runtime\Adapter\Pdo\MysqlAdapter)) #4 /var/www/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/ModelCriteria.php(1018): Propel\Runtime\ServiceContainer\StandardServiceContainer->getReadConnection('wezooz') #5 /var/www/routes/hooks.php(19): Propel\Runtime\ActiveQuery\ModelCriteria->findOne() #6 [internal function]: {closure}() #7 /var/www/vendor/slim/slim/Slim/Slim.php(1208): call_user_func_array(Object(Closure), Array) #8 /var/www/vendor/slim/slim/Slim/Slim.php(1349): Slim\Slim->applyHook('slim.before.rou...') #9 /var/www/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call() #10 /var/www/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call() #11 /var/www/vendor/slim/slim/Slim/Slim.php(1300): Slim\Middleware\MethodOverride->call() #12 /var/www/app.php(30): Slim\Slim->run() #13 /var/www/bootstrap.php(50): require_once('/var/www/app.ph...') #14 /var/www/public/index.php(9): require('/var/www/bootst...') #15 {main} Next exception 'Propel\Runtime\Connection\Exception\ConnectionException' with message 'Unable to open connection' in /var/www/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionFactory.php:43 Stack trace: #0 /var/www/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionManagerSingle.php(76): Propel\Runtime\Connection\ConnectionFactory::create(Array, Object(Propel\Runtime\Adapter\Pdo\MysqlAdapter)) #1 /var/www/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionManagerSingle.php(90): Propel\Runtime\Connection\ConnectionManagerSingle->getWriteConnection(Object(Propel\Runtime\Adapter\Pdo\MysqlAdapter)) #2 /var/www/vendor/propel/propel/src/Propel/Runtime/ServiceContainer/StandardServiceContainer.php(372): Propel\Runtime\Connection\ConnectionManagerSingle->getReadConnection(Object(Propel\Runtime\Adapter\Pdo\MysqlAdapter)) #3 /var/www/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/ModelCriteria.php(1018): Propel\Runtime\ServiceContainer\StandardServiceContainer->getReadConnection('wezooz') #4 /var/www/routes/hooks.php(19): Propel\Runtime\ActiveQuery\ModelCriteria->findOne() #5 [internal function]: {closure}() #6 /var/www/vendor/slim/slim/Slim/Slim.php(1208): call_user_func_array(Object(Closure), Array) #7 /var/www/vendor/slim/slim/Slim/Slim.php(1349): Slim\Slim->applyHook('slim.before.rou...') #8 /var/www/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call() #9 /var/www/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call() #10 /var/www/vendor/slim/slim/Slim/Slim.php(1300): Slim\Middleware\MethodOverride->call() #11 /var/www/app.php(30): Slim\Slim->run() #12 /var/www/bootstrap.php(50): require_once('/var/www/app.ph...') #13 /var/www/public/index.php(9): require('/var/www/bootst...') #14 {main}