-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Can't synchronize folders using rsync on windows #3913
Comments
The vagrant rsync command produces similar output:
|
Looks like the issue is with the permissions. I was under the impression that permissions on Windows with rsync weren't really a thing, so I'm not sure what to make of this. Is this only in Cygwin or other shells as well? |
This is the Msys output (installed openssh and rsync)
|
I was able to fix this within Cygwin by running chmod 400 on my insecure_private_key file.
For Vagrant, I doubt there's much that can be done to automatically handle this issue. Let me know if you would prefer me to close this, unless you have an idea of what else could be done on Vagrant's end. I don't think is likely, but you would know best. Thanks for taking the time to review my issue. As an aside, the performance of rsync has made this completely worth the effort. My project runs quite fast now. |
@pgibler hi pgibler, did you ever have a problem getting Rsync to work initially on Windows? When I do vagrant up, with your same settings in Vagrant file, it gives me error: "rsync" could not be found on your PATH. Make sure that rsync is properly installed on your system and available on the PATH ... even though I went into control panel and put in C:\cygwin64\bin as my PATH variable. |
Hey bucifer, Use the package manager for Cygwin to install both |
@pgibler thank you so much, the 32-bit worked for me better than 64-bit version for some reason (My Windows 7 is 64-bit version) ... I had to uninstall everything in the 64-bit and follow your instructions and then set environtment variables once again. It works now!! |
Glad I could help bucifer =) |
In addition I had to change cygdrive prefix from default /cygdrive to /. Otherwise rsync will fail with following error: rsync: change_dir "/d/Users/user.name/Projects/yourproject" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0] |
Closing for #4073 |
Hey there,
My settings - Windows 8.1, Vagrant 1.6.2, rsync attempt using Cygwin and then Msys
I've been banging my head against a wall all day trying to figure out how to get better filesystem performance with Vagrant in windows. I gave smb a shot - failed to load on my machine (story for another ticket). The NFS plugin for vagrant does not work with the current version. I decided to give rsync a shot since it sounded like a pretty nice solution to the issue. However, when I attempt to use it, it gives me a strange problem - first, as you'll see in my console output, when I get to the point where I'm prompted for my secret_key passphrase and vagrant password, my console goes a little bit haywire and I have to carefully, slowly type in my 'vagrant' password to fulfill the password portion. It then gives the subsequent error, even if I put in the right password or hit Ctrl+C to break it out (because it actually hangs up the terminal when this issue happens). I don't know how the permissions of that file are relevant to rsync, but vagrant ssh is no problemo.
This is my folder setting in my Vagrantfile
This is my console output when attempting to use these settings:
It's very unfortunate that I can't get this working. Help?
The text was updated successfully, but these errors were encountered: