-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commands fail on Windows remote (cygwin) from Linux host (Follow up) #2379
Comments
Yes, ssh command is a bit special. I tried a quick fix for this at #2381. Not sure if it will work. You will have to change Drush code on your source machine. Please let me know if this fixes it. If patching that code is too complex in your environment, just change your value of 'root to 'C:/Websites/Somesite' (note number and direction of slashes) and retry. |
Wow, that is quick. I checked out '2379-sitealias-windows' on my system and it works right away for commands like
|
3/4. These fails are interesting. Could you please post logs with --debug. |
I just pushed a commit which attempts to clean up more path handling in sql-sync (particularly its backup handling in sql-dump). Please retry 4. with the latest commit. |
(I just saw your extra comment, I'll try it, and let you know) |
I tried the new commit, a pity it still throws the same rsync error. Such a strange composed cygwin path.. |
Just pushed one more commit for the sql-sync issue but its not likely to help on its own. If you can replace the drush on the remote with the new branch, thats awesome. I think it should fix the problem. If thats not feasible, you can workaround the problem by setting --target-dump option on the sql-sync call. The value should be a an existing temp dir like C:/tmp or somesuch. |
I merged that branch into master |
I appreciate the speed of resolving this issue(s). But can we re-open this, not all points are solved. Or do you want separate issues for that?
In this server home is 'C:/Websites/' and the --root is 'C:/Websites/subdir/secret'. |
3 Sorry, no idea. 4 Alas you will need new code on remote to make this work. You could run the composer install on another machine and use sftp/rsync/git to replace the drush code. |
I did some debugging for 3). The problems is the So, Drush executes this command for a I researched (a bit) about how to do set the environment variable for one command the proper way in cmd on Windows. But, it is not so straightforward. So I propose to just remove that part for Windows. It workes fine enough without.
|
Thanks for debugging that. I think that Make sure you keep |
Jup that fixes 3). So that Unfortunately I won't be able to test 4) anytime soon. So I would say go ahead and close this. Thanks a lot! |
This is a follow up of #1788, which was repurposed to remove WinRS support.
So lets pick up with Drush 8.1.5 without WinRS:
The host is running Linux and the Target is running Windows with Cygwin.
In my aliases file I have the following (simplified):
Previously (Drush 8.1.2) I had the
drush @windows ssh
command working.Now even this doesn't work anymore (when
root
is specified), because theroot
path is wrongly formatted in the ssh command part:cd \''C:Websites\Somesite'\''
.Full error:
Previously (what worked) the path was formatted like this
cd ""C:\\\\Websites\\\\Somesite""
.Other commands which now use SSH instead of WinRS are able to connect, but also have problems with the
root
.The directory `C:\Websites\SomeSite` does not contain a valid Drupal installation
In debug mode I see that the path after
--root=
is similarly wrongly formatted as in thedrush ssh
command.Am I correct to assume that only the
drush @windows ssh
command switches to bash at the remote side, but all other command just stay in the windows shell and call the Windows version of Drush?The text was updated successfully, but these errors were encountered: