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
Comment #1
grendzy CreditAttribution: grendzy commentedI'm having the same issue after upgrading to Drupal 6.8.
Comment #2
kreynen CreditAttribution: kreynen commentedSame 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.
Comment #3
adrian CreditAttribution: adrian commentedYou need to do
--uri=http://mysite.com
Comment #4
ar-jan CreditAttribution: ar-jan commentedI upgraded from 6.6 to 6.8; using the alias option still works.
Comment #5
grendzy CreditAttribution: grendzy commentedThere 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.
Comment #6
catchMarking as duplicate of the core bug.
Comment #7
grendzy CreditAttribution: grendzy commentedIs there any way to make this issue sticky to prevent duplicate issues being filed? Or maybe mention it on the project page?
thanks,
Dylan
Comment #8
grendzy CreditAttribution: grendzy commentedIs there any way to make this issue sticky to prevent duplicate issues being filed? Or maybe mention it on the project page?
thanks,
Dylan
Comment #9
grendzy CreditAttribution: grendzy commentedThis has been fixed in the latest Drupal core release. Yea!