Drush cr is responding with Bootstrap Failed

Drupal Answers Asked by Chanel on October 26, 2021

I have a Drupal 8.9 site I built on my development server. I’ve now copied it over to my production server (Ubuntu 16) and set up the database. I need to run drush cr to finish the process but when I do I get Bootstrap failed.

I’ve been all over the web trying different things to get it to work. I’ve changed ‘localhost’ to ‘’ in settings.php. I’ve removed drush and reinstalled. I’ve double checked that the database is accessible with the credentials in settings.php. I’ve run out of ideas.

Here’s the verbose output:

[email protected]:/var/www/html/ycfld$ drush cr -vvv
 [preflight] Config paths: /home/administrator/.composer/vendor/drush/drush/drush.yml
 [preflight] Alias paths: /var/www/html/ycfld/drush/sites,/var/www/html/drush/sites
 [preflight] Commandfile search paths: /home/administrator/.composer/vendor/drush/drush/src
 [debug] Starting bootstrap to site [0.05 sec, 7.81 MB]

In BootstrapHook.php line 32:

  Bootstrap failed. Run your command with -vvv for more information.

Exception trace:
  at /home/administrator/.composer/vendor/drush/drush/src/Boot/BootstrapHook.php:32
 DrushBootBootstrapHook->initialize() at /home/administrator/.composer/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php:34
 ConsolidationAnnotatedCommandHooksDispatchersInitializeHookDispatcher->callInitializeHook() at /home/administrator/.composer/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php:27
 ConsolidationAnnotatedCommandHooksDispatchersInitializeHookDispatcher->initialize() at /home/administrator/.composer/vendor/consolidation/annotated-command/src/CommandProcessor.php:145
 ConsolidationAnnotatedCommandCommandProcessor->initializeHook() at /home/administrator/.composer/vendor/consolidation/annotated-command/src/AnnotatedCommand.php:289
 ConsolidationAnnotatedCommandAnnotatedCommand->initialize() at /home/administrator/.composer/vendor/symfony/console/Command/Command.php:221
 SymfonyComponentConsoleCommandCommand->run() at /home/administrator/.composer/vendor/symfony/console/Application.php:1018
 SymfonyComponentConsoleApplication->doRunCommand() at /home/administrator/.composer/vendor/symfony/console/Application.php:271
 SymfonyComponentConsoleApplication->doRun() at /home/administrator/.composer/vendor/symfony/console/Application.php:147
 SymfonyComponentConsoleApplication->run() at /home/administrator/.composer/vendor/drush/drush/src/Runtime/Runtime.php:118
 DrushRuntimeRuntime->doRun() at /home/administrator/.composer/vendor/drush/drush/src/Runtime/Runtime.php:49
 DrushRuntimeRuntime->run() at /home/administrator/.composer/vendor/drush/drush/drush.php:72

And here’s the status:

[email protected]:/var/www/html/ycfld$ drush status
 PHP binary    : /usr/bin/php7.4
 PHP config    : /etc/php/7.4/cli/php.ini
 PHP OS        : Linux
 Drush script  : /home/administrator/.composer/vendor/drush/drush/drush.p
 Drush version : 10.3.1
 Drush temp    : /tmp
 Drush configs : /home/administrator/.composer/vendor/drush/drush/drush.y
 Drupal root   : /var/www/html/ycfld

I’d appreciate any insights. This one thing is all that stands in my way of the site going live (I think).

Add your own answers!

Related Questions

Node is not created, but nid is returned

2  Asked on December 26, 2021 by ziobudda


EntityDrupalWrapper->value() causes infinite recursion on user login?

1  Asked on December 24, 2021 by tigertrussell


Feed import breaks due to ajax error

1  Asked on December 24, 2021 by kenpeter


Multi site Image cache issue

0  Asked on December 24, 2021 by user99683


How to make relationships between users

1  Asked on December 22, 2021


Need CKEditor to encode special characters

1  Asked on December 22, 2021 by bemarlan


Checkboxes in a simple form are not displayed

1  Asked on December 22, 2021 by sebish


How to change scheduler date format in *_node_form

1  Asked on December 21, 2021 by oskar-calvo


hiding taxonomy terms on term page

1  Asked on December 21, 2021 by user3027413


TypeError on “drush config-export”

1  Asked on December 21, 2021


“Broken pipe” between Nginx and PHP-FPM

1  Asked on December 21, 2021 by stephen-winnall


Restrict delete operation on a node referenced by another node

2  Asked on December 19, 2021 by user48552


How to perform views date calculations using global math?

2  Asked on December 19, 2021 by tinohuda


Get menu link siblings

4  Asked on December 19, 2021 by erin-mclaughlin


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP