This repository has been archived by the owner on Mar 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 213
rsync command doesn't work in windows with cygwin due to broken ControlMaster support #450
Comments
Ouch. Well this is probably enough reason to remove it. I've been thinking we may be better off staging everything to a local dir then rsyncing in one shot. It should get most of the same speed gain without this sort of oddity. In the mean time a PR to skip the control socket stuff for cygwin would certainly be appreciated. |
Thanks to @xunnanxu for the report. As a new knife on windows user, this had been driving me crazy. the |
xunnanxu
added a commit
to xunnanxu/knife-solo
that referenced
this issue
Sep 11, 2015
… to broken ControlMaster support
xunnanxu
added a commit
to xunnanxu/knife-solo
that referenced
this issue
Sep 11, 2015
… to broken ControlMaster support
matschaffer
added a commit
that referenced
this issue
Sep 15, 2015
…ter-cygwin #450 rsync command doesn't work in windows with cygwin due to broken ControlMaster support
I believe I already fixed this long time ago (or this is already superseded in newer version per @matschaffer 's long term plan) so closing this. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The rsync part in knife solo works in linux but fails in windows with cygwin. Typical error messages are:
After some research it seems that ssh ControlMaster is still broken in cygwin: http://www.cygwin.com/ml/cygwin/2015-01/msg00123.html
So I manually went to solo_cook.rb and took out the ssh_command part from cmd in the rsync block: so it becomes:cmd = ['rsync', '-rL', rsync_debug, rsync_permissions]
UPDATE: After following the source code carefully this time, I found that it could be turned off by
--ssh-control-master=no
when runningknife solo cook
. But this probably should be turned off by default for windows hosts for now.The text was updated successfully, but these errors were encountered: