Closed cbou closed 4 years ago
The plugin should be saved somewhere else, e.g. in /tmp
.
I ran into this as well. Based on the path, it is possible this only affects users running in chef local mode (like chef-solo
). I was able to work around it by specifying a file_cache_path
in /tmp in my solo.rb config file.
Also this looks like a dupe of #659
A simple workaround is to add a default umask to your client.rb if you need things altered by chef to be accessible by non-root users or you can set the file mode and ownership on individual items that require users other than root to have access. Typically chef runs as root, so if you are running as non-root you need to do some additional workarounds.
I was facing a similar issue, deleting the /var/chef
directory and re-running chef-client fixed the issue
Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.
Closing due to inactivity. If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.
Cookbook version
5.0.6
Chef-client version
13.2.20
Platform Details
Debian 9.3
Scenario:
When attempting to install plugins through jenkins_plugin I get an java.io.FileNotFoundException: /root/chef-repo/.chef/local-mode-cache/cache/display-url-api-1.0.plugin (Permission denied) error. Plugin file permissions are set like this by remote_file: -rw-r--r-- 1 jenkins jenkins 19K Jan 23 15:17 /root/chef-repo/.chef/local-mode-cache/cache/display-url-api-1.0.plugin
Make each folders (
/root/chef-repo/.chef/local-mode-cache/cache
) executable solves the problem.Steps to Reproduce:
Expected Result:
Plugin installed.
Actual Result: