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


Chronological Thread 
  • From: Akzhan Abdulin < >
  • To:
  • Subject: [chef] Re: HTTP Request Returned 401 Unauthorized: Failed to authenticate?
  • Date: Wed, 8 Jun 2011 19:53:01 +0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=dpLpECPqtR0VAMqli3E5OAwtKOZoW12HADVJ8OD0MxTyuKNhwKW0GBE7t5sQ3S5RhA uqG8Wo+vug7lFQUh5/ysLk4xf9P5xlvcV8/OB5CRKB16L147DLu1ULIjRXy4ZF7Bzq8c z+QrE+crc3eg9g7pt4iMgB39TwoeIkg5aoWqU=

Typical issue is out of time sync between chef server and node.

So always check that ntp daemon installed and ran.

2011/6/8 Rafal Bluszcz Zawadzki < "> >
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.

§