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

Drupal 10 is broken; Drush 12 does not work with Drush Launcher #283

Closed
rosiel opened this issue Aug 3, 2023 · 3 comments
Closed

Drupal 10 is broken; Drush 12 does not work with Drush Launcher #283

rosiel opened this issue Aug 3, 2023 · 3 comments

Comments

@rosiel
Copy link
Contributor

rosiel commented Aug 3, 2023

Drush Launcher is a tool that adds the path of drush to your path so commands can be written as drush (rather than vendor/bin/drush). It is known to be incompatible with Drush 12 (required by Drupal 10).

The Site Template invokes drush so it is failing.

Suggestion: Add /var/www/drupal/vendor/bin to $PATH. I'm not sure how to do this, I have tried both in the Dockerfile and in install.sh and neither of them work. The drupal logs report:

d10-rosie-drupal-dev-1  | [03-Aug-2023 14:57:26 UTC] PHP Fatal error:  Uncaught RuntimeException: Drush Launcher is not compatible with Drush 12+. See https://github.com/drush-ops/drush-launcher/issues/105. in /var/www/drupal/vendor/drush/drush/includes/preflight.inc:23
d10-rosie-drupal-dev-1  | Stack trace:
d10-rosie-drupal-dev-1  | #0 phar:///usr/bin/drush/bin/drush.php(141): drush_main()
d10-rosie-drupal-dev-1  | Islandora-Devops/isle-site-template#1 /usr/bin/drush(10): require('phar:///usr/bin...')
d10-rosie-drupal-dev-1  | Islandora-Devops/isle-site-template#2 {main}
d10-rosie-drupal-dev-1  |   thrown in /var/www/drupal/vendor/drush/drush/includes/preflight.inc on line 23
d10-rosie-drupal-dev-1  | s6-rc: warning: unable to start service install: command exited 128
d10-rosie-drupal-dev-1  | /run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
d10-rosie-drupal-dev-1  | prog: fatal: stopping the container.

and the container has stopped itself, so I can't get in to fix it.

@rosiel rosiel transferred this issue from Islandora-Devops/isle-site-template Aug 4, 2023
@rosiel
Copy link
Contributor Author

rosiel commented Aug 4, 2023

@rosiel
Copy link
Contributor Author

rosiel commented Aug 4, 2023

I can't proceed, I'm too over my head in terms of how docker works and why all these things need to be present.

@rosiel
Copy link
Contributor Author

rosiel commented Aug 28, 2023

Solved with #286

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant