[chef] Re: bootstraping a new client authorization error


Chronological Thread 
  • From: Jesse Campbell < >
  • To:
  • Subject: [chef] Re: bootstraping a new client authorization error
  • Date: Fri, 13 Jan 2012 08:32:08 -0500

You shouldn't need to create the client first, it should use the validator.pem key to create the client.
Are you connecting to hosted chef or open source chef?
Can you look on the client machine in /etc/chef and see what is in there?
-Jesse

On Fri, Jan 13, 2012 at 07:50, Kelly Goedert < "> > wrote:
Hi,

I'm trying to bootstrap a new chef client on a newly installed
machine. I'm using the following command:

    knife bootstrap -x kelly -P changeme -d ubuntu10.04-gems -N
kelly15 --sudo -r 'role[developer]' 10.1.1.15

The installation seem to go ok, but this message appears

[Fri, 13 Jan 2012 10:42:53 -0200] INFO: *** Chef 0.10.8 ***
10.1.1.15
10.1.1.15 [Fri, 13 Jan 2012 10:42:54 -0200] INFO: HTTP Request
Returned 401 Unauthorized: Failed to authenticate. Ensure that your
client key is valid.
10.1.1.15
10.1.1.15 [Fri, 13 Jan 2012 10:42:54 -0200] FATAL: Stacktrace dumped
to /var/chef/cache/chef-stacktrace.out
10.1.1.15
10.1.1.15 [Fri, 13 Jan 2012 10:42:54 -0200] FATAL:
Net::HTTPServerException: 401 "Unauthorized"

Do I have to create the client on chef server first?

Thanks

Kelly




Archive powered by MHonArc 2.6.16.

§