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
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

grendzy - December 11, 2008 - 21:13

I'm having the same issue after upgrading to Drupal 6.8.

#2

kreynen - December 12, 2008 - 16:28

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

adrian - December 12, 2008 - 17:59

You need to do
--uri=http://mysite.com

#4

ArjanLikesDrupal - December 12, 2008 - 18:11

I upgraded from 6.6 to 6.8; using the alias option still works.

#5

grendzy - December 12, 2008 - 18:48

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

catch - December 15, 2008 - 21:42
Status:active» duplicate

Marking as duplicate of the core bug.

#7

grendzy - December 21, 2008 - 06:08
Status:duplicate» postponed

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

grendzy - December 21, 2008 - 06:09

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

grendzy - January 20, 2009 - 00:47
Status:postponed» duplicate

This has been fixed in the latest Drupal core release. Yea!

 
 

Drupal is a registered trademark of Dries Buytaert.