FATAL: Errno::EACCES: Permission denied - c:/chef/cache/cookbooks/mycookbook


#1

When I ran mycookbook::default on a Windows 2008 R2 node, it ended with the following error:
FATAL: Errno::EACCES: Permission denied - c:/chef/cache/cookbooks/mycookbook
The default recipe only contains puts ‘test’.
I’m able to run other cookbooks on this node without issues. What’s causing this error and how to fix it?
chef-client -v: Chef: 11.16.2. Chef server v 11.


#2

Turned out a file named \ in the cookbook caused the error. After deleting it, the recipe ran without errors.