-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
rsync functionality on Windows fails; requires cygwin and/or cygwin pathing? #7046
Comments
I ran into identical symptoms today, also Win 10 and Vagrant 1.8.1.
I was running from Cygwin bash, but got the same result from a Windows shell. Curiously, the failure appeared when I added
to the Vagrantfile and disappeared when I changed it back to
. |
I have made some debugging on this and it seems the problem is in additional options Vagrant passes to ssh: It was introduced in 1.8.0, so downgrading to 1.7.4 should resolve the issue. |
I tried manually removing I renamed
|
I concur with @hron. Removing the Control* parameters from C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.8.4\plugins\synced_folders\rsync\helper.rb (effectively reverting 45a8a59) fixed the issue for me. Also found a similar bug reported against the knife-solo project that root-causes this to broken ControlMaster support in Cygwin. See matschaffer/knife-solo#450 and http://www.cygwin.com/ml/cygwin/2015-01/msg00123.html |
Turns out there's already a PR for this: #7012 Sorry for the chatter. |
Windows 10 Build 14393 resorted to using cygwin since problem persisted regardless of downgrading vagrant 1.7.4 or trying the other suggested fixes. With cygwin all I had to do was, from cygwin terminal, edit /etc/nsswitch.conf |
@mohanramanujam strange solution but it worked. Can you explain the problem under the hood? |
On Vagrant 1.8.1, Windows 10.
I've attempted to get rsync shared folders working using both MinGW and cwRsync, with the same result on both:
The root of the problem SEEMS to be some pathing issues: in the error, the
/c/Users/Josh/Projects/vagrant-boilerplate/
and/home/Josh/.ssh
are both pretty alarming, given that this particular instance ofvagrant reload
was run within Powershell, so obviously neither of those directories exists in a Windows filesystem context.rsync
andssh
are both properly referenced in the PATH before any other entries.If I had to guess, I'd say this commit is either the culprit or a direct contributor. It also appears to be a rather presumptuous commit, as it assumes every Windows user will be using cygwin for rsync functionality.
There seem to be a lot of issues regarding rsync functionality on Windows right now, so I'll link them for posterity's sake, as I'm not sure if they're directly related or not: #3230 #6702 #4586
The text was updated successfully, but these errors were encountered: