PDOException: SQLSTATE[HY000] [2002] Connection refused in /opt/magento/semicstore_prod.es/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /opt/magento/semicstore_prod.es/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=mysq...', 'semicstore_prod', 'za3#Y2(87=8J', Array) #1 /opt/magento/semicstore_prod.es/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /opt/magento/semicstore_prod.es/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(413): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /opt/magento/semicstore_prod.es/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /opt/magento/semicstore_prod.es/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `store_w...', Array) #5 /opt/magento/semicstore_prod.es/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(549): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `store_w...', Array) #6 /opt/magento/semicstore_prod.es/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(616): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `store_w...', Array) #7 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(128): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #8 /opt/magento/semicstore_prod.es/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->query(Object(Magento\Framework\DB\Select), Array) #9 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(1558): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select), Array, 2) #10 /opt/magento/semicstore_prod.es/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(101): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->fetchAll(Object(Magento\Framework\DB\Select)) #11 /opt/magento/semicstore_prod.es/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(61): Magento\Store\App\Config\Source\RuntimeConfigSource->getEntities('store_website', 'code') #12 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Store\App\Config\Source\RuntimeConfigSource->get('') #13 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/Proxy.php(95): Magento\Framework\App\Config\ConfigSourceAggregated->get('') #14 /opt/magento/semicstore_prod.es/vendor/magento/module-store/App/Config/Type/Scopes.php(63): Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() #15 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config.php(132): Magento\Store\App\Config\Type\Scopes->get('stores/0') #16 /opt/magento/semicstore_prod.es/vendor/magento/module-store/Model/StoreRepository.php(106): Magento\Framework\App\Config->get('scopes', 'stores/0', Array) #17 /opt/magento/semicstore_prod.es/vendor/magento/module-store/Model/StoreManager.php(170): Magento\Store\Model\StoreRepository->getById(0) #18 /opt/magento/semicstore_prod.es/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManager->getStore(0) #19 /opt/magento/semicstore_prod.es/vendor/magento/module-store/Model/Resolver/Store.php(30): Magento\Store\Model\StoreManagerInterface\Proxy->getStore(0) #20 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope(0) #21 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', 0) #22 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->___callParent('resolve', Array) #23 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->Magento\Framework\Interception\{closure}('stores', 0) #24 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Config/ScopeCodeResolver/Interceptor.php(26): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->___callPlugins('resolve', Array, Array) #25 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config.php(69): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->resolve('stores', 0) #26 /opt/magento/semicstore_prod.es/app/code/Punchout/Gateway/Plugin/App/Response/HeaderPlugin.php(67): Magento\Framework\App\Config->getValue('punchout_gatewa...', 'stores', 0) #27 /opt/magento/semicstore_prod.es/app/code/Punchout/Gateway/Plugin/App/Response/HeaderPlugin.php(43): Punchout\Gateway\Plugin\App\Response\HeaderPlugin->isIframeEnabled() #28 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(121): Punchout\Gateway\Plugin\App\Response\HeaderPlugin->beforeSendHeaders(Object(Magento\Framework\App\Response\Http\Interceptor)) #29 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #30 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(325): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendHeaders', Array, Array) #31 /opt/magento/semicstore_prod.es/vendor/laminas/laminas-http/src/PhpEnvironment/Response.php(140): Magento\Framework\App\Response\Http\Interceptor->sendHeaders() #32 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(349): Laminas\Http\PhpEnvironment\Response->send() #33 /opt/magento/semicstore_prod.es/vendor/magento/framework/HTTP/PhpEnvironment/Response.php(45): Magento\Framework\App\Response\Http\Interceptor->send() #34 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\HTTP\PhpEnvironment\Response->sendResponse() #35 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Response\Http\Interceptor->___callParent('sendResponse', Array) #36 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #37 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #38 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #39 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Exception), Object(Magento\Framework\App\Response\Http\Interceptor)) #40 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle(Object(Magento\Framework\App\Bootstrap), Object(Exception), Object(Magento\Framework\App\Response\Http\Interceptor), Object(Magento\Framework\App\Request\Http)) #41 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Bootstrap.php(267): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #42 /opt/magento/semicstore_prod.es/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #43 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] Connection refused in /opt/magento/semicstore_prod.es/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /opt/magento/semicstore_prod.es/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /opt/magento/semicstore_prod.es/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(413): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /opt/magento/semicstore_prod.es/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /opt/magento/semicstore_prod.es/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `store_w...', Array) #4 /opt/magento/semicstore_prod.es/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(549): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `store_w...', Array) #5 /opt/magento/semicstore_prod.es/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(616): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `store_w...', Array) #6 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(128): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #7 /opt/magento/semicstore_prod.es/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->query(Object(Magento\Framework\DB\Select), Array) #8 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(1558): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select), Array, 2) #9 /opt/magento/semicstore_prod.es/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(101): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->fetchAll(Object(Magento\Framework\DB\Select)) #10 /opt/magento/semicstore_prod.es/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(61): Magento\Store\App\Config\Source\RuntimeConfigSource->getEntities('store_website', 'code') #11 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Store\App\Config\Source\RuntimeConfigSource->get('') #12 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/Proxy.php(95): Magento\Framework\App\Config\ConfigSourceAggregated->get('') #13 /opt/magento/semicstore_prod.es/vendor/magento/module-store/App/Config/Type/Scopes.php(63): Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() #14 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config.php(132): Magento\Store\App\Config\Type\Scopes->get('stores/0') #15 /opt/magento/semicstore_prod.es/vendor/magento/module-store/Model/StoreRepository.php(106): Magento\Framework\App\Config->get('scopes', 'stores/0', Array) #16 /opt/magento/semicstore_prod.es/vendor/magento/module-store/Model/StoreManager.php(170): Magento\Store\Model\StoreRepository->getById(0) #17 /opt/magento/semicstore_prod.es/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManager->getStore(0) #18 /opt/magento/semicstore_prod.es/vendor/magento/module-store/Model/Resolver/Store.php(30): Magento\Store\Model\StoreManagerInterface\Proxy->getStore(0) #19 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope(0) #20 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', 0) #21 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->___callParent('resolve', Array) #22 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->Magento\Framework\Interception\{closure}('stores', 0) #23 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Config/ScopeCodeResolver/Interceptor.php(26): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->___callPlugins('resolve', Array, Array) #24 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config.php(69): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->resolve('stores', 0) #25 /opt/magento/semicstore_prod.es/app/code/Punchout/Gateway/Plugin/App/Response/HeaderPlugin.php(67): Magento\Framework\App\Config->getValue('punchout_gatewa...', 'stores', 0) #26 /opt/magento/semicstore_prod.es/app/code/Punchout/Gateway/Plugin/App/Response/HeaderPlugin.php(43): Punchout\Gateway\Plugin\App\Response\HeaderPlugin->isIframeEnabled() #27 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(121): Punchout\Gateway\Plugin\App\Response\HeaderPlugin->beforeSendHeaders(Object(Magento\Framework\App\Response\Http\Interceptor)) #28 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #29 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(325): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendHeaders', Array, Array) #30 /opt/magento/semicstore_prod.es/vendor/laminas/laminas-http/src/PhpEnvironment/Response.php(140): Magento\Framework\App\Response\Http\Interceptor->sendHeaders() #31 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(349): Laminas\Http\PhpEnvironment\Response->send() #32 /opt/magento/semicstore_prod.es/vendor/magento/framework/HTTP/PhpEnvironment/Response.php(45): Magento\Framework\App\Response\Http\Interceptor->send() #33 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\HTTP\PhpEnvironment\Response->sendResponse() #34 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Response\Http\Interceptor->___callParent('sendResponse', Array) #35 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #36 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #37 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #38 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Exception), Object(Magento\Framework\App\Response\Http\Interceptor)) #39 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle(Object(Magento\Framework\App\Bootstrap), Object(Exception), Object(Magento\Framework\App\Response\Http\Interceptor), Object(Magento\Framework\App\Request\Http)) #40 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Bootstrap.php(267): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #41 /opt/magento/semicstore_prod.es/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #42 {main}