[chef] Re: chef solo - Chef::Exceptions::PrivateKeyMissing: I cannotread /etc/chef/client.pem, which you told me to use to sign requests!


Chronological Thread 
  • From: Jeremiah Snapp < >
  • To:
  • Subject: [chef] Re: chef solo - Chef::Exceptions::PrivateKeyMissing: I cannotread /etc/chef/client.pem, which you told me to use to sign requests!
  • Date: Thu, 11 Oct 2012 12:14:23 -0400

I don't know why chef-solo would be looking for the client.pem.  That should only be needed if you were running chef-client to connect to a chef server.  Can we see your solo.rb contents?



On Thu, Oct 11, 2012 at 10:36 AM, David Montgomery < " target="_blank"> > wrote:
Hi,

I am running chef solo based on this wiki.  I am new to chef solo.

http://wiki.opscode.com/display/chef/Chef+Solo


I get this error....  What did I miss fro the wiki?

sudo chef-solo -c ~/workspace/htChef/chef-repo/solo/solo.rb -j
~/workspace/htChef/chef-repo/solo/node.json
[2012-10-11T22:03:21+08:00] INFO: *** Chef 10.14.4 ***
[2012-10-11T22:03:21+08:00] INFO: Setting the run_list to
["recipe[ht_server]"] from JSON
[2012-10-11T22:03:21+08:00] INFO: Run List is [recipe[ht_server]]
[2012-10-11T22:03:21+08:00] INFO: Run List expands to [ht_server]
[2012-10-11T22:03:21+08:00] INFO: Starting Chef Run for ubuntu
[2012-10-11T22:03:21+08:00] INFO: Running start handlers
[2012-10-11T22:03:21+08:00] INFO: Start handlers complete.
[2012-10-11T22:03:21+08:00] WARN: Failed to read the private key
/etc/chef/client.pem: #<Errno::ENOENT: No such file or directory -
/etc/chef/client.pem>
[2012-10-11T22:03:21+08:00] ERROR: Running exception handlers
[2012-10-11T22:03:21+08:00] ERROR: Exception handlers complete
[2012-10-11T22:03:21+08:00] FATAL: Stacktrace dumped to
/var/chef-solo/chef-stacktrace.out
[2012-10-11T22:03:21+08:00] FATAL:
Chef::Exceptions::PrivateKeyMissing: I cannot read
/etc/chef/client.pem, which you told me to use to sign requests!

Thanks




Archive powered by MHonArc 2.6.16.

§