Drush: Bootstrap failed
asb - December 11, 2008 - 19:55
| Project: | Drush |
| Version: | 5.x-1.4 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
Hi!
After upgrading to 5.13 and 5.14, drush refuses to work als usual (hard link, as described in the documentation). The link still exists and is pointing to a valid drush.php path:
# ls /usr/bin/drush
/usr/bin/drush
...
# ln /var/www/my.site/sites/all/modules/drush/drush.php /usr/bin/drush
ln: Erzeugen der harten Verknüpfung /usr/bin/drush zu /var/www/my.site/sites/all/modules/drush/drush.php: Die Datei existiert bereits(= file already exists)
Error message when running something like "drush help" from /var/www/my.site:
Drush: Bootstrap failed. Perhaps you need to pass a valid value for the -l argument.
Running drush as ./sites/all/modules/drush/drush.php results in the same error message.
Running "drush -l http://path.to.my.site help" from the drupal installation directory for "my.site" works.
What happened to the hard link? Any ideas?
Thanks & greetings, -asb

#1
I'm having the same issue after upgrading to Drupal 6.8.
#2
Same issue here with 6.8.
running drush normally we get...
E: Drush was not able to start (bootstrap) Drupal.
Hint: This error often occurs when Drush is trying to bootstrap a site
that has not been installed or does not have a configured $db_url.
Drush was looking in the site ''. You can select another site
with a working database setup by specifying the URI to use with the --uri
parameter on the command line or $options['uri'] in your drushrc.php file.
When we add the -uri, drush says Drupal doesn't exist in the dir...
[]$ sudo .drush.php -uri pm install logintoboggan
E: Could not locate a Drupal installation directory in 1. Aborting.
Hint: You can specify your Drupal installation directory with the --root
parameter on the command line or $options['root'] in your drushrc.php file.
We tested the most recent version of drush, same issue.
#3
You need to do
--uri=http://mysite.com
#4
I upgraded from 6.6 to 6.8; using the alias option still works.
#5
There is a bug report for the latest version of core that address this issue. #346285: Drupal 5.14 & Drupal 6.8 will not load on clients that do not transmit HTTP_HOST. After applying this patch Drush is back to normal for me.
#6
Marking as duplicate of the core bug.
#7
Is there any way to make this issue sticky to prevent duplicate issues being filed? Or maybe mention it on the project page?
thanks,
Dylan
#8
Is there any way to make this issue sticky to prevent duplicate issues being filed? Or maybe mention it on the project page?
thanks,
Dylan
#9
This has been fixed in the latest Drupal core release. Yea!