Warning: mysqli::real_connect(): Error while reading greeting packet. PID=2324733 in /var/www/knihovny-cz/vendor/laminas/laminas-db/src/Adapter/Driver/Mysqli/Connection.php on line 156
Fatal error: Uncaught Laminas\Db\Adapter\Exception\ErrorException: MySQL server has gone away in /var/www/knihovny-cz/vendor/laminas/laminas-db/src/Adapter/Driver/Mysqli/Connection.php:162
Stack trace:
#0 /var/www/knihovny-cz/vendor/laminas/laminas-db/src/Adapter/Driver/Mysqli/Mysqli.php(190): Laminas\Db\Adapter\Driver\Mysqli\Connection->connect()
#1 /var/www/knihovny-cz/vendor/laminas/laminas-db/src/Sql/Sql.php(152): Laminas\Db\Adapter\Driver\Mysqli\Mysqli->createStatement()
#2 /var/www/knihovny-cz/vendor/laminas/laminas-db/src/TableGateway/AbstractTableGateway.php(227): Laminas\Db\Sql\Sql->prepareStatementForSqlObject(Object(Laminas\Db\Sql\Select))
#3 /var/www/knihovny-cz/vendor/laminas/laminas-db/src/TableGateway/AbstractTableGateway.php(194): Laminas\Db\TableGateway\AbstractTableGateway->executeSelect(Object(Laminas\Db\Sql\Select))
#4 /var/www/knihovny-cz/vendor/laminas/laminas-db/src/TableGateway/AbstractTableGateway.php(183): Laminas\Db\TableGateway\AbstractTableGateway->selectWith(Object(Laminas\Db\Sql\Select))
#5 /var/www/knihovny-cz-extension/module/KnihovnyCz/src/KnihovnyCz/Db/Table/Config.php(85): Laminas\Db\TableGateway\AbstractTableGateway->select(Object(Closure))
#6 /var/www/knihovny-cz-extension/module/KnihovnyCz/src/KnihovnyCz/Db/Table/Config.php(52): KnihovnyCz\Db\Table\Config->getDataByConfigFile('contentsecurity...')
#7 /var/www/knihovny-cz-extension/module/KnihovnyCz/src/KnihovnyCz/Config/PluginFactory.php(69): KnihovnyCz\Db\Table\Config->getConfigByFile('contentsecurity...')
#8 /var/www/knihovny-cz-extension/module/KnihovnyCz/src/KnihovnyCz/Config/PluginFactory.php(51): KnihovnyCz\Config\PluginFactory->loadConfigFromDb('contentsecurity...')
#9 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(642): KnihovnyCz\Config\PluginFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'contentsecurity...', NULL)
#10 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(236): Laminas\ServiceManager\ServiceManager->doCreate('contentsecurity...')
#11 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/AbstractPluginManager.php(169): Laminas\ServiceManager\ServiceManager->get('contentsecurity...')
#12 /var/www/knihovny-cz/module/VuFind/src/VuFind/Security/CspHeaderGeneratorFactory.php(72): Laminas\ServiceManager\AbstractPluginManager->get('contentsecurity...')
#13 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(642): VuFind\Security\CspHeaderGeneratorFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'VuFind\\Security...', NULL)
#14 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(264): Laminas\ServiceManager\ServiceManager->doCreate('VuFind\\Security...')
#15 /var/www/knihovny-cz/module/VuFind/src/VuFind/Bootstrapper.php(372): Laminas\ServiceManager\ServiceManager->get('VuFind\\Security...')
#16 /var/www/knihovny-cz/module/VuFind/src/VuFind/Bootstrapper.php(102): VuFind\Bootstrapper->initContentSecurityPolicy()
#17 /var/www/knihovny-cz/module/VuFind/Module.php(86): VuFind\Bootstrapper->bootstrap()
#18 /var/www/knihovny-cz/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): VuFind\Module->onBootstrap(Object(Laminas\Mvc\MvcEvent))
#19 /var/www/knihovny-cz/vendor/laminas/laminas-eventmanager/src/EventManager.php(169): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent))
#20 /var/www/knihovny-cz/vendor/laminas/laminas-mvc/src/Application.php(148): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\Mvc\MvcEvent))
#21 /var/www/knihovny-cz/vendor/laminas/laminas-mvc/src/Application.php(260): Laminas\Mvc\Application->bootstrap(Array)
#22 /var/www/knihovny-cz/config/application.php(14): Laminas\Mvc\Application::init(Array)
#23 /var/www/knihovny-cz/public/index.php(11): include('/var/www/knihov...')
#24 {main}
Next Laminas\Db\Adapter\Exception\RuntimeException: Connection error in /var/www/knihovny-cz/vendor/laminas/laminas-db/src/Adapter/Driver/Mysqli/Connection.php:159
Stack trace:
#0 /var/www/knihovny-cz/vendor/laminas/laminas-db/src/Adapter/Driver/Mysqli/Mysqli.php(190): Laminas\Db\Adapter\Driver\Mysqli\Connection->connect()
#1 /var/www/knihovny-cz/vendor/laminas/laminas-db/src/Sql/Sql.php(152): Laminas\Db\Adapter\Driver\Mysqli\Mysqli->createStatement()
#2 /var/www/knihovny-cz/vendor/laminas/laminas-db/src/TableGateway/AbstractTableGateway.php(227): Laminas\Db\Sql\Sql->prepareStatementForSqlObject(Object(Laminas\Db\Sql\Select))
#3 /var/www/knihovny-cz/vendor/laminas/laminas-db/src/TableGateway/AbstractTableGateway.php(194): Laminas\Db\TableGateway\AbstractTableGateway->executeSelect(Object(Laminas\Db\Sql\Select))
#4 /var/www/knihovny-cz/vendor/laminas/laminas-db/src/TableGateway/AbstractTableGateway.php(183): Laminas\Db\TableGateway\AbstractTableGateway->selectWith(Object(Laminas\Db\Sql\Select))
#5 /var/www/knihovny-cz-extension/module/KnihovnyCz/src/KnihovnyCz/Db/Table/Config.php(85): Laminas\Db\TableGateway\AbstractTableGateway->select(Object(Closure))
#6 /var/www/knihovny-cz-extension/module/KnihovnyCz/src/KnihovnyCz/Db/Table/Config.php(52): KnihovnyCz\Db\Table\Config->getDataByConfigFile('contentsecurity...')
#7 /var/www/knihovny-cz-extension/module/KnihovnyCz/src/KnihovnyCz/Config/PluginFactory.php(69): KnihovnyCz\Db\Table\Config->getConfigByFile('contentsecurity...')
#8 /var/www/knihovny-cz-extension/module/KnihovnyCz/src/KnihovnyCz/Config/PluginFactory.php(51): KnihovnyCz\Config\PluginFactory->loadConfigFromDb('contentsecurity...')
#9 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(642): KnihovnyCz\Config\PluginFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'contentsecurity...', NULL)
#10 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(236): Laminas\ServiceManager\ServiceManager->doCreate('contentsecurity...')
#11 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/AbstractPluginManager.php(169): Laminas\ServiceManager\ServiceManager->get('contentsecurity...')
#12 /var/www/knihovny-cz/module/VuFind/src/VuFind/Security/CspHeaderGeneratorFactory.php(72): Laminas\ServiceManager\AbstractPluginManager->get('contentsecurity...')
#13 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(642): VuFind\Security\CspHeaderGeneratorFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'VuFind\\Security...', NULL)
#14 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(264): Laminas\ServiceManager\ServiceManager->doCreate('VuFind\\Security...')
#15 /var/www/knihovny-cz/module/VuFind/src/VuFind/Bootstrapper.php(372): Laminas\ServiceManager\ServiceManager->get('VuFind\\Security...')
#16 /var/www/knihovny-cz/module/VuFind/src/VuFind/Bootstrapper.php(102): VuFind\Bootstrapper->initContentSecurityPolicy()
#17 /var/www/knihovny-cz/module/VuFind/Module.php(86): VuFind\Bootstrapper->bootstrap()
#18 /var/www/knihovny-cz/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): VuFind\Module->onBootstrap(Object(Laminas\Mvc\MvcEvent))
#19 /var/www/knihovny-cz/vendor/laminas/laminas-eventmanager/src/EventManager.php(169): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent))
#20 /var/www/knihovny-cz/vendor/laminas/laminas-mvc/src/Application.php(148): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\Mvc\MvcEvent))
#21 /var/www/knihovny-cz/vendor/laminas/laminas-mvc/src/Application.php(260): Laminas\Mvc\Application->bootstrap(Array)
#22 /var/www/knihovny-cz/config/application.php(14): Laminas\Mvc\Application::init(Array)
#23 /var/www/knihovny-cz/public/index.php(11): include('/var/www/knihov...')
#24 {main}
Next Laminas\ServiceManager\Exception\ServiceNotCreatedException: Service with name "contentsecuritypolicy" could not be created. Reason: Connection error in /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/ServiceManager.php:649
Stack trace:
#0 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(236): Laminas\ServiceManager\ServiceManager->doCreate('contentsecurity...')
#1 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/AbstractPluginManager.php(169): Laminas\ServiceManager\ServiceManager->get('contentsecurity...')
#2 /var/www/knihovny-cz/module/VuFind/src/VuFind/Security/CspHeaderGeneratorFactory.php(72): Laminas\ServiceManager\AbstractPluginManager->get('contentsecurity...')
#3 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(642): VuFind\Security\CspHeaderGeneratorFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'VuFind\\Security...', NULL)
#4 /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(264): Laminas\ServiceManager\ServiceManager->doCreate('VuFind\\Security...')
#5 /var/www/knihovny-cz/module/VuFind/src/VuFind/Bootstrapper.php(372): Laminas\ServiceManager\ServiceManager->get('VuFind\\Security...')
#6 /var/www/knihovny-cz/module/VuFind/src/VuFind/Bootstrapper.php(102): VuFind\Bootstrapper->initContentSecurityPolicy()
#7 /var/www/knihovny-cz/module/VuFind/Module.php(86): VuFind\Bootstrapper->bootstrap()
#8 /var/www/knihovny-cz/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): VuFind\Module->onBootstrap(Object(Laminas\Mvc\MvcEvent))
#9 /var/www/knihovny-cz/vendor/laminas/laminas-eventmanager/src/EventManager.php(169): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent))
#10 /var/www/knihovny-cz/vendor/laminas/laminas-mvc/src/Application.php(148): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\Mvc\MvcEvent))
#11 /var/www/knihovny-cz/vendor/laminas/laminas-mvc/src/Application.php(260): Laminas\Mvc\Application->bootstrap(Array)
#12 /var/www/knihovny-cz/config/application.php(14): Laminas\Mvc\Application::init(Array)
#13 /var/www/knihovny-cz/public/index.php(11): include('/var/www/knihov...')
#14 {main}
thrown in /var/www/knihovny-cz/vendor/laminas/laminas-servicemanager/src/ServiceManager.php on line 649