Skip to content
This repository was archived by the owner on May 18, 2021. It is now read-only.

When executing chef-runner second time: rsync permission errors #60

Open
aight8 opened this issue Jul 26, 2016 · 1 comment
Open

When executing chef-runner second time: rsync permission errors #60

aight8 opened this issue Jul 26, 2016 · 1 comment

Comments

@aight8
Copy link

aight8 commented Jul 26, 2016

It tries to rsync the cookbooks but there appear a big list of delete_file permission errors.
The strange thing is that it works the first time.

rsync: delete_file: unlink(local-mode-cache/cache/cookbooks/yum/templates/default/repo.erb) failed: Permission denied (13)
rsync: delete_file: unlink(local-mode-cache/cache/cookbooks/yum/templates/default/main.erb) failed: Permission denied (13)
@mlafeldt
Copy link
Owner

The problem is that Chef now stores the additional folders nodes and local-mode-cache in /tmp/chef-runner:

INFO: Uploading local files to machine. This may take a while...
DEBUG: Uploading files from .chef-runner/sandbox to /tmp/chef-runner on machine
DEBUG: exec: rsync --archive --delete --compress --rsh 'ssh' '-F' '.chef-runner/vagrant/machines/f6ee376/ssh_config' .chef-runner/sandbox/ default:/tmp/chef-runner
rsync: delete_file: unlink(nodes/vagrant-ubuntu-trusty-64.json) failed: Permission denied (13)
cannot delete non-empty directory: nodes
rsync: delete_file: unlink(local-mode-cache/cache/cookbooks/yum/templates/default/repo.erb) failed: Permission denied (13)
rsync: delete_file: unlink(local-mode-cache/cache/cookbooks/yum/templates/default/main.erb) failed: Permission denied (13)
cannot delete non-empty directory: local-mode-cache/cache/cookbooks/yum/templates/default

We either need to exclude them from rsync or, if possible, configure Chef to use a different folder.

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

2 participants