Vagrant Rsync fails on windows due to file permission issue

212 views
Skip to first unread message

Paul Gibler

unread,
May 27, 2014, 1:46:28 PM5/27/14
to vagra...@googlegroups.com
So frustrating...

This is the output of a vagrant up/reload command

$ vagrant reload
==> default: Attempting graceful shutdown of VM...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 3000 => 3000 (adapter 1)
    default: 1234 => 1234 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   4.2.0
VBoxService inside the vm claims: 4.3.12
Going on, assuming VBoxService is correct...
GuestAdditions seems to be installed (4.3.12) correctly, but not running.
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   4.2.0
VBoxService inside the vm claims: 4.3.12
Going on, assuming VBoxService is correct...
stdin: is not a tty
Starting the VirtualBox Guest Additions ...done.
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   4.2.0
VBoxService inside the vm claims: 4.3.12
Going on, assuming VBoxService is correct...
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   4.2.0
VBoxService inside the vm claims: 4.3.12
Going on, assuming VBoxService is correct...
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version o
f
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you
 see
    default: shared folder errors, please make sure the guest additions within t
he
    default: virtual machine match the version of VirtualBox you have installed
on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.2.0
    default: VirtualBox Version: 4.3
==> default: Setting hostname...
==> default: Rsyncing folder: /cygdrive/c/Users/Paul/git/FuzBuny/ => /vagrant
==> default:   - Exclude: [".vagrant/", ".git/"]
Enter passphrase for key 'C:/Users/Paul/.vagrant.d/insecure_private_key':
vgrnt
Enter passphrase for key 'C:/Users/Paul/.vagrant.d/insecure_private_key':
vag...@127.0.0.1's password: a

vagva...@127.0.0.1's password:
vag...@127.0.0.1's password:
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/Paul/git/FuzBuny/
Guest path: /vagrant
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 StrictHos
tKeyChecking=no -o UserKnownHostsFile=/dev/null -i 'C:/Users/Paul/.vagrant.d/ins
ecure_private_key' --exclude .vagrant/ --exclude .git/ /cygdrive/c/Users/Paul/gi
t/FuzBuny/ vag...@127.0.0.1:/vagrant
Error: Warning: Permanently added '127.0.0.1' (RSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0444 for 'C:/Users/Paul/.vagrant.d/insecure_private_key' are too ope
n.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: C:/Users/Paul/.vagrant.d/insecure_private_key
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0444 for 'C:/Users/Paul/.vagrant.d/insecure_private_key' are too ope
n.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: C:/Users/Paul/.vagrant.d/insecure_private_key
Permission denied, please try again.
Permission denied, please try again.
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [Receive
r=3.0.9]
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at /usr/src/rsync/rsy
nc-3.0.8/io.c(760) [sender=3.0.8]

This is the output of a vagrant rsync command

Paul@Paul-PC /cygdrive/c/Users/Paul/git/AlmsGive
$ vagrant rsync
==> default: Rsyncing folder: /cygdrive/c/Users/Paul/git/AlmsGive/ => /vagrant
==> default:   - Exclude: [".vagrant/", ".git/"]
Enter passphrase for key 'C:/Users/Paul/.vagrant.d/insecure_private_key':
vag...@127.0.0.1's password:
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/Paul/git/AlmsGive/
Guest path: /vagrant
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 StrictHos
tKeyChecking=no -o UserKnownHostsFile=/dev/null -i 'C:/Users/Paul/.vagrant.d/ins
ecure_private_key' --exclude .vagrant/ --exclude .git/ /cygdrive/c/Users/Paul/gi
t/AlmsGive/ vag...@127.0.0.1:/vagrant
Error: Warning: Permanently added '127.0.0.1' (RSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0444 for 'C:/Users/Paul/.vagrant.d/insecure_private_key' are too ope
n.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: C:/Users/Paul/.vagrant.d/insecure_private_key
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [Receive
r=3.0.9]
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at /usr/src/rsync/rsy
nc-3.0.8/io.c(760) [sender=3.0.8]

Anyone have any idea of what I can do on my end to fix this? Seems like I'm the only person who has this issue from my endless googling I did yesterday attempting to get synchronized folders to not have shit performance in Windows. Help would be much appreciated... banging my head on a desk here at this point.


Reply all
Reply to author
Forward
0 new messages