io.c上的rsync无法解释的错误(代码255)(820)

时间:2015-12-26 10:04:10

标签: cygwin vagrant rsync

出乎意料的是,在vagrant up之后,rsync开始抛出以下错误:

There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.

Host path: /c/Users/David/Sandbox/citypantry/frontend/
Guest path: /home/citypantry/project/frontend
Command: rsync --verbose --archive -z --copy-links --chmod=ugo=rwX --no-perms --no-owner --no-group --rsync-path sudo rsync -e ssh -p 2222 -o ControlMaster=auto -o ControlPath=C:/bin/cygwin64/tmp/ssh.588 -o ControlPersist=10m -o StrictHostKeyChecking=no -o IdentitiesOnly=true -o UserKnownHostsFile=/dev/null -i 'C:/Users/David/Sandbox/citypantry/vagrant/.vagrant/machines/default/virtualbox/private_key' --exclude .vagrant/ --exclude app/cache/ --exclude app/logs/ --exclude node_modules /c/Users/David/Sandbox/citypantry/frontend/ vagrant@127.0.0.1:/home/citypantry/project/frontend
Error: Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.
select: Interrupted system call
rsync: [sender] write error: Broken pipe (32)
rsync error: unexplained error (code 255) at io.c(820) [sender=3.1.1]

这是Windows 10在ConEmu(x64)上运行带有rsync 3.1.1的cygwin(x64)。我所知道的任何内容都没有在系统中发生变化,并且同步已经工作了数周没有任何问题。

此错误意味着什么,我该如何解决?

1 个答案:

答案 0 :(得分:0)

看起来Vagrant 1.8.0存在问题:https://github.com/mitchellh/vagrant/issues/6702

更新它应该可以解决问题。如果您不能,则解决方法是编辑$VAGRANT_HOME\embedded\gems\gems\vagrant-1.8.0\plugins\synced_folders\rsync\helper.rb并删除第77~79行:

"-o ControlMaster=auto " +
"-o ControlPath=#{controlpath} " +
"-o ControlPersist=10m " +
相关问题