Hi,
I'm trying to manage my drupal website on my remote freebsd virtual machine using drush and drush aliases
if I run a command (let's say "st") on my remote site ("@remsite") I get the error below. On the remote site it doesn't seem to be able to pass on the required drush command:
The command could not be executed successfully (returned: Execute a drush command. Run `drush help [command]` to view command-specific help.
the full message is (ommitting the drush help):
mycompu:~ boris$ drush -d --verbose @remsite st
Bootstrap to phase 0. [0.03 sec, 1.3 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.04 sec, 1.43 MB] [bootstrap]
Load alias @remboe [0.04 sec, 1.43 MB] [notice]
Begin redispatch via backend invoke [0.11 sec, 3.61 MB] [notice]
Running: ssh -p 35 'admin'@'example.com' '/home/me/drush/drush --root='\''/usr/local/www/machine/www/drupal6'\'' --uri='\''www.example.com'\'' [command]
--db_url='\''mysql://uzername:pazzwurd@localhost/mydb'\'' --drush-script='\''/home/me/drush/drush'\'' --dump='\''/home/me/temp/dumpinground/'\'' --#hidden --d
--verbose st --backend' [0.11 sec, 3.61 MB]
Undefined offset: 1 backend.inc:164 [3.65 sec, 3.63 MB] [notice]
Undefined variable: output backend.inc:171 [3.65 sec, 3.63 MB] [notice]
The command could not be executed successfully (returned: Execute a drush command. Run `drush help [command]` to view command-specific [error]
help. Run `drush topic` to read even more documentation.
Global options (see `drush topic core-global-options` for the full list):
[...SNIP...]
Backend invoke is complete [3.65 sec, 3.63 MB] [notice]
The settings in my local alias file seem to be right as when i use the same setting remotely they do not give any problem.
When searching a solutions for this, i stumbled upon #1036658: Use full path to drush when setting %drush-script (n.b. "~" is not evaluated), but this problem seems to be slightly different as in that case drush couldn't be found at all.
Any suggestions on where to look for an answer?
Comments
Comment #1
greg.1.anderson commentedTake this line from your logs:
Try to run it from the shell, and see what it does. Try it without --#hidden and without --backend. n.b. --#hidden is no longer included in drush-HEAD. Removing --backend will just make the output easier to read.
I notice it says --d instead of -d above; that might be a bug.
You could also go and ssh in to the remote machine and try to execute:
Note that -d implies -v
Comment #2
batigolixby running the following command from my local computer works i get the status overview of the remote site. so that works
--d and -d do not make a difference
when i use the alias i get the drush help again
Comment #3
jhr commentednovice triaged - feel free to reopen