vagrant-aws icon indicating copy to clipboard operation
vagrant-aws copied to clipboard

Rsync Issue

Open pete-hodgman opened this issue 10 years ago • 2 comments

I am not sure what is causing this. Its not clear if it is something I have configured incorrectly in Vagrant or something else. I intermittently get an rsync error when using Vagrant to rsync files to an AWS EC2 host. Please see the error below. It does not happen always but it does happen from time to time.

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

Host path: /Users/pete/dev/inv/ba/XOSPassport/scripts/ Guest path: /bimassure/XOSPassport/scripts Command: rsync --verbose --archive --delete -z --copy-links --no-owner --no-group --rsync-path sudo rsync -e ssh -p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i '/Users/pete/dev/devops/vagrant/awstest/vagkey.pem' --exclude .vagrant/ /Users/pete/dev/inv/ba/XOSPassport/scripts/ [email protected]:/bimassure/XOSPassport/scripts Error: Connection closed by 54.227.251.229 rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-45/rsync/io.c(453) [sender=2.6.9]

pete-hodgman avatar Apr 01 '15 12:04 pete-hodgman

A full debug gist can be found here..

https://gist.github.com/pete-hodgman/742032ae015bb497dcfb

pete-hodgman avatar Apr 01 '15 14:04 pete-hodgman

Try adding:

config.ssh.pty = true

into your Vagrantfile.

Related: mitchellh/vagrant/issues/6780

kenorb avatar Dec 02 '16 00:12 kenorb