[chef] Re: knife bootstrap works and then fails with 401


Chronological Thread 
  • From: Zippy Zeppoli < >
  • To:
  • Subject: [chef] Re: knife bootstrap works and then fails with 401
  • Date: Wed, 8 Aug 2012 16:47:08 -0700

I figure someone is going to ask this to troubleshoot:

Client:
# ls /etc/chef/
client.pem  client.rb  first-boot.json  validation.pem

Server:
# ls /etc/chef
client.pem  expander.rb  server.rb  solr.rb  validation.pem  webui.pem  webui.rb


On Wed, Aug 8, 2012 at 4:30 PM, Z < " target="_blank"> > wrote:
Hi List,
I already checked the chef common errors faq, and I winded up here, so here
goes.

I ran :
# knife bootstrap 10.161.95.253 -x root

Everything worked:
Fetching: treetop-1.4.10.gem (100%).10.gem
10.161.95.253 Successfully installed treetop-1.4.10
....
There were some errors fetching some gems, but thats not the core issue:
 ERROR:  Error installing yajl-ruby:

And then:
 Successfully installed chef-0.10.6
 1 gem installed
 [2012-08-08T19:40:24-04:00] INFO: *** Chef 0.10.6 ***
 [2012-08-08T19:40:26-04:00] INFO: HTTP Request Returned 401 Unauthorized:
Failed to authenticate. Ensure that your client key is valid.
 [2012-08-08T19:40:26-04:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2012-08-08T19:40:26-04:00] FATAL: Net::HTTPServerException: 401 "Unauthorized"

kaboom.

Why?

Thanks!




Archive powered by MHonArc 2.6.16.

§