Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40
Stack trace:
#0 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(40): PDO->__construct('mysql:host=db;p...', 'admin', 'Hama#28806904', Array)
#1 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(25): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=db;p...', 'admin', 'Hama#28806904', Array)
#2 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(412): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'admin', 'Hama#28806904', Array)
#3 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(475): Doctrine\DBAL\Connection->connect()
#4 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(437): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#5 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(379): Doctrine\DBAL\Connection->detectDatabasePlatform()
#6 /var/www/html/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(140): Doctrine\DBAL\Connection->getDatabasePlatform()
#7 /var/www/html/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(119): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->getDatabasePlatform(Object(Doctrine\DBAL\Connection))
#8 /var/www/html/var/cache/dev/FrontContainer.php(1387): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->createConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Symfony\Bridge\Doctrine\ContainerAwareEventManager), Array)
#9 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(257): FrontContainer->getDoctrine_Dbal_DefaultConnectionService()
#10 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make('doctrine.dbal.d...', 1)
#11 /var/www/html/classes/module/Module.php(3469): Symfony\Component\DependencyInjection\Container->get('doctrine.dbal.d...')
#12 /var/www/html/modules/psshipping/psshipping.php(332): ModuleCore->get('doctrine.dbal.d...')
#13 /var/www/html/modules/psshipping/src/Domain/Carriers/CarrierRepository.php(64): Psshipping->getService('doctrine.dbal.d...')
#14 /var/www/html/var/cache/dev/PsshippingFrontContainer.php(146): PrestaShop\Module\Psshipping\Domain\Carriers\CarrierRepository->__construct(Object(Psshipping))
#15 /var/www/html/var/cache/dev/PsshippingFrontContainer.php(266): PsshippingFrontContainer->getCarrierRepositoryService()
#16 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(257): PsshippingFrontContainer->getHookDisplayHeaderService()
#17 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make('PrestaShop\\Modu...', 1)
#18 /var/www/html/modules/psshipping/vendor/prestashop/module-lib-service-container/src/DependencyInjection/ServiceContainer.php(64): Symfony\Component\DependencyInjection\Container->get('PrestaShop\\Modu...')
#19 /var/www/html/modules/psshipping/psshipping.php(328): PrestaShop\ModuleLibServiceContainer\DependencyInjection\ServiceContainer->getService('PrestaShop\\Modu...')
#20 /var/www/html/modules/psshipping/psshipping.php(270): Psshipping->getService('PrestaShop\\Modu...')
#21 /var/www/html/classes/Hook.php(1077): Psshipping->hookDisplayHeader(Array)
#22 /var/www/html/classes/Hook.php(418): HookCore::coreCallHook(Object(Psshipping), 'hookDisplayHead...', Array)
#23 /var/www/html/classes/Hook.php(983): HookCore::callHookOn(Object(Psshipping), 'displayHeader', Array)
#24 /var/www/html/classes/controller/FrontController.php(633): HookCore::exec('displayHeader')
#25 /var/www/html/controllers/front/ProductController.php(465): FrontControllerCore->initContent()
#26 /var/www/html/classes/controller/Controller.php(319): ProductControllerCore->initContent()
#27 /var/www/html/classes/Dispatcher.php(510): ControllerCore->run()
#28 /var/www/html/index.php(28): DispatcherCore->dispatch()
#29 {main}
Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
Stack trace:
#0 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(44): Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))
#1 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(25): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=db;p...', 'admin', 'Hama#28806904', Array)
#2 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(412): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'admin', 'Hama#28806904', Array)
#3 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(475): Doctrine\DBAL\Connection->connect()
#4 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(437): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#5 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(379): Doctrine\DBAL\Connection->detectDatabasePlatform()
#6 /var/www/html/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(140): Doctrine\DBAL\Connection->getDatabasePlatform()
#7 /var/www/html/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(119): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->getDatabasePlatform(Object(Doctrine\DBAL\Connection))
#8 /var/www/html/var/cache/dev/FrontContainer.php(1387): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->createConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Symfony\Bridge\Doctrine\ContainerAwareEventManager), Array)
#9 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(257): FrontContainer->getDoctrine_Dbal_DefaultConnectionService()
#10 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make('doctrine.dbal.d...', 1)
#11 /var/www/html/classes/module/Module.php(3469): Symfony\Component\DependencyInjection\Container->get('doctrine.dbal.d...')
#12 /var/www/html/modules/psshipping/psshipping.php(332): ModuleCore->get('doctrine.dbal.d...')
#13 /var/www/html/modules/psshipping/src/Domain/Carriers/CarrierRepository.php(64): Psshipping->getService('doctrine.dbal.d...')
#14 /var/www/html/var/cache/dev/PsshippingFrontContainer.php(146): PrestaShop\Module\Psshipping\Domain\Carriers\CarrierRepository->__construct(Object(Psshipping))
#15 /var/www/html/var/cache/dev/PsshippingFrontContainer.php(266): PsshippingFrontContainer->getCarrierRepositoryService()
#16 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(257): PsshippingFrontContainer->getHookDisplayHeaderService()
#17 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make('PrestaShop\\Modu...', 1)
#18 /var/www/html/modules/psshipping/vendor/prestashop/module-lib-service-container/src/DependencyInjection/ServiceContainer.php(64): Symfony\Component\DependencyInjection\Container->get('PrestaShop\\Modu...')
#19 /var/www/html/modules/psshipping/psshipping.php(328): PrestaShop\ModuleLibServiceContainer\DependencyInjection\ServiceContainer->getService('PrestaShop\\Modu...')
#20 /var/www/html/modules/psshipping/psshipping.php(270): Psshipping->getService('PrestaShop\\Modu...')
#21 /var/www/html/classes/Hook.php(1077): Psshipping->hookDisplayHeader(Array)
#22 /var/www/html/classes/Hook.php(418): HookCore::coreCallHook(Object(Psshipping), 'hookDisplayHead...', Array)
#23 /var/www/html/classes/Hook.php(983): HookCore::callHookOn(Object(Psshipping), 'displayHeader', Array)
#24 /var/www/html/classes/controller/FrontController.php(633): HookCore::exec('displayHeader')
#25 /var/www/html/controllers/front/ProductController.php(465): FrontControllerCore->initContent()
#26 /var/www/html/classes/controller/Controller.php(319): ProductControllerCore->initContent()
#27 /var/www/html/classes/Dispatcher.php(510): ControllerCore->run()
#28 /var/www/html/index.php(28): DispatcherCore->dispatch()
#29 {main}
Next Doctrine\DBAL\Exception\ConnectionException: An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:112
Stack trace:
#0 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(182): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDO\Exception))
#1 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(169): Doctrine\DBAL\DBALException::wrapException(Object(Doctrine\DBAL\Driver\PDO\MySQL\Driver), Object(Doctrine\DBAL\Driver\PDO\Exception), 'An exception oc...')
#2 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(31): Doctrine\DBAL\DBALException::driverException(Object(Doctrine\DBAL\Driver\PDO\MySQL\Driver), Object(Doctrine\DBAL\Driver\PDO\Exception))
#3 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(412): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'admin', 'Hama#28806904', Array)
#4 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(475): Doctrine\DBAL\Connection->connect()
#5 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(437): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#6 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(379): Doctrine\DBAL\Connection->detectDatabasePlatform()
#7 /var/www/html/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(140): Doctrine\DBAL\Connection->getDatabasePlatform()
#8 /var/www/html/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(119): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->getDatabasePlatform(Object(Doctrine\DBAL\Connection))
#9 /var/www/html/var/cache/dev/FrontContainer.php(1387): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->createConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Symfony\Bridge\Doctrine\ContainerAwareEventManager), Array)
#10 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(257): FrontContainer->getDoctrine_Dbal_DefaultConnectionService()
#11 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make('doctrine.dbal.d...', 1)
#12 /var/www/html/classes/module/Module.php(3469): Symfony\Component\DependencyInjection\Container->get('doctrine.dbal.d...')
#13 /var/www/html/modules/psshipping/psshipping.php(332): ModuleCore->get('doctrine.dbal.d...')
#14 /var/www/html/modules/psshipping/src/Domain/Carriers/CarrierRepository.php(64): Psshipping->getService('doctrine.dbal.d...')
#15 /var/www/html/var/cache/dev/PsshippingFrontContainer.php(146): PrestaShop\Module\Psshipping\Domain\Carriers\CarrierRepository->__construct(Object(Psshipping))
#16 /var/www/html/var/cache/dev/PsshippingFrontContainer.php(266): PsshippingFrontContainer->getCarrierRepositoryService()
#17 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(257): PsshippingFrontContainer->getHookDisplayHeaderService()
#18 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make('PrestaShop\\Modu...', 1)
#19 /var/www/html/modules/psshipping/vendor/prestashop/module-lib-service-container/src/DependencyInjection/ServiceContainer.php(64): Symfony\Component\DependencyInjection\Container->get('PrestaShop\\Modu...')
#20 /var/www/html/modules/psshipping/psshipping.php(328): PrestaShop\ModuleLibServiceContainer\DependencyInjection\ServiceContainer->getService('PrestaShop\\Modu...')
#21 /var/www/html/modules/psshipping/psshipping.php(270): Psshipping->getService('PrestaShop\\Modu...')
#22 /var/www/html/classes/Hook.php(1077): Psshipping->hookDisplayHeader(Array)
#23 /var/www/html/classes/Hook.php(418): HookCore::coreCallHook(Object(Psshipping), 'hookDisplayHead...', Array)
#24 /var/www/html/classes/Hook.php(983): HookCore::callHookOn(Object(Psshipping), 'displayHeader', Array)
#25 /var/www/html/classes/controller/FrontController.php(633): HookCore::exec('displayHeader')
#26 /var/www/html/controllers/front/ProductController.php(465): FrontControllerCore->initContent()
#27 /var/www/html/classes/controller/Controller.php(319): ProductControllerCore->initContent()
#28 /var/www/html/classes/Dispatcher.php(510): ControllerCore->run()
#29 /var/www/html/index.php(28): DispatcherCore->dispatch()
#30 {main}
Next Doctrine\DBAL\Exception: An exception occurred while establishing a connection to figure out your platform version.
You can circumvent this by setting a 'server_version' configuration value
For further information have a look at:
https://github.com/doctrine/DoctrineBundle/issues/673 in /var/www/html/vendor/doctrine/doctrine-bundle/ConnectionFactory.php:142
Stack trace:
#0 /var/www/html/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(119): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->getDatabasePlatform(Object(Doctrine\DBAL\Connection))
#1 /var/www/html/var/cache/dev/FrontContainer.php(1387): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->createConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Symfony\Bridge\Doctrine\ContainerAwareEventManager), Array)
#2 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(257): FrontContainer->getDoctrine_Dbal_DefaultConnectionService()
#3 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make('doctrine.dbal.d...', 1)
#4 /var/www/html/classes/module/Module.php(3469): Symfony\Component\DependencyInjection\Container->get('doctrine.dbal.d...')
#5 /var/www/html/modules/psshipping/psshipping.php(332): ModuleCore->get('doctrine.dbal.d...')
#6 /var/www/html/modules/psshipping/src/Domain/Carriers/CarrierRepository.php(64): Psshipping->getService('doctrine.dbal.d...')
#7 /var/www/html/var/cache/dev/PsshippingFrontContainer.php(146): PrestaShop\Module\Psshipping\Domain\Carriers\CarrierRepository->__construct(Object(Psshipping))
#8 /var/www/html/var/cache/dev/PsshippingFrontContainer.php(266): PsshippingFrontContainer->getCarrierRepositoryService()
#9 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(257): PsshippingFrontContainer->getHookDisplayHeaderService()
#10 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make('PrestaShop\\Modu...', 1)
#11 /var/www/html/modules/psshipping/vendor/prestashop/module-lib-service-container/src/DependencyInjection/ServiceContainer.php(64): Symfony\Component\DependencyInjection\Container->get('PrestaShop\\Modu...')
#12 /var/www/html/modules/psshipping/psshipping.php(328): PrestaShop\ModuleLibServiceContainer\DependencyInjection\ServiceContainer->getService('PrestaShop\\Modu...')
#13 /var/www/html/modules/psshipping/psshipping.php(270): Psshipping->getService('PrestaShop\\Modu...')
#14 /var/www/html/classes/Hook.php(1077): Psshipping->hookDisplayHeader(Array)
#15 /var/www/html/classes/Hook.php(418): HookCore::coreCallHook(Object(Psshipping), 'hookDisplayHead...', Array)
#16 /var/www/html/classes/Hook.php(983): HookCore::callHookOn(Object(Psshipping), 'displayHeader', Array)
#17 /var/www/html/classes/controller/FrontController.php(633): HookCore::exec('displayHeader')
#18 /var/www/html/controllers/front/ProductController.php(465): FrontControllerCore->initContent()
#19 /var/www/html/classes/controller/Controller.php(319): ProductControllerCore->initContent()
#20 /var/www/html/classes/Dispatcher.php(510): ControllerCore->run()
#21 /var/www/html/index.php(28): DispatcherCore->dispatch()
#22 {main}
Next PrestaShop\PrestaShop\Core\Exception\CoreException: An exception occurred while establishing a connection to figure out your platform version.
You can circumvent this by setting a 'server_version' configuration value
For further information have a look at:
https://github.com/doctrine/DoctrineBundle/issues/673 in /var/www/html/classes/Hook.php:431
Stack trace:
#0 /var/www/html/classes/Hook.php(983): HookCore::callHookOn(Object(Psshipping), 'displayHeader', Array)
#1 /var/www/html/classes/controller/FrontController.php(633): HookCore::exec('displayHeader')
#2 /var/www/html/controllers/front/ProductController.php(465): FrontControllerCore->initContent()
#3 /var/www/html/classes/controller/Controller.php(319): ProductControllerCore->initContent()
#4 /var/www/html/classes/Dispatcher.php(510): ControllerCore->run()
#5 /var/www/html/index.php(28): DispatcherCore->dispatch()
#6 {main}
thrown in /var/www/html/classes/Hook.php on line 431