Vagrant on Windows rsync / putty error

90 views
Skip to first unread message

aero....@gmail.com

unread,
Mar 4, 2017, 7:47:09 AM3/4/17
to Vagrant
I hope someone is able to help me or point me in the right direction, I have vagrant, putty and rsync from mingw installed on Windows 7 Machine.

When I type in the command vagrant up in the command prompt, it sets up the VM correctly and starts it successfully, but when it gets to the point where it installs rsync and then tries to sync the folders it failes with the error message below.

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:/DevEnv/.vagrant/machines/default/virtualbox/private_key'" "--exclude" ".vagrant/" "/c/DevEnv/" "vag...@127.0.0.1:/vagrant"
Error: rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at /usr/src/rsync/rsync-3.0.8/io.c(760) [sender=3.0.8]

I get a popup from putty also which says -p is an unrecognised parameter.

For reference I have putty.exe renamed to ssh.exe and placed in the "C:\HashiCorp\Vagrant\bin" directory.

The above error only displays the first time vagrant up is run in the command prompt, when I type it in a second time it runs again but works as it runs my provisioner file on the VM.

Does anyone happen to know why this is ? Also is there anything I am able to do to resolve it so that it works first time each time.

Thanks in advance,

Alvaro Miranda Aguilera

unread,
Mar 4, 2017, 9:54:42 AM3/4/17
to vagra...@googlegroups.com

On Sat, Mar 4, 2017 at 1:47 PM, <aero....@gmail.com> wrote:
putty.exe renamed to ssh.exe

hello

putty.exe renamed to ssh.exe

that won't work as i don't think putty is a command line

try this

open bash as command line tool from that mingw

cd to the directory of vagrant
do vagrant ssh-config

try to ssh manually
try to rsync to the box

then try vagrant reload and will try to rsync


Alvaro


--
Alvaro

aero....@gmail.com

unread,
Mar 6, 2017, 6:45:15 AM3/6/17
to Vagrant
Thank you very much for you help, I installed openssh from MinGW and it's all working with no errors now.
Reply all
Reply to author
Forward
0 new messages