Testing things with the shell provisioner, I have a 'bootstrap.sh' that is 0755 on my local system. Running kitchen converge copies over SFTP by default, and results in this error:
% KITCHEN_SYNC_MODE=SFTP kitchen converge whoa
-----> Starting Kitchen (v1.3.1)
-----> Converging <whoa-centos-70>...
Preparing files for transfer
Preparing script
Transferring files to <whoa-centos-70>
[sync] Time taken to upload /var/folders/4r/4fpyt_2d1qvfrgb2fnngrqm40000gn/T/whoa-centos-70-sandbox-20150315-39593-r9ek9s/bootstrap.sh to #<Net::SSH::Connection::Session:0x007ffb420d0648>:/tmp/kitchen: 0.12 sec
sudo: /tmp/kitchen/bootstrap.sh: command not found
>>>>>> Converge failed on instance <whoa-centos-70>.
>>>>>> Please see .kitchen/logs/whoa-centos-70.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sh -c '
sudo -E /tmp/kitchen/bootstrap.sh
']
>>>>>> ----------------------
Testing things with the shell provisioner, I have a 'bootstrap.sh' that is 0755 on my local system. Running
kitchen converge
copies over SFTP by default, and results in this error:Workaround
The
Rsync
mode works correctly.