[chef] HTTP Request Returned 401 Unauthorized: Failed to authenticate?


Chronological Thread 
  • From: Rafal Bluszcz Zawadzki < >
  • To:
  • Subject: [chef] HTTP Request Returned 401 Unauthorized: Failed to authenticate?
  • Date: Wed, 8 Jun 2011 17:38:28 +0200

Hi, I have following problem installing new node (I am installing it
in same way like rest of nodes), and I am pretty lost at this moment.

Where I should start debugging? (I replace my FQDN with example.com in
following example)

:~/work/headnet/chef-repo-headnet$
 knife bootstrap
khaki.example.com --sudo -x rafal
Bootstrapping Chef on khaki.example.com
khaki.example.com knife sudo password:
Enter your password:
khaki.example.com
khaki.example.com GET http://rubygems.org/latest_specs.4.8.gz
khaki.example.com 302 Found
..........
khaki.example.com /usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/shef
khaki.example.com /usr/bin/chef-client
khaki.example.com /usr/bin/chef-solo
khaki.example.com /usr/bin/knife
khaki.example.com /usr/bin/shef
khaki.example.com Successfully installed chef-0.10.0
khaki.example.com 1 gem installed
khaki.example.com [Wed, 08 Jun 2011 17:32:36 +0200] INFO: *** Chef 0.10.0 ***
khaki.example.com [Wed, 08 Jun 2011 17:32:40 +0200] INFO: HTTP Request
Returned 401 Unauthorized: Failed to authenticate as
khaki.example.com. Ensure that your node_name and client key are
correct.
khaki.example.com [Wed, 08 Jun 2011 17:32:40 +0200] FATAL: Stacktrace
dumped to /var/chef/cache/chef-stacktrace.out
khaki.example.com [Wed, 08 Jun 2011 17:32:40 +0200] FATAL:
Net::HTTPServerException: 401 "Unauthorized"
:~/work/headnet/chef-repo-headnet$

-- 
RafaƂ Zawadzki
Senior Backend Developer



Archive powered by MHonArc 2.6.16.

§