Vagrant windows上的Rsync-dup()in/out/err失败
我正在使用Vagrant来管理虚拟机,以便进行开发。我的操作系统是Windows 10,我使用的是Vagrant 1.9.1。因为文件夹同步的默认驱动程序很慢,所以我想实现Rsync 为此,我使用Cygwin并安装了Rsyn和OpenSSL 当我在Cygwin控制台中运行vagrant时,我得到了以下错误:Vagrant windows上的Rsync-dup()in/out/err失败,vagrant,cygwin,rsync,vagrantfile,vagrant-windows,Vagrant,Cygwin,Rsync,Vagrantfile,Vagrant Windows,我正在使用Vagrant来管理虚拟机,以便进行开发。我的操作系统是Windows 10,我使用的是Vagrant 1.9.1。因为文件夹同步的默认驱动程序很慢,所以我想实现Rsync 为此,我使用Cygwin并安装了Rsyn和OpenSSL 当我在Cygwin控制台中运行vagrant时,我得到了以下错误: There was an error when attempting to rsync a synced folder. Please inspect the error message b
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/User/my-project/my-project/
Guest path: /var/www
Command: "rsync" "--verbose" "--archive" "-z" "--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/User/my-project/my-project/.vagrant/machines/gbb-my-project-sys-web-dev-1/virtualbox/private_key'" "--exclude" ".vagrant/" "--exclude" ".git/" "/cygdrive/c/Users/User/my-project/my-project/" "vagrant@127.0.0.1:/var/www"
Error: dup() in/out/err failed
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.1]
我过去常去流浪
export VAGRANT_DETECTED_OS=cygwin
VAGRANT_HOME=/cygdrive/c/Users/User
export VAGRANT_HOME
vagrant up
流浪者形态:
synced_folder:
vflsf_udtdv3aeexfs:
owner: www-data
group: www-data
source: ./
target: /var/www
sync_type: rsync
smb:
smb_host: ''
smb_username: ''
smb_password: ''
mount_options:
dir_mode: '0775'
file_mode: '0664'
rsync:
args:
- '--verbose'
- '--archive'
- '-z'
exclude:
- .vagrant/
- .git/
auto: 'true'
您是否通过cygwin安装了
ssh
?如果您有来自其他来源的ssh
(如git for windows),则可能是来自cygwin的rsync
。您使用的是哪个框?您如何在windows计算机上运行ssh(是来自cygwin还是像git bash一样单独安装)@FrédéricHenri它是VirtualBox上的CentOs 6。此外,我还将ssh bin添加到windows环境PATH变量中,以在gurst机器上运行ssh connectionI更新的rsync,并从PATH环境中删除ssh