Windows: 7
Vagrant: 2.2.5
VirtualBox: 6.0.10
Guest OS: centos/6
Host rsync (cygwin): version 3.1.1  protocol version 31
Guest rsync: version 3.0

I experience very strange behavior where vagrant fails to rsync when doing 
vagrant up or reload. This is most interesting part - it says there was an 
error but there was none. 

==> default: Rsyncing folder: 
> /cygdrive/c/Users/XXXXX/work/Projects/LXC/vagrant_test/ => /vagrant
> There was an error when attempting to rsync a synced folder.
> Please inspect the error message below for more info.
>
> Host path: /cygdrive/c/Users/XXXXX/work/Projects/LXC/vagrant_test/
> Guest path: /vagrant
> Command: "rsync" "--verbose" "--archive" "--delete" "-z" "--copy-links" 
> "--chmod=ugo=rwX" "--no-perms" "--no-owner" "--no-group" "--rsync-path" 
> "sudo rsync" "-e" "ssh -p 2222 -o LogLevel=FATAL -o IdentitiesOnly=yes -o 
> StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i 
> 'C:/Users/XXXXX/work/Projects/LXC/vagrant_test/.vagrant/machines/default/virtualbox/private_key'"
>  
> "--exclude" ".vagrant/" 
> "/cygdrive/c/Users/XXXXX/work/Projects/LXC/vagrant_test/" 
> "[email protected]:/vagrant"
> Error:


And no wonder - when I launch the rsync command it actually works well:

"rsync" "--verbose" "--archive" "--delete" "-z" "--copy-links" 
> "--chmod=ugo=rwX" "--no-perms" "--no-owner" "--no-group" "--rsync-path" 
> "sudo rsync" "-e" "ssh -p 2222 -o LogLevel=FATAL    -o IdentitiesOnly=yes 
> -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i 
> 'C:/Users/XXXXX/work/Projects/LXC/vagrant_test/.vagrant/machines/default/virtualbox/private_key'"
>  
> "--exclude" ".vagrant/" 
> "/cygdrive/c/Users/XXXXX/work/Projects/LXC/vagrant_test/" 
> "[email protected]:/vagrant"
> sending incremental file list
> ./
> readme.md
> vagrantfile
> hidden.vagrant/
> hidden.vagrant/machines/
> hidden.vagrant/machines/default/
> hidden.vagrant/machines/default/virtualbox/
> hidden.vagrant/machines/default/virtualbox/action_provision
> hidden.vagrant/machines/default/virtualbox/action_set_name
> hidden.vagrant/machines/default/virtualbox/box_meta
> hidden.vagrant/machines/default/virtualbox/creator_uid
> hidden.vagrant/machines/default/virtualbox/id
> hidden.vagrant/machines/default/virtualbox/index_uuid
> hidden.vagrant/machines/default/virtualbox/private_key
> hidden.vagrant/machines/default/virtualbox/synced_folders
> hidden.vagrant/machines/default/virtualbox/vagrant_cwd
> hidden.vagrant/rgloader/
> hidden.vagrant/rgloader/loader.rb
> vm/
> vm/provision.sh
> sent 4,622 bytes  received 337 bytes  9,918.00 bytes/sec
> total size is 6,263  speedup is 1.26


It does not matter if it is done in cygwin or CMD. The behavior is very 
same. I tried everything - destroying and removing .vagrant.d from home 
directory. I also tried installing newer version of rsync on guest OS.

Can anyone help or should I just submit a bug?

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/606b7842-af27-499d-b919-e7ce529eb23d%40googlegroups.com.

Reply via email to