Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

SFTP mode and file modes #6

Open
jordansissel opened this issue Mar 15, 2015 · 0 comments
Open

SFTP mode and file modes #6

jordansissel opened this issue Mar 15, 2015 · 0 comments

Comments

@jordansissel
Copy link

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
']
>>>>>> ----------------------

Workaround

The Rsync mode works correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant