By end user on
I haven't had any luck when it comes to updating modules in Drupal CMS 2.0 on my hosting account, I end up with a Error 500.. I have 1024 mb of php memory. Bare bones stock install.
More info if it helps, can't seem to be able to post image for screen shots. D7 was so much easier lol
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /cms/web/batch?id=7&op=do_nojs&op=do StatusText: error ResponseText: The website encountered an unexpected error. Try again later.
Oops, something went wrong. Check your browser's developer console for more details.
Query
Error message
Oops, something went wrong. Check your browser's developer console for more details.
| Type | php |
|---|---|
| Date | Friday, 15 May 2026 - 19:52 |
| User | |
| Location | https://*****/cms/web/batch?_format=json&id=7&op=do |
| Referrer | https://*****/cms/web/batch?id=7&op=start |
| Message | Drupal\package_manager\Exception\SandboxException: Failed to run process: <em class="placeholder">The command "'/opt/alt/php84/usr/bin/php' '/home/******/dp/cms/vendor/composer/./composer/bin/composer' '--working-dir=/tmp/.package_manager1b8d783e-27d2-4603-8027-b43cb31686d3/nYm786VrOj82vuno62wOfVY5ZB0JAftS' 'update' '--with-all-dependencies' '--optimize-autoloader' '--minimal-changes' 'drupal/linkit:7.0.15'" failed. Exit Code: 1(General error) Working directory: /home/******/dp/cms/web Output: ================ Error Output: ================ Loading composer repositories with package information Updating dependencies Lock file operations: 0 installs, 1 update, 0 removals - Upgrading drupal/linkit (7.0.14 => 7.0.15) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 0 installs, 1 update, 0 removals - Upgrading drupal/linkit (7.0.14 => 7.0.15): Extracting archive Generating optimized autoload files Hardening vendor directory with .htaccess file. 66 packages you are using are looking for funding. Use the `composer fund` command to find out more! In ScaffoldFilePath.php line 135: Scaffold file assets/append-default.settings.php.txt not found in package d rupal/cms. update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-security-blocking] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--patch-only] [-i|--interactive] [--root-reqs] [--bump-after-update [BUMP-AFTER-UPDATE]] [--] [<packages>...] </em> in Drupal\package_manager\SandboxManagerBase->rethrowAsStageException() (line 379 of /home/******/dp/cms/web/core/modules/package_manager/src/SandboxManagerBase.php). |
| Severity | Error |
| Hostname | 154.5.20.157 |
| Operations | |
| Backtrace |
#0 /home/******/dp/cms/web/core/modules/package_manager/src/SandboxManagerBase.php(425): Drupal\package_manager\SandboxManagerBase->rethrowAsStageException()
#1 /home/******/dp/cms/web/core/modules/package_manager/src/SandboxManagerBase.php(444): Drupal\package_manager\SandboxManagerBase->{closure:Drupal\package_manager\SandboxManagerBase::require():410}()
#2 /home/******/dp/cms/web/modules/contrib/automatic_updates/src/ExtensionUpdateSandboxManager.php(128): Drupal\package_manager\SandboxManagerBase->require()
#3 /home/******/dp/cms/web/modules/contrib/automatic_updates/src/ExtensionsBatchProcessor.php(84): Drupal\automatic_updates\ExtensionUpdateSandboxManager->stage()
#4 /home/******/dp/cms/web/core/includes/batch.inc(300): Drupal\automatic_updates\ExtensionsBatchProcessor::stage()
#5 /home/******/dp/cms/web/core/includes/batch.inc(139): _batch_process()
#6 /home/******/dp/cms/web/core/includes/batch.inc(96): _batch_do()
#7 /home/******/dp/cms/web/core/modules/system/src/Controller/BatchController.php(52): _batch_page()
#8 [internal function]: Drupal\system\Controller\BatchController->batchPage()
#9 /home/******/dp/cms/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#10 /home/******/dp/cms/web/core/lib/Drupal/Core/Render/Renderer.php(634): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::wrapControllerExecutionInRenderContext():121}()
#11 [internal function]: Drupal\Core\Render\Renderer::{closure:Drupal\Core\Render\Renderer::executeInRenderContext():634}()
#12 /home/******/dp/cms/web/core/lib/Drupal/Core/Render/Renderer.php(635): Fiber->start()
#13 /home/******/dp/cms/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#14 /home/******/dp/cms/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#15 /home/******/dp/cms/vendor/symfony/http-kernel/HttpKernel.php(183): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::onController():96}()
#16 /home/******/dp/cms/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#17 /home/******/dp/cms/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#18 /home/******/dp/cms/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#19 /home/******/dp/cms/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#20 /home/******/dp/cms/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#21 /home/******/dp/cms/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(118): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#22 /home/******/dp/cms/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(92): Drupal\page_cache\StackMiddleware\PageCache->pass()
#23 /home/******/dp/cms/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#24 /home/******/dp/cms/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#25 /home/******/dp/cms/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(53): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#26 /home/******/dp/cms/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(54): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#27 /home/******/dp/cms/web/core/lib/Drupal/Core/DrupalKernel.php(745): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#28 /home/******/dp/cms/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#29 {main} |
Comments
Create a Drupal CMS issue?
I think creating a https://www.drupal.org/project/issues/drupal_cms issue has a better chance of getting Drupal CMS developers to look at it ...
I would follow Ressa's
I would follow Ressa's direction and ask in the Drupal CMS support. But, that said, the actual error I see is:
This seems to be where it got hung up. Do you see this file? Is there anything you have done that may have erased it? It gives you a point to investigate from at least.
Contact me to contract me for D7 -> D10/11 migrations.
That file is still there in
That file is still there in the assets dir
#
# Appended to default.settings.php by Drupal CMS's scaffold plugin configuration.
#
$sync_directory = realpath('../config/sync');
if (is_dir($sync_directory)) {
$settings['config_sync_directory'] ??= $sync_directory;
}
#
# End of settings appended by Drupal CMS.
#
I was able to update
I was able to update everything using Drush. On the status reports page you should see a list of modules with update available. Do core first, then one by one do those modules with updates available. Then for modules with an update available to the the module's page and at the bottom you should be able to copy in the update command, e.g.,
composer require 'drupal/moduletoupdate:^3.0'
In your terminal session add "ddev" before this ... e.g., ddev composer require 'drupal/moduletoupdate:^3.0'
You could also post in the Slack page for cms support. But I am happy to just be able to update the cms at this point using drush.
make sure you've done a composer self-update first. The instructions re. automatic updates are a bit wonky at this point. I tried modifying my settings.php file to set package manager to true (per the instructions) but I get the same error you did.
For time being as long as I can get the updates done through Drush ... I'm fine.
Sorry for any confusion. My
Sorry for any confusion. My reply earlier assumed that you have the CMS running using ddev. If so, you will have a terminal session available. Within that you can run either Drush or Composer. These are command line tools. At the command line you will run either "ddev composer" or ddev "drush". The actual commands I posted correctly are for ddev composer.
If the Drupal CMS folks can eventually make the updates work directly from the status report screen that will be a big plus, but even being able to see what needs to be updated from the status report screen is great.