Error running Drush updates after updating to beta1

Created on 2 December 2024, 20 days ago

Problem/Motivation

After updating the module, I'm unable to install Drush database updates.

Steps to reproduce

--------------- ---------------- ------------- ----------------------------------------------------------- 
  Module          Update ID        Type          Description                                                
 --------------- ---------------- ------------- ----------------------------------------------------------- 
  ultimate_cron   hook_callbacks   post-update   Convert cron jobs to the new custom hook callback format.  
 --------------- ---------------- ------------- ----------------------------------------------------------- 


 Do you wish to run the specified pending updates? (yes/no) [yes]:
 > y

>  [notice] Update started: ultimate_cron_post_update_hook_callbacks
>  [error]  TypeError: Drupal\ultimate_cron\QueueWorker::__construct(): Argument #4 ($loggerFactory) must be of type Drupal\Core\Logger\LoggerChannelFactoryInterface, Drupal\Core\Logger\LoggerChannel given in Drupal\ultimate_cron\QueueWorker->__construct() (line 23 of /var/www/html/web/modules/contrib/ultimate_cron/src/QueueWorker.php) #0 [internal function]: Drupal\ultimate_cron\QueueWorker->__construct()
> #1 /var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php(1140): ReflectionClass->newInstanceArgs()
> #2 /var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php(586): Symfony\Component\DependencyInjection\ContainerBuilder->createService()
> #3 /var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php(531): Symfony\Component\DependencyInjection\ContainerBuilder->doGet()
> #4 /var/www/html/web/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php(33): Symfony\Component\DependencyInjection\ContainerBuilder->get()
> #5 /var/www/html/web/modules/contrib/ultimate_cron/src/Entity/CronJob.php(370): Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition()
> #6 /var/www/html/web/modules/contrib/ultimate_cron/src/Entity/CronJob.php(835): Drupal\ultimate_cron\Entity\CronJob->resolveCallback()
> #7 /var/www/html/web/modules/contrib/ultimate_cron/ultimate_cron.post_update.php(19): Drupal\ultimate_cron\Entity\CronJob->getCallback()
> #8 /var/www/html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(280): ultimate_cron_post_update_hook_callbacks()
> #9 /var/www/html/vendor/drush/drush/includes/batch.inc(257): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate()
> #10 /var/www/html/vendor/drush/drush/includes/batch.inc(204): _drush_batch_worker()
> #11 /var/www/html/vendor/drush/drush/includes/batch.inc(75): _drush_batch_command()
> #12 /var/www/html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(136): drush_batch_command()
> #13 [internal function]: Drush\Commands\core\UpdateDBCommands->process()
> #14 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
> #15 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
> #16 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
> #17 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process()
> #18 /var/www/html/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
> #19 /var/www/html/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
> #20 /var/www/html/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
> #21 /var/www/html/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
> #22 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
> #23 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
> #24 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
> #25 /var/www/html/vendor/drush/drush/drush(4): require('...')
> #26 /var/www/html/vendor/bin/drush(119): include('...')
> #27 {main}. 
> TypeError: Drupal\ultimate_cron\QueueWorker::__construct(): Argument #4 ($loggerFactory) must be of type Drupal\Core\Logger\LoggerChannelFactoryInterface, Drupal\Core\Logger\LoggerChannel given in /var/www/html/web/modules/contrib/ultimate_cron/src/QueueWorker.php on line 23 #0 [internal function]: Drupal\ultimate_cron\QueueWorker->__construct()
> #1 /var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php(1140): ReflectionClass->newInstanceArgs()
> #2 /var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php(586): Symfony\Component\DependencyInjection\ContainerBuilder->createService()
> #3 /var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php(531): Symfony\Component\DependencyInjection\ContainerBuilder->doGet()
> #4 /var/www/html/web/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php(33): Symfony\Component\DependencyInjection\ContainerBuilder->get()
> #5 /var/www/html/web/modules/contrib/ultimate_cron/src/Entity/CronJob.php(370): Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition()
> #6 /var/www/html/web/modules/contrib/ultimate_cron/src/Entity/CronJob.php(835): Drupal\ultimate_cron\Entity\CronJob->resolveCallback()
> #7 /var/www/html/web/modules/contrib/ultimate_cron/ultimate_cron.post_update.php(19): Drupal\ultimate_cron\Entity\CronJob->getCallback()
> #8 /var/www/html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(280): ultimate_cron_post_update_hook_callbacks()
> #9 /var/www/html/vendor/drush/drush/includes/batch.inc(257): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate()
> #10 /var/www/html/vendor/drush/drush/includes/batch.inc(204): _drush_batch_worker()
> #11 /var/www/html/vendor/drush/drush/includes/batch.inc(75): _drush_batch_command()
> #12 /var/www/html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(136): drush_batch_command()
> #13 [internal function]: Drush\Commands\core\UpdateDBCommands->process()
> #14 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
> #15 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
> #16 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
> #17 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process()
> #18 /var/www/html/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
> #19 /var/www/html/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
> #20 /var/www/html/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
> #21 /var/www/html/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
> #22 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
> #23 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
> #24 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
> #25 /var/www/html/vendor/drush/drush/drush(4): require('...')
> #26 /var/www/html/vendor/bin/drush(119): include('...')
> #27 {main}
>  [warning] Drush command terminated abnormally.

In ProcessBase.php line 171:
                                                                                                                                                                              
  Unable to decode output into JSON: Syntax error                                                                                                                             
                                                                                                                                                                              
  TypeError: Drupal\ultimate_cron\QueueWorker::__construct(): Argument #4 ($loggerFactory) must be of type Drupal\Core\Logger\LoggerChannelFactoryInterface, Drupal\Core\Log  
  ger\LoggerChannel given in Drupal\ultimate_cron\QueueWorker->__construct() (line 23 of /var/www/html/web/modules/contrib/ultimate_cron/src/QueueWorker.php).                
                                                                                                                                                                              

Failed to run drush updb: exit status 1

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024