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

Comments

grendzy’s picture

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

kreynen’s picture

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.

adrian’s picture

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

ar-jan’s picture

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

grendzy’s picture

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.

catch’s picture

Status: Active » Closed (duplicate)

Marking as duplicate of the core bug.

grendzy’s picture

Status: Closed (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

grendzy’s picture

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

grendzy’s picture

Status: Postponed » Closed (duplicate)

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