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/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #8 /opt/magento/semicstore_prod.es/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(101): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select)) #9 /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') #10 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Store\App\Config\Source\RuntimeConfigSource->get('') #11 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/Proxy.php(95): Magento\Framework\App\Config\ConfigSourceAggregated->get('') #12 /opt/magento/semicstore_prod.es/vendor/magento/module-store/App/Config/Type/Scopes.php(63): Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() #13 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config.php(132): Magento\Store\App\Config\Type\Scopes->get('stores/0') #14 /opt/magento/semicstore_prod.es/vendor/magento/module-store/Model/StoreRepository.php(106): Magento\Framework\App\Config->get('scopes', 'stores/0', Array) #15 /opt/magento/semicstore_prod.es/vendor/magento/module-store/Model/StoreManager.php(170): Magento\Store\Model\StoreRepository->getById(0) #16 /opt/magento/semicstore_prod.es/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManager->getStore(0) #17 /opt/magento/semicstore_prod.es/vendor/magento/module-store/Model/Resolver/Store.php(30): Magento\Store\Model\StoreManagerInterface\Proxy->getStore(0) #18 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope(0) #19 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', 0) #20 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->___callParent('resolve', Array) #21 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->Magento\Framework\Interception\{closure}('stores', 0) #22 /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) #23 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config.php(69): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->resolve('stores', 0) #24 /opt/magento/semicstore_prod.es/app/code/Punchout/Gateway/Plugin/App/Response/HeaderPlugin.php(67): Magento\Framework\App\Config->getValue('punchout_gatewa...', 'stores', 0) #25 /opt/magento/semicstore_prod.es/app/code/Punchout/Gateway/Plugin/App/Response/HeaderPlugin.php(43): Punchout\Gateway\Plugin\App\Response\HeaderPlugin->isIframeEnabled() #26 /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)) #27 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #28 /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) #29 /opt/magento/semicstore_prod.es/vendor/laminas/laminas-http/src/PhpEnvironment/Response.php(140): Magento\Framework\App\Response\Http\Interceptor->sendHeaders() #30 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(349): Laminas\Http\PhpEnvironment\Response->send() #31 /opt/magento/semicstore_prod.es/vendor/magento/framework/HTTP/PhpEnvironment/Response.php(45): Magento\Framework\App\Response\Http\Interceptor->send() #32 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\HTTP\PhpEnvironment\Response->sendResponse() #33 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Response\Http\Interceptor->___callParent('sendResponse', Array) #34 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #35 /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) #36 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #37 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception), Object(Magento\Framework\App\Response\Http\Interceptor)) #38 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception), Object(Magento\Framework\App\Response\Http\Interceptor), Object(Magento\Framework\App\Request\Http)) #39 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Bootstrap.php(267): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #40 /opt/magento/semicstore_prod.es/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #41 {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/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #7 /opt/magento/semicstore_prod.es/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(101): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select)) #8 /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') #9 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Store\App\Config\Source\RuntimeConfigSource->get('') #10 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/Proxy.php(95): Magento\Framework\App\Config\ConfigSourceAggregated->get('') #11 /opt/magento/semicstore_prod.es/vendor/magento/module-store/App/Config/Type/Scopes.php(63): Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() #12 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config.php(132): Magento\Store\App\Config\Type\Scopes->get('stores/0') #13 /opt/magento/semicstore_prod.es/vendor/magento/module-store/Model/StoreRepository.php(106): Magento\Framework\App\Config->get('scopes', 'stores/0', Array) #14 /opt/magento/semicstore_prod.es/vendor/magento/module-store/Model/StoreManager.php(170): Magento\Store\Model\StoreRepository->getById(0) #15 /opt/magento/semicstore_prod.es/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManager->getStore(0) #16 /opt/magento/semicstore_prod.es/vendor/magento/module-store/Model/Resolver/Store.php(30): Magento\Store\Model\StoreManagerInterface\Proxy->getStore(0) #17 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope(0) #18 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', 0) #19 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->___callParent('resolve', Array) #20 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->Magento\Framework\Interception\{closure}('stores', 0) #21 /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) #22 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Config.php(69): Magento\Framework\App\Config\ScopeCodeResolver\Interceptor->resolve('stores', 0) #23 /opt/magento/semicstore_prod.es/app/code/Punchout/Gateway/Plugin/App/Response/HeaderPlugin.php(67): Magento\Framework\App\Config->getValue('punchout_gatewa...', 'stores', 0) #24 /opt/magento/semicstore_prod.es/app/code/Punchout/Gateway/Plugin/App/Response/HeaderPlugin.php(43): Punchout\Gateway\Plugin\App\Response\HeaderPlugin->isIframeEnabled() #25 /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)) #26 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #27 /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) #28 /opt/magento/semicstore_prod.es/vendor/laminas/laminas-http/src/PhpEnvironment/Response.php(140): Magento\Framework\App\Response\Http\Interceptor->sendHeaders() #29 /opt/magento/semicstore_prod.es/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(349): Laminas\Http\PhpEnvironment\Response->send() #30 /opt/magento/semicstore_prod.es/vendor/magento/framework/HTTP/PhpEnvironment/Response.php(45): Magento\Framework\App\Response\Http\Interceptor->send() #31 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\HTTP\PhpEnvironment\Response->sendResponse() #32 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Response\Http\Interceptor->___callParent('sendResponse', Array) #33 /opt/magento/semicstore_prod.es/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #34 /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) #35 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #36 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception), Object(Magento\Framework\App\Response\Http\Interceptor)) #37 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception), Object(Magento\Framework\App\Response\Http\Interceptor), Object(Magento\Framework\App\Request\Http)) #38 /opt/magento/semicstore_prod.es/vendor/magento/framework/App/Bootstrap.php(267): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #39 /opt/magento/semicstore_prod.es/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #40 {main}