I have a handful of servers who have not checked into the (in-house open-source) chef server in some time. When running chef-client as root, I get the message
WARN: Can not find config file: /etc/chef/client.rb, using defaults.
Running with the "-c /path/to/config" option yields the same result.
But as you can see, the files are in-place with both read and execute permissions:
root@client:~# ls -lah /etc/chef
total 24K
drwxr-xr-x 2 root root 4.0K 2011-08-19 09:24 .
drwxr-xr-x 91 root root 4.0K 2012-03-12 14:55 ..
-rw-rw-r-- 1 root root 148 2010-09-15 13:14 client.json
-rw------- 1 root root 1.7K 2010-09-20 13:14 client.pem
-rwxr-xr-- 1 root root 765 2011-08-19 09:24 client.rb
-rw-rw-r-- 1 root root 145 2010-08-25 16:18 solo.rb
Y U NO SEE FILES, chef-client?!
chef-client -c /etc/chef/client.rb? As a side note, my perms on that file are 644, but that shouldn't be an issue with that error. – cjc Mar 12 '12 at 19:28strace -o chef-y-u-no-work.txt chef-client? – cjc Mar 12 '12 at 19:59