Skip to content

Instantly share code, notes, and snippets.

@bnferguson
Created June 23, 2010 15:14
Show Gist options
  • Save bnferguson/450063 to your computer and use it in GitHub Desktop.
Save bnferguson/450063 to your computer and use it in GitHub Desktop.
~/chef-repo(master) $ knife bootstrap 192.168.0.132
Bootstrapping Chef on 192.168.0.132
Failed to authenticate root - trying password auth
Enter your password:
192.168.0.132 [Wed, 23 Jun 2010 04:08:48 -0400] INFO: Client key /etc/chef/client.pem is not present - registering
192.168.0.132 [Wed, 23 Jun 2010 04:08:49 -0400] WARN: HTTP Request Returned 401 Unauthorized: Failed the authorization check
192.168.0.132 /usr/lib/ruby/1.8/net/http.rb:2101:in `error!': 401 "Unauthorized" (Net::HTTPServerException)
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/rest.rb:216:in `api_request'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/rest.rb:267:in `retriable_rest_request'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/rest.rb:197:in `api_request'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/rest.rb:111:in `post_rest'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/api_client.rb:235:in `save'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/rest.rb:70:in `register'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/rest.rb:68:in `upto'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/rest.rb:68:in `register'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/rest.rb:66:in `catch'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/rest.rb:66:in `register'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/client.rb:204:in `register'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/client.rb:73:in `run'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/application/client.rb:215:in `run_application'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/application/client.rb:207:in `loop'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/application/client.rb:207:in `run_application'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/../lib/chef/application.rb:62:in `run'
192.168.0.132 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.0/bin/chef-client:26
192.168.0.132 from /usr/bin/chef-client:19:in `load'
192.168.0.132 from /usr/bin/chef-client:19
@bnferguson
Copy link
Author

Turns out I needed to sync the server's time. ntpdate time.nist.gov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment