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

SFTP mode and file modes #6

Description

@jordansissel

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions