kindredgroup / kitchen-transport-rsync

Test Kitchen transport Rsync
Apache License 2.0
12 stars 7 forks source link

Problems with syncing: bash: command not found #1

Closed iiro closed 8 years ago

iiro commented 8 years ago

Hi,

I'm getting this when trying to use the Gem:

       [RSYNC] Time taken to upload /var/folders/hv/xqb2mh7n13d_gzbrvpfcjr300000gp/T/company-example-frontend-company-ubuntu-1404-sandbox-20150913-7536-1dccc8b/roles to ubuntu@ec2-52-18-5-87.eu-west-1.compute.amazonaws.com<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>22, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/Users/username/.ssh/private_key"], :auth_methods=>["publickey"], :user=>"ubuntu"}>:/tmp/kitchen/roles: 0.92 sec
D      [RSYNC] Running rsync command: rsync -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o LogLevel=VERBOSE -i /Users/username/.ssh/private_key -p 22 ubuntu@ec2-52-18-5-87.eu-west-1.compute.amazonaws.com' -avz /var/folders/hv/xqb2mh7n13d_gzbrvpfcjr300000gp/T/company-example-frontend-company-ubuntu-1404-sandbox-20150913-7536-1dccc8b/solo.rb ubuntu@ec2-52-18-5-87.eu-west-1.compute.amazonaws.com:/tmp/kitchen
Warning: Permanently added 'ec2-52-18-5-87.eu-west-1.compute.amazonaws.com,52.18.5.87' (RSA) to the list of known hosts.
Authenticated to ec2-52-18-5-87.eu-west-1.compute.amazonaws.com ([52.18.5.87]:22).
bash: ec2-52-18-5-87.eu-west-1.compute.amazonaws.com: command not found
Transferred: sent 2960, received 2884 bytes, in 0.2 seconds
Bytes per second: sent 17927.3, received 17467.0
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at /SourceCache/rsync/rsync-45/rsync/io.c(453) [sender=2.6.9]

so it looks it's adding an extra hostname inside the -e switch... login_command.command giving too much information here?

I can repeat this by running the command manually - and if I remove the extra hostname after the -p switch - things work normally.

I'm running this from OSX 10.10.5 and ChefDK 0.7.0.

i11 commented 8 years ago

0.1.1 released