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

Cygwin io.c(820)处的rsync无法解释的错误(代码255),cygwin,vagrant,rsync,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

出乎意料的是,
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]
这是在ConEmu(x64)上运行cygwin(x64)和rsync 3.1.1的Windows 10。据我所知,系统中没有任何变化,同步工作了数周,没有任何问题


这个错误是什么意思?我如何修复它?看起来像是Vagrant 1.8.0的问题:

更新它应该可以解决这个问题。如果不能,则解决方法是编辑
$VAGRANT\u HOME\embedded\gems\gems\VAGRANT-1.8.0\plugins\synced\u folders\rsync\helper.rb
并删除第77~79行:

"-o ControlMaster=auto " +
"-o ControlPath=#{controlpath} " +
"-o ControlPersist=10m " +
断管错误通常发生在连接超时时。rsync在计算远程上的文件差异时,如果没有及时响应客户端,则可能会发生这种情况

为了避免这种情况,请尝试在SSH配置中增加服务器活动间隔值(
~/.SSH/config
):

也考虑在远程(在代码> /ETS/SSH/SSHDYCONFIG)中执行类似的操作,例如

见:


或者,将以下保持活动状态行添加到您的
vagrant文件中

config.vm.ssh.keep_alive = true


如果你认为这是一个控制主问题,最近的流浪版本。

我认为这是一个更大的问题。
ClientAliveInterval 30
ClientAliveCountMax 6
config.vm.ssh.keep_alive = true