While running chef-client using knife, there is an error message that the recipe cannot be found. The command I use is
knife ssh myserver 'sudo chef-client' --manual-list -ssh-user myuser
Synchronize and compile of cookbooks is successful but then it fails with message
myserver [2015-01-08T13:54:06+01:00] ERROR: could not find recipe file /home/myuser/myuser
So it seems that the chef client is looking for the recipe in location /home/myuser/myuser but that is not where the recipes are stored.
I think that chef should look for these in /var/chef/cache. I'm not sure. Why is Chef unable to find my cookbooks? Why is Chef looking in the wrong location?
sudo chef-client -l debug).The runlist of the node can help too (knife node show myserver). I can't see how this message could be after compilation ... I suspect it fails in the compilation phase, so a debug is near necessary to understand why - Tensibai