- From: Kelly Goedert <
>
- To:
- Subject: [chef] Re: Re: bootstraping a new client authorization error
- Date: Mon, 16 Jan 2012 07:56:32 -0200
Hi,
sorry for taking so long to answer, I was out of the office and didnt
have access to the machines. I installed my own chef server, the open
source version.
Inside the /etc/chef in the client machine I have
client.pem
client.rb
first-boot.json
validation.pem
In /var/chef/cache/chef-stacktrace.out I have this:
Generated at Mon Jan 16 07:49:22 -0200 2012
Net::HTTPServerException: 401 "Unauthorized"
/usr/lib/ruby/1.8/net/http.rb:2105:in `error!'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/rest.rb:245:in
`api_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/rest.rb:296:in
`retriable_rest_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/rest.rb:226:in
`api_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/rest.rb:114:in
`get_rest'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/node.rb:603:in `load'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/node.rb:587:in
`find_or_create'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:234:in
`build_node'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:151:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:239:in
`run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:in
`loop'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:in
`run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:in
`loop'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:in
`run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application.rb:67:in
`run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-client:26
Any other suggestions?
On Fri, Jan 13, 2012 at 11:32 AM, Jesse Campbell
<
>
wrote:
>
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.