Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command cache-rebuild needs a higher bootstrap level to run #38

Open
Mgldvd opened this issue Apr 6, 2022 · 0 comments
Open

Command cache-rebuild needs a higher bootstrap level to run #38

Mgldvd opened this issue Apr 6, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Mgldvd
Copy link

Mgldvd commented Apr 6, 2022

I'm getting this error on fresh install, not sure if this error is part of the lando/acquia implementation.
Drupal 9 fresh installation on Acquia
Thank you

After fun:

  • Run lando init acquia
  • Run lando pull database
$  lando drush cr                                                                                                                        ⌛ 1m36s118ms
Command cache-rebuild needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command.                                                                                           [error]
Command cache-rebuild requires Drupal core version 8+ to run.                                                                                                                                                                                        [error]
The drush command 'cr' could not be executed.                                                                                                                                                                                                        [error]
$  lando drush status                                                                                                                       ⌛ 1s871ms
 PHP configuration      :                       
 PHP OS                 :  Linux                
 Drush script           :  /usr/local/bin/drush 
 Drush version          :  8.4.8                
 Drush temp directory   :  /tmp                 
 Drush configuration    :                       
 Drush alias files      : 
  • Upgrade Drush to 11
$  lando drush cr                                                                                                                             ⌛ 712ms
In BootstrapHook.php line 36:                                              
  Bootstrap failed. Run your command with -vvv for more information.                                                     
$  lando drush status                 
PHP binary    : /usr/local/bin/php                
PHP OS        : Linux                             
Drush script  : /app/vendor/bin/drush             
Drush version : 11.0.7                            
Drush temp    : /tmp                              
Drush configs : /app/vendor/drush/drush/drush.yml 
$  lando drush cr -vvv 
In BootstrapHook.php line 36:
                                                                      
  [Exception]                                                         
  Bootstrap failed. Run your command with -vvv for more information.  
                                                                      

Exception trace:
  at /app/vendor/drush/drush/src/Boot/BootstrapHook.php:36
 Drush\Boot\BootstrapHook->initialize() at /app/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php:44
 Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->doInitializeHook() at /app/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php:36
 Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->callInitializeHook() at /app/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php:29
 Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->initialize() at /app/vendor/consolidation/annotated-command/src/CommandProcessor.php:145
 Consolidation\AnnotatedCommand\CommandProcessor->initializeHook() at /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php:335
 Consolidation\AnnotatedCommand\AnnotatedCommand->initialize() at /app/vendor/symfony/console/Command/Command.php:264
 Symfony\Component\Console\Command\Command->run() at /app/vendor/symfony/console/Application.php:1033
 Symfony\Component\Console\Application->doRunCommand() at /app/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at /app/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at /app/vendor/drush/drush/src/Runtime/Runtime.php:121
 Drush\Runtime\Runtime->doRun() at /app/vendor/drush/drush/src/Runtime/Runtime.php:51
 Drush\Runtime\Runtime->run() at /app/vendor/drush/drush/drush.php:72
 require() at /app/vendor/drush/drush/drush:3
 include() at /app/vendor/bin/drush:112

lando 09:23:36 DEBUG ==> process pid4 finished with exit code 1 
lando 09:23:36 VERBOSE ==> reporting error action to report=true, url=https://metrics.lando.dev, report=true, url=https://metrics.lando.dev
lando 09:23:36 DEBUG ==> reported data command=lando drush,cr, context=local, devMode=false, instance=e050fad8a4a0a572fb442051451b399052ec3b00, nodeVersion=v14.17.2, mode=cli, type=Linux, platform=linux, release=5.13.0-39-generic, arch=x64, product=lando, version=3.6.2, message=, stack=Error
    at /snapshot/cli/lib/shell.js
From previous event:
    at Shell.sh (shell.js)
    at Object.dockerExec (utils.js)
    at /snapshot/cli/plugins/lando-tooling/lib/build.js
From previous event:
    at Object.run (build.js)
From previous event:
    at /snapshot/cli/lib/bootstrap.js
    at /snapshot/cli/lib/cli.js
From previous event:
    at /snapshot/cli/lib/cli.js
From previous event:
    at Object.handler (cli.js)
    at Object.runCommand (command.js:238:44)
    at Object.parseArgs [as _parseArgs] (yargs.js:1063:30)
    at Function.get [as argv] (yargs.js:1004:21)
    at Cli.init (cli.js)
    at Cli.run (cli.js)
    at Object.<anonymous> (lando.js)
    at Module._compile (bootstrap.js:1751:22)
    at Function.runMain (bootstrap.js:1804:12)
    at internal/main/run_main_module.js:17:47, action=error, created=2022-04-06T14:23:36.281Z
lando 09:23:36 VERBOSE ==> checking docker version compatibility... 
lando 09:23:36 DEBUG ==> compatibility results name=compose, link=https://docs.docker.com/compose/install/#install-compose-on-linux-systems, wants=1.23.0 - 1.30.0, version=1.29.2, semversion=1.29.2, semmin=1.23.0, semmax=1.30.0, dockerVersion=true, satisfied=true, name=engine, link=https://docs.docker.com/engine/install/, wants=18.09.3 - 20.10.99, version=20.10.14, semversion=20.10.14, semmin=18.9.3, semmax=20.10.99, dockerVersion=true, satisfied=true

Thank you

@Mgldvd Mgldvd added the bug Something isn't working label Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant