Open aight8 opened 8 years ago
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.
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.