-
Notifications
You must be signed in to change notification settings - Fork 213
knife bootstrap fails with an rsync error #489
Comments
The For now I'd recommend running with |
Oh, just noticed you're calling |
Following your suggestion, I added the line of text to my knife.rb. |
Hm. Could be the setting doesn't get applied when going via bootstrap. Have you tried the latest release of knife-solo? The default in the newest version is "no" anyway. |
I'm using version 0.6.0. I did notice that the default setting for ssh_control_master was no when I looked through it. |
I'm having the same problem too. And I'm using 0.6.0 version too.
Perhaps you can change the base path for it at knife-solo/lib/knife-solo/ssh_command.rb Line 221 in 5e9f652
dir = File.join(ENV['HOME'], '.chef', 'knife-solo-sockets') to something like /tmp/... Or at least make it configurable? Thank you! P.S. Quick & dirty fix like |
knife solo bootstrap user@hostname -i .chef/key.pem
runs successfully for me. Inside of knife.rb, I've specifiedknife[:solo] = true
to make knife ec2 bootstrap with knife solo. When I run the following commandknife bootstrap user@hostname -i .chef/key.pem
I get the following error:percent_expand: unknown key %C rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.0] ERROR: RuntimeError: Failed to launch command ["rsync", "-rL", "--rsh=ssh user@hostname -i .chef/key.pem -o ControlMaster=auto -o ControlPath=/var/lib/user/.chef/knife-solo-sockets/%C -o ControlPersist=3600", "--delete-after", "-zt", "--exclude=revision-deploys", "--exclude=.git", "--exclude=.hg", "--exclude=.svn", "--exclude=.bzr", "/var/lib/user/.chefdk/gem/ruby/2.1.0/gems/knife-solo-0.6.0/lib/knife-solo/resources/patch_cookbooks/", ":~/chef-solo/cookbooks-1"]
Both my host and client are using Ubuntu Server 14.04 LTS. Do you know what I am doing wrong?
The text was updated successfully, but these errors were encountered: