my setup :
PHP 7.1
MariaDB
Drupal 8.5.0-beta1
domain access alpha12
======
when I enable the module it takes me to the installation page install.php
and throw the following 3 errors
Warning: Error while sending QUERY packet. PID=23430 in Drupal\Core\Database\Statement->execute() (line 59 of /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Database/Statement.php) #0 /var/www/vhosts/example.org/httpdocs/web/core/includes/bootstrap.inc(582): _drupal_error_handler_real(2, 'Error while sen...', '/var/www/vhosts...', 59, Array) #1 [internal function]: _drupal_error_handler(2, 'Error while sen...', '/var/www/vhosts...', 59, Array) #2 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Database/Statement.php(59): PDOStatement->execute(Array) #3 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Database/Connection.php(625): Drupal\Core\Database\Statement->execute(Array, Array) #4 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php(87): Drupal\Core\Database\Connection->query('SELECT 1 FROM {...', Array, Array) #5 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php(216): Drupal\Core\Database\Driver\mysql\Connection->query('SELECT 1 FROM {...', Array, Array) #6 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php(634): Drupal\Core\Database\Driver\mysql\Connection->queryRange('SELECT 1 FROM {...', 0, 1) #7 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Batch/BatchStorage.php(168): Drupal\Core\Database\Driver\mysql\Schema->tableExists('batch') #8 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Batch/BatchStorage.php(133): Drupal\Core\Batch\BatchStorage->ensureTableExists() #9 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/ProxyClass/Batch/BatchStorage.php(107): Drupal\Core\Batch\BatchStorage->create(Array) #10 /var/www/vhosts/example.org/httpdocs/web/core/includes/form.inc(854): Drupal\Core\ProxyClass\Batch\BatchStorage->create(Array) #11 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Form/FormSubmitter.php(62): batch_process() #12 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Form/FormBuilder.php(585): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) #13 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('system_modules', Array, Object(Drupal\Core\Form\FormState)) #14 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\Core\Form\FormBuilder->buildForm('system_modules', Object(Drupal\Core\Form\FormState)) #15 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #16 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #17 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #18 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #19 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #20 /var/www/vhosts/example.org/httpdocs/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #21 /var/www/vhosts/example.org/httpdocs/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #22 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /var/www/vhosts/example.org/httpdocs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /var/www/vhosts/example.org/httpdocs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /var/www/vhosts/example.org/httpdocs/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #30 /var/www/vhosts/example.org/httpdocs/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #31 {main}.
============
User warning: session_write_close(): Failed to write session data with Drupal\Core\Session\WriteSafeSessionHandler handler in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->save() (line 254 of /var/www/vhosts/example.org/httpdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php) #0 /var/www/vhosts/example.org/httpdocs/web/core/includes/bootstrap.inc(582): _drupal_error_handler_real(512, 'session_write_c...', '/var/www/vhosts...', 254, Array) #1 [internal function]: _drupal_error_handler(512, 'session_write_c...', '/var/www/vhosts...', 254, Array) #2 /var/www/vhosts/example.org/httpdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php(254): trigger_error('session_write_c...', 512) #3 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Session/SessionManager.php(198): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->save() #4 /var/www/vhosts/example.org/httpdocs/vendor/symfony/http-foundation/Session/Session.php(193): Drupal\Core\Session\SessionManager->save() #5 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/Session.php(60): Symfony\Component\HttpFoundation\Session\Session->save() #6 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #7 /var/www/vhosts/example.org/httpdocs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #8 /var/www/vhosts/example.org/httpdocs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #9 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #10 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #11 /var/www/vhosts/example.org/httpdocs/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #12 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #13 /var/www/vhosts/example.org/httpdocs/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #14 {main}.
===============
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: CREATE TABLE {cache_bootstrap} ( `cid` VARCHAR(255) BINARY CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL DEFAULT '' COMMENT 'Primary Key: Unique cache ID.', `data` LONGBLOB NULL DEFAULT NULL COMMENT 'A collection of data to cache.', `expire` INT NOT NULL DEFAULT 0 COMMENT 'A Unix timestamp indicating when the cache entry should expire, or -1 for never.', `created` DECIMAL(14, 3) NOT NULL DEFAULT 0 COMMENT 'A timestamp with millisecond precision indicating when the cache entry was created.', `serialized` SMALLINT NOT NULL DEFAULT 0 COMMENT 'A flag to indicate whether content is serialized (1) or not (0).', `tags` LONGTEXT NULL DEFAULT NULL COMMENT 'Space-separated list of cache tags for this entry.', `checksum` VARCHAR(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL COMMENT 'The tag invalidation checksum when this entry was saved.', PRIMARY KEY (`cid`), INDEX `expire` (`expire`), INDEX `created` (`created`) ) ENGINE = InnoDB DEFAULT CHARACTER SET utf8mb4 COMMENT 'Storage for the cache API.'; Array ( ) in Drupal\Core\Extension\ModuleHandler->writeCache() (line 336 of /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Extension/ModuleHandler.php) #0 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Database/Connection.php(650): Drupal\Core\Database\Connection->handleQueryException(Object(PDOException), 'CREATE TABLE {c...', Array, Array) #1 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php(87): Drupal\Core\Database\Connection->query('CREATE TABLE {c...', Array, Array) #2 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Database/Schema.php(602): Drupal\Core\Database\Driver\mysql\Connection->query('CREATE TABLE {c...') #3 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Cache/DatabaseBackend.php(406): Drupal\Core\Database\Schema->createTable('cache_bootstrap', Array) #4 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Cache/DatabaseBackend.php(197): Drupal\Core\Cache\DatabaseBackend->ensureBinExists() #5 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Cache/DatabaseBackend.php(181): Drupal\Core\Cache\DatabaseBackend->setMultiple(Array) #6 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(336): Drupal\Core\Cache\DatabaseBackend->set('module_implemen...', Array) #7 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/EventSubscriber/RequestCloseSubscriber.php(42): Drupal\Core\Extension\ModuleHandler->writeCache() #8 [internal function]: Drupal\Core\EventSubscriber\RequestCloseSubscriber->onTerminate(Object(Symfony\Component\HttpKernel\Event\PostResponseEvent), 'kernel.terminat...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #9 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\PostResponseEvent), 'kernel.terminat...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #10 /var/www/vhosts/example.org/httpdocs/vendor/symfony/http-kernel/HttpKernel.php(88): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.terminat...', Object(Symfony\Component\HttpKernel\Event\PostResponseEvent)) #11 /var/www/vhosts/example.org/httpdocs/vendor/stack/builder/src/Stack/StackedHttpKernel.php(32): Symfony\Component\HttpKernel\HttpKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\domain\DomainRedirectResponse)) #12 /var/www/vhosts/example.org/httpdocs/web/core/lib/Drupal/Core/DrupalKernel.php(635): Stack\StackedHttpKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\domain\DomainRedirectResponse)) #13 /var/www/vhosts/example.org/httpdocs/web/index.php(22): Drupal\Core\DrupalKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\domain\DomainRedirectResponse)) #14 {main}.
Comments
Comment #2
theroyal commentedno sorry, ignore this issue
this error happens when enabling any module,
and domain access logo module works perfect with my setup.
Comment #3
theroyal commentedthis error was because my DB settings,
I found that : max_allowed_packet = 1048576 was very low.
so i increased it to
max_allowed_packet=524288000and I set the wait_timeout to :
wait_timeout = 100and restarted the DB to take effect.
Comment #4
theroyal commented