- πΊπΈUnited States adrianm6254
I am unable to perform Automatic Updates
Error:
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /batch?id=8&op=do_nojs&op=do
StatusText: error
ResponseText:System Makup:
PHP 8.3
MariaDB 10.6
OS Debian 11
Drupal 11.1.6
Automatic Updates 3.1.7
Hosting CloudwaysI am attempting to do the updates on the Cloudways Server (not on local environment)
Error Log Output:
Type php
Date Thursday, 24 April 2025 - 15:14
User drupal cms admin
Location https://xxx.xxx.xxx/batch?_format=json&id=10&op=do
Referrer https://xxx.xxx.xxx/batch?id=10&op=start
Message Drupal\package_manager\Exception\StageEventException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT 1 FROM information_schema.tables WHERE ("table_schema" = :db_condition_placeholder_4) AND ("table_name" = :db_condition_placeholder_5); Array ( [:db_condition_placeholder_4] => xctekrqpca [:db_condition_placeholder_5] => semaphore ) in Drupal\package_manager\StageBase->dispatch() (line 601 of /home/xxx.xxx.xxx/xctekrqpca/public_html/web/modules/contrib/automatic_updates/package_manager/src/StageBase.php).
Severity Error
Hostname xxx.xxx.xxx.xxx
Operations
Backtrace
#0 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/modules/contrib/automatic_updates/package_manager/src/StageBase.php(360): Drupal\package_manager\StageBase->dispatch()
#1 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/modules/contrib/automatic_updates/automatic_updates_extensions/src/ExtensionUpdateStage.php(97): Drupal\package_manager\StageBase->create()
#2 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/modules/contrib/automatic_updates/automatic_updates_extensions/src/BatchProcessor.php(65): Drupal\automatic_updates_extensions\ExtensionUpdateStage->begin()
#3 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/includes/batch.inc(297): Drupal\automatic_updates_extensions\BatchProcessor::begin()
#4 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/includes/batch.inc(139): _batch_process()
#5 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/includes/batch.inc(95): _batch_do()
#6 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/modules/system/src/Controller/BatchController.php(52): _batch_page()
#7 [internal function]: Drupal\system\Controller\BatchController->batchPage()
#8 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#9 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/Render/Renderer.php(593): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#10 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#11 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#12 /home/xxx.xxx.xxx/xctekrqpca/public_html/vendor/symfony/http-kernel/HttpKernel.php(183): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /home/xxx.xxx.xxx/xctekrqpca/public_html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#14 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#15 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#16 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#17 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#18 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#19 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
#20 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#21 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#22 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#23 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#24 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#25 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#26 {main}========================
Type php
Date Thursday, 24 April 2025 - 15:14
User drupal cms admin
Location https://xxx.xxx.xxx/batch?_format=json&id=10&op=do
Referrer https://xxx.xxx.xxx/batch?id=10&op=start
Message Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT 1 FROM information_schema.tables WHERE ("table_schema" = :db_condition_placeholder_6) AND ("table_name" = :db_condition_placeholder_7); Array ( [:db_condition_placeholder_6] => xctekrqpca [:db_condition_placeholder_7] => config ) in Drupal\Core\Config\DatabaseStorage->readMultiple() (line 120 of /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/Config/DatabaseStorage.php)
#0 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/Database/Connection.php(661): Drupal\mysql\Driver\Database\mysql\ExceptionHandler->handleExecutionException()
#1 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/Database/Schema.php(178): Drupal\Core\Database\Connection->query()
#2 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/Config/DatabaseStorage.php(120): Drupal\Core\Database\Schema->tableExists()
#3 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/Config/CachedStorage.php(95): Drupal\Core\Config\DatabaseStorage->readMultiple()
#4 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/Config/ConfigFactory.php(165): Drupal\Core\Config\CachedStorage->readMultiple()
#5 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/Config/ConfigFactory.php(104): Drupal\Core\Config\ConfigFactory->doLoadMultiple()
#6 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/Config/ConfigFactory.php(89): Drupal\Core\Config\ConfigFactory->doGet()
#7 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/modules/contrib/redirect/modules/redirect_404/src/EventSubscriber/Redirect404Subscriber.php(85): Drupal\Core\Config\ConfigFactory->get()
#8 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(259): Drupal\redirect_404\EventSubscriber\Redirect404Subscriber->__construct()
#9 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService()
#10 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(454): Drupal\Component\DependencyInjection\Container->get()
#11 /home/xxx.xxx.xxx/xctekrqpca/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(243): Drupal\Component\DependencyInjection\Container->Drupal\Component\DependencyInjection\{closure}()
#12 /home/xxx.xxx.xxx/xctekrqpca/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}()
#13 /home/xxx.xxx.xxx/xctekrqpca/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
#14 /home/xxx.xxx.xxx/xctekrqpca/public_html/vendor/symfony/http-kernel/HttpKernel.php(241): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#15 /home/xxx.xxx.xxx/xctekrqpca/public_html/vendor/symfony/http-kernel/HttpKernel.php(91): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
#16 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#17 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#18 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#19 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#20 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#21 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
#22 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#23 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#24 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#25 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#26 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#27 /home/xxx.xxx.xxx/xctekrqpca/public_html/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#28 {main}
.
Severity Error
Hostname xxx.xxx.xxx.xxx
Operations - π¬π§United Kingdom catch
This probably needs β¨ Database ping, close, and reconnect capabilities Active - the problem is if operations take too long, by the time you get back to the main Drupal process, the server has gone away.
Trying to optimize package_manager operations so they finish quicker would also not do any harm, but don't have any ideas for that.