On Drupal 8.8.2, after updating a module using composer, drush fails trying to update the database:

[~/www]# ./drush updb -vvv
 [preflight] Config paths: /home/orcmaorg/public_html/vendor/drush/drush/drush.yml,/home/orcmaorg/public_html/vendor/drush/drush/drush
 [preflight] Alias paths: /home/orcmaorg/public_html/drush/sites,/home/orcmaorg/drush/sites
 [preflight] Commandfile search paths: /home/orcmaorg/public_html/vendor/drush/drush/src,/home/orcmaorg/drush
 [bootstrap] Starting bootstrap to full [0.08 sec, 8.35 MB]
 [bootstrap] Drush bootstrap phase 5 [0.08 sec, 8.35 MB]
 [bootstrap] Try to validate bootstrap phase 5 [0.08 sec, 8.35 MB]
 [bootstrap] Try to validate bootstrap phase 5 [0.08 sec, 8.35 MB]
 [bootstrap] Try to bootstrap at phase 5 [0.08 sec, 8.35 MB]
 [bootstrap] Drush bootstrap phase: bootstrapDrupalRoot() [0.08 sec, 8.35 MB]
 [bootstrap] Change working directory to /home/orcmaorg/public_html [0.08 sec, 8.35 MB]
 [bootstrap] Initialized Drupal 8.8.2 root directory at /home/orcmaorg/public_html [0.08 sec, 8.48 MB]
 [bootstrap] Try to validate bootstrap phase 5 [0.08 sec, 8.48 MB]
 [bootstrap] Try to bootstrap at phase 5 [0.09 sec, 8.78 MB]
 [bootstrap] Drush bootstrap phase: bootstrapDrupalSite() [0.09 sec, 8.78 MB]
 [bootstrap] Initialized Drupal site default at sites/default [0.09 sec, 9.01 MB]
 [bootstrap] Try to validate bootstrap phase 5 [0.09 sec, 9.01 MB]
 [bootstrap] Try to bootstrap at phase 5 [0.09 sec, 9.01 MB]
 [bootstrap] Drush bootstrap phase: bootstrapDrupalConfiguration() [0.09 sec, 9.01 MB]
 [debug] Add service modifier [0.09 sec, 9.24 MB]
 [bootstrap] Try to validate bootstrap phase 5 [0.09 sec, 9.24 MB]
 [bootstrap] Try to bootstrap at phase 5 [0.1 sec, 9.65 MB]
 [bootstrap] Drush bootstrap phase: bootstrapDrupalDatabase() [0.1 sec, 9.65 MB]
 [bootstrap] Successfully connected to the Drupal database. [0.1 sec, 9.65 MB]
 [bootstrap] Try to validate bootstrap phase 5 [0.1 sec, 9.65 MB]
 [bootstrap] Try to bootstrap at phase 5 [0.1 sec, 9.65 MB]
 [bootstrap] Drush bootstrap phase: bootstrapDrupalFull() [0.1 sec, 9.65 MB]
 [debug] Start bootstrap of the Drupal Kernel. [0.1 sec, 9.65 MB]
 [debug] Found drush.services.yml for devel Drush commands [0.17 sec, 12.6 MB]
 [debug] devel_entity_updates should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/master/commands/#specifying-the-services-file. [0.18 sec, 12.6 MB]
 [debug] media_entity should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/master/commands/#specifying-the-services-file. [0.18 sec, 12.6 MB]
 [debug] Found drush.services.yml for module_missing_message_fixer Drush commands [0.18 sec, 12.6 MB]
 [debug] plugin should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/master/commands/#specifying-the-services-file. [0.18 sec, 12.6 MB]
 [debug] Found drush.services.yml for token Drush commands [0.18 sec, 12.6 MB]
 [debug] views_slideshow_cycle should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/master/commands/#specifying-the-services-file. [0.18 sec, 12.6 MB]
 [debug] Found drush.services.yml for webform Drush commands [0.18 sec, 12.6 MB]
 [debug] Get container builder [0.18 sec, 12.68 MB]
 [debugnotify] Service modifier alter. [0.18 sec, 12.78 MB]
 [debug] process drush.console.services console.command [0.26 sec, 17.71 MB]
 [debug] process drush.command.services drush.command [0.26 sec, 17.71 MB]
 [debugnotify] Found tagged service config.commands [0.26 sec, 17.71 MB]
 [debugnotify] Found tagged service config.export.commands [0.26 sec, 17.71 MB]
 [debugnotify] Found tagged service config.import.commands [0.26 sec, 17.71 MB]
 [debugnotify] Found tagged service batch.commands [0.26 sec, 17.71 MB]
 [debugnotify] Found tagged service cli.commands [0.26 sec, 17.71 MB]
 [debugnotify] Found tagged service drupal.commands [0.26 sec, 17.72 MB]
 [debugnotify] Found tagged service entity.commands [0.26 sec, 17.72 MB]
 [debugnotify] Found tagged service image.commands [0.26 sec, 17.72 MB]
 [debugnotify] Found tagged service jsonapi.commands [0.26 sec, 17.72 MB]
 [debugnotify] Found tagged service language.commands [0.26 sec, 17.72 MB]
 [debugnotify] Found tagged service locale.commands [0.26 sec, 17.72 MB]
 [debugnotify] Found tagged service messenger.commands [0.26 sec, 17.72 MB]
 [debugnotify] Found tagged service queue.commands [0.26 sec, 17.72 MB]
 [debugnotify] Found tagged service role.commands [0.26 sec, 17.72 MB]
 [debugnotify] Found tagged service state.commands [0.26 sec, 17.72 MB]
 [debugnotify] Found tagged service twig.commands [0.26 sec, 17.72 MB]
 [debugnotify] Found tagged service user.commands [0.26 sec, 17.72 MB]
 [debugnotify] Found tagged service views.commands [0.26 sec, 17.73 MB]
 [debugnotify] Found tagged service watchdog.commands [0.26 sec, 17.73 MB]
 [debugnotify] Found tagged service pm.commands [0.26 sec, 17.73 MB]
 [debugnotify] Found tagged service theme.commands [0.26 sec, 17.73 MB]
 [debugnotify] Found tagged service sanitize.commands [0.26 sec, 17.73 MB]
 [debugnotify] Found tagged service sanitize.comments.commands [0.26 sec, 17.73 MB]
 [debugnotify] Found tagged service sanitize.sessions.commands [0.26 sec, 17.73 MB]
 [debugnotify] Found tagged service sanitize.userfields.commands [0.26 sec, 17.73 MB]
 [debugnotify] Found tagged service sanitize.usertable.commands [0.26 sec, 17.73 MB]
 [debugnotify] Found tagged service devel.command [0.26 sec, 17.73 MB]
 [debugnotify] Found tagged service devel_entity_updates.command [0.26 sec, 17.73 MB]
 [debugnotify] Found tagged service media_entity.drush.commands [0.26 sec, 17.73 MB]
 [debugnotify] Found tagged service module_missing_message_fixer.fix [0.26 sec, 17.74 MB]
 [debugnotify] Found tagged service module_missing_message_fixer.list [0.26 sec, 17.74 MB]
 [debugnotify] Found tagged service plugin.commands [0.26 sec, 17.74 MB]
 [debugnotify] Found tagged service views_slideshow_cycle.commands [0.26 sec, 17.74 MB]
 [debugnotify] Found tagged service webform.commands [0.26 sec, 17.74 MB]
 [debugnotify] Found tagged service webform.sanitize.submissions.commands [0.26 sec, 17.74 MB]
 [debug] process drush.command_info_alterer.services drush.command_info_alterer [0.26 sec, 17.74 MB]
 [debug] process drush.generator.services drush.generator [0.26 sec, 17.74 MB]
 [debug] Finished bootstrap of the Drupal Kernel. [0.47 sec, 32.55 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\config\ConfigCommands [0.71 sec, 48.15 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\config\ConfigExportCommands [0.71 sec, 48.18 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\config\ConfigImportCommands [0.71 sec, 48.18 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\BatchCommands [0.71 sec, 48.19 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\CliCommands [0.71 sec, 48.19 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\DrupalCommands [0.71 sec, 48.2 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\EntityCommands [0.71 sec, 48.21 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\ImageCommands [0.71 sec, 48.21 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\JsonapiCommands [0.71 sec, 48.23 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\LanguageCommands [0.71 sec, 48.24 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\LocaleCommands [0.71 sec, 48.24 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\MessengerCommands [0.71 sec, 48.26 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\QueueCommands [0.71 sec, 48.26 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\RoleCommands [0.71 sec, 48.27 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\StateCommands [0.72 sec, 48.29 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\TwigCommands [0.72 sec, 48.31 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\UserCommands [0.72 sec, 48.32 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\ViewsCommands [0.72 sec, 48.36 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\core\WatchdogCommands [0.72 sec, 48.39 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\pm\PmCommands [0.72 sec, 48.42 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\pm\ThemeCommands [0.72 sec, 48.43 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeCommands [0.72 sec, 48.43 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeCommentsCommands [0.72 sec, 48.44 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeSessionsCommands [0.72 sec, 48.44 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeUserFieldsCommands [0.72 sec, 48.44 MB]
 [debugnotify] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeUserTableCommands [0.72 sec, 48.45 MB]
 [debugnotify] Add a commandfile class: Drupal\token\Commands\TokenCommands [0.72 sec, 48.45 MB]
 [debugnotify] Add a commandfile class: Drupal\devel_entity_updates\Commands\DevelEntityUpdatesCommands [0.72 sec, 48.45 MB]
 [debugnotify] Add a commandfile class: Drupal\media_entity\Commands\DrushCommands [0.72 sec, 48.46 MB]
 [debugnotify] Add a commandfile class: Drupal\module_missing_message_fixer\Commands\MmmfFixCommand [0.72 sec, 48.46 MB]
 [debugnotify] Add a commandfile class: Drupal\module_missing_message_fixer\Commands\MmmfListCommand [0.72 sec, 48.47 MB]
 [debugnotify] Add a commandfile class: Drupal\plugin\Commands\PluginCommands [0.72 sec, 48.47 MB]
 [debugnotify] Add a commandfile class: Drupal\views_slideshow_cycle\Commands\ViewsSlideshowCycleCommands [0.72 sec, 48.47 MB]
 [debugnotify] Add a commandfile class: Drupal\webform\Commands\WebformCommands [0.73 sec, 48.48 MB]
 [debugnotify] Add a commandfile class: Drupal\webform\Commands\WebformSanitizeSubmissionsCommands [0.73 sec, 48.55 MB]
 [info] Executing: /home/orcmaorg/public_html/vendor/bin/drush updatedb:status --no-entity-updates --uri=default --root=/home/orcmaorg/public_html [0.89 sec, 55.3 MB]

In Process.php line 235:

  [Symfony\Component\Process\Exception\ProcessFailedException]
  The command "/home/orcmaorg/public_html/vendor/bin/drush updatedb:status --no-entity-updates --uri=default --root=/home/orcmaorg/public_html" failed.

  Exit Code: 255(Unknown error)

  Working directory:

  Output:
  ================

  Error Output:
  ================

Exception trace:
  at /home/orcmaorg/public_html/vendor/symfony/process/Process.php:235
 Symfony\Component\Process\Process->mustRun() at /home/orcmaorg/public_html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php:65
 Drush\Commands\core\UpdateDBCommands->updatedb() at n/a:n/a
 call_user_func_array() at /home/orcmaorg/public_html/vendor/consolidation/annotated-command/src/CommandProcessor.php:257
 Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback() at /home/orcmaorg/public_html/vendor/consolidation/annotated-command/src/CommandProcessor.php:212
 Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter() at /home/orcmaorg/public_html/vendor/consolidation/annotated-command/src/CommandProcessor.php:176
 Consolidation\AnnotatedCommand\CommandProcessor->process() at /home/orcmaorg/public_html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php:302
 Consolidation\AnnotatedCommand\AnnotatedCommand->execute() at /home/orcmaorg/public_html/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /home/orcmaorg/public_html/vendor/symfony/console/Application.php:1000
 Symfony\Component\Console\Application->doRunCommand() at /home/orcmaorg/public_html/vendor/symfony/console/Application.php:255
 Symfony\Component\Console\Application->doRun() at /home/orcmaorg/public_html/vendor/symfony/console/Application.php:148
 Symfony\Component\Console\Application->run() at /home/orcmaorg/public_html/vendor/drush/drush/src/Runtime/Runtime.php:118
 Drush\Runtime\Runtime->doRun() at /home/orcmaorg/public_html/vendor/drush/drush/src/Runtime/Runtime.php:49
 Drush\Runtime\Runtime->run() at /home/orcmaorg/public_html/vendor/drush/drush/drush.php:72
 require() at /home/orcmaorg/public_html/vendor/drush/drush/drush:4

updatedb [--cache-clear [CACHE-CLEAR]] [--entity-updates] [--post-updates [POST-UPDATES]] [--no-cache-clear] [--no-post-updates] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--xh-link XH-LINK] [--notify [NOTIFY]] [--] <command>

Comments

divesh.kumar’s picture

What is the name of module?

tjtj’s picture

But drush updb fails now for everything.

divesh.kumar’s picture

I feel that the newly updated module has probable dbscripts in hook_update_N (if it's there) that are conflicting with database operations. Can you just check "commenting the update_hooks" in the module you udpated and then try again.

If that does not resolves then try "Composer require drush/drush" once again and execute the updb again. 

tjtj’s picture

How do I  check "commenting the update_hooks" in the module you udpated

divesh.kumar’s picture

In the module's directory, there would be a .install file. Try to comment methods one after another and try running drush.