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

backdrop-drush-version error #2695

Closed
ghost opened this issue Nov 13, 2020 · 5 comments
Closed

backdrop-drush-version error #2695

ghost opened this issue Nov 13, 2020 · 5 comments
Labels
bug Something aint working right!

Comments

@ghost
Copy link

ghost commented Nov 13, 2020

Tell us about your setup

Lando: v3.0.19
OS: Linux Mint 20 Cinnamon

Tell us about your .lando.yml

name: backdrop-drush-test
recipe: backdrop
config:
  webroot: .

Tell us about the command you were running

mkdir backdrop-drush-test
cd backdrop-drush-test/
lando init
  [current working directory]
  [backdrop]
  [.]
  [backdrop-drush-test]
lando start
  [Drush Version   :  8.3.5]
  ['drush' cache was cleared.]
lando rebuild -y

Tell us about the error you got

backdrop-drush-test 21:30:50 INFO ==> running build steps... 
backdrop-drush-test 21:30:50 DEBUG ==> process pid12 running /usr/share/lando/bin/docker-compose up cstdio=inherit, silent=false, mode=spawn, detached=false
Creating backdropdrushtest_appserver_1 ... done
backdrop-drush-test 21:30:51 DEBUG ==> process pid12 finished with exit code 0 
backdrop-drush-test 21:30:51 DEBUG ==> process pid13 running /usr/share/lando/bin/docker-compose exec appserver /helpers/user-perms.sh cstdio=inherit, silent=false, mode=spawn, detached=false
backdrop-drush-test 21:30:51 DEBUG ==> process pid13 finished with exit code 0 
backdrop-drush-test 21:30:51 DEBUG ==> process pid14 running /usr/share/lando/bin/docker-compose exec appserver /bin/sh /helpers/install-composer.sh 2.0.3 cstdio=[inherit, pipe, pipe], silent=false, mode=spawn, detached=false
All settings correct for using Composer
Downloading...

Composer (version 2.0.3) successfully installed to: /usr/local/bin/composer
Use it: php /usr/local/bin/composer

Changed current directory to /var/www/.composer
hirak/prestissimo is not required in your composer.json and has not been removed
./composer.json has been updated
Running composer update hirak/prestissimo
Loading composer repositories with package information
Updating dependencies
Package "hirak/prestissimo" listed for update is not locked.
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
backdrop-drush-test 21:31:07 DEBUG ==> process pid14 finished with exit code 0 
backdrop-drush-test 21:31:07 DEBUG ==> process pid15 running /usr/share/lando/bin/docker-compose exec appserver /bin/sh curl https://github.com/drush-ops/drush/releases/download/8.3.5/drush.phar -L -o /tmp/drush.phar && chmod +x /tmp/drush.phar && mv /tmp/drush.phar /usr/local/bin/drush && drush --version cstdio=[inherit, pipe, pipe], silent=false, mode=spawn, detached=false
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   632  100   632    0     0   1461      0 --:--:-- --:--:-- --:--:--  1462
100 4879k  100 4879k    0     0  70281      0  0:01:11  0:01:11 --:--:-- 70133
Command backdrop-drush-version needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command.                                                                                  [error]
The drush command 'version' could not be executed.                                                                                                                                                                                                   [error]
backdrop-drush-test 21:32:19 DEBUG ==> process pid15 finished with exit code 1 
backdrop-drush-test 21:32:19 ERROR ==> The drush command 'version' could not be executed.                                                                                                                                                                                                   [error] 
backdrop-drush-test 21:32:19 DEBUG ==>  message=The drush command 'version' could not be executed.                                                                                                                                                                                                   [error], stack=Error: The drush command 'version' could not be executed.                                                                                                                                                                                                   [error]
    at /snapshot/lando/build/cli/lib/shell.js

Tell us generally about your bug

After a rebuild of a Backdrop Lando site, Drush fails to run the version command and causes an error. This means subsequent lando start runs will re-download Drush (unnecessarily).

Drush is still usable, it's just the downloading each time you start it that is unnecessary and annoying.

These comments in Slack are what prompted the investigation into this issue: https://devwithlando.slack.com/archives/C2XBSHX8R/p1605213336060200

@ghost ghost added the bug Something aint working right! label Nov 13, 2020
@serundeputy
Copy link
Collaborator

thanks @BWPanda

This started happening when I implemented the drush version command for the backdrop-drush-extension and that new takeover command is failing at this point.

@ghost
Copy link
Author

ghost commented Nov 13, 2020

Hmm, weird that it happens on rebuild and not the initial start though...

@ghost
Copy link
Author

ghost commented Nov 15, 2020

I believe backdrop-contrib/backdrop-drush-extension#231 should fix it.

@pirog pirog added this to Catch All in External Plugins Dec 28, 2020
@pirog pirog moved this from Other to Recipes in External Plugins Dec 28, 2020
@pirog pirog moved this from Recipes to Drupal and Backdrop in External Plugins Dec 28, 2020
@pirog pirog moved this from Drupal and Backdrop to PHP Recipes or Services in External Plugins Dec 28, 2020
@ghost
Copy link
Author

ghost commented Jan 25, 2021

I believe this is fixed now (fixed Backdrop's Drush in backdrop-contrib/backdrop-drush-extension#232). so will close as such.

@ghost ghost closed this as completed Jan 25, 2021
@sdubois
Copy link

sdubois commented Dec 26, 2023

I am getting the "Command backdrop-drush-version needs a higher bootstrap level to run" error on lando v3.20.8 when I run lando rebuild.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something aint working right!
Projects
External Plugins
PHP Recipes or Services
Development

No branches or pull requests

2 participants