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

greg.1.anderson’s picture

Status: Active » Postponed (maintainer needs more info)

Take this line from your logs:

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

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:

/home/me/drush/drush  --root='\''/usr/local/www/machine/www/drupal6'\'' --uri='\''www.example.com'\''          
--db_url='\''mysql://uzername:pazzwurd@localhost/mydb'\'' --dump='\''/home/me/temp/dumpinground/'\''  -d  st 

Note that -d implies -v

batigolix’s picture

by running the following command from my local computer works i get the status overview of the remote site. so that works

ssh -p 35 'admin'@'example.com' '/home/me/drush/drush  --root='\''/usr/local/www/me/www/d6'\'' --uri='\''www.example.com'\'' --db_url='\''mysql://uzr:pwd@localhost/mydb'\'' --drush-script='\''/home/me/drush/drush'\'' --dump='\''/home/me/temp/dump/'\'' --d st'

--d and -d do not make a difference

when i use the alias i get the drush help again

jhr’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

novice triaged - feel free to reopen