Closed (duplicate)
Project:
Drush
Version:
All-versions-4.0-rc1
Component:
Core Commands
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2010 at 17:01 UTC
Updated:
17 Dec 2010 at 17:45 UTC
I'm new to drush, and just got it working on my W2k8 server. We run a multisite environment, and I'm looking to be able to do things like run cron on all our sites easily.
Everything I've tried with drush works so far, except the following:
drush @sites cron
This returns a host of identical errors (one for each of our sites):
The command could not be executed successfully (returned: 'ssh' is [error]
not recognized as an internal or external command,
operable program or batch file.
, code: 1)
Why would drush be looking for ssh? Is this something I can turn off? Do I need to install additional packages on my server?
Comments
Comment #1
greg.1.anderson commentedDrush uses ssh to run commands remotely (e.g. if you have set remote_host in your alias). Try under cygwin to get ssh.
I don't know why drush would look for ssh if your sites are local. Please follow the instructions in http://drupal.org/node/add/project-issue/drush when posting issues.
Comment #2
lwithrow commentedApologies for not posting the issue properly. Here's a sample of the output where the error occurs (I get one of these for each site.mydomain.com)
I tried installing HEAD, but when I did that drush status reported:
So I rolled back to 4.0-rc1, and I was able to get this status:
All these sites are, of course, local. I don't know what might be causing it to think they're remote.
Comment #3
greg.1.anderson commented"lukew"@"E" implies that you've set 'remote_user' => 'lukew' and 'remote_host' => 'E' in your site alias.
Comment #4
lwithrow commentedlukew is the user account I'm logged into the server with. I don't know where "E" comes from, except that it happens to be the drive letter where Drupal lives.
I don't know how I would have set the remote_user and remote_host; is there an easy way to fix that?
Thanks for your time in helping me through this.
Comment #5
lwithrow commentedIs it possible this is related to how I've named my sites? I thought I was following the standard for multisites by having these in my sites directory:
all
default
site1.mydomain.com
site2.mydomain.com
etc.
Also, when I enter hostname at the command prompt, it returns the Windows machine name:
CMSIs that correct, or is drush expecting that to return "localhost"?
Comment #6
greg.1.anderson commentedThis does look like a Windows-specific bug, just as you suspected in #0. Perhaps some quoting problem is causing drush to become confused and misinterpret things such as the file path as part of the user and host.
Recommended workaround: don't use @sites, make a site list that names your sites explicitly.
Fixing this would require more in-depth debugging on a Windows box. Drush has no maintainer for Windows right now. :(
Comment #7
greg.1.anderson commentedCombining Windows path issues in #766080: Windows support for drush: escaping the path to drush in backend invoke and elsewhere.