[chef] Re: Client bootstrap failed


Chronological Thread 
  • From: niristotle okram < >
  • To:
  • Subject: [chef] Re: Client bootstrap failed
  • Date: Sat, 11 Apr 2015 16:45:49 -0700

Appears to have been recorded in 


On Fri, Apr 10, 2015 at 6:18 PM, niristotle okram < " target="_blank"> > wrote:
Any idea why this knife bootstrap is failing?? Below is the debug log. I just upgraded the chef-server to 12.  

 

 

 

> INFO: Using configuration from /home/user/.chef/knife.rb

> DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request

> DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request

> DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request

> DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request

> DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request

> DEBUG: Signing the request as jenkins

> DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request

> DEBUG: Chef::HTTP calling

> Chef::HTTP::ValidateContentLength#handle_request

> DEBUG: Initiating GET to

https://XXX.com/organizations/my_chef_org/nodes/

> DEBUG: ---- HTTP Request Header Data: ----

> DEBUG: Accept: application/json

> DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3

> DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;

> DEBUG: X-OPS-USERID: jenkins

> DEBUG: X-OPS-TIMESTAMP: 2015-04-11T00:16:57Z

> DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=

> DEBUG: X-OPS-AUTHORIZATION-1:

> kJgcCnRswWvpfW/6YxLU/QUZXGUHFt4WcjRL2JGJQWKLIL5YdsqDIkRphkKC

> DEBUG: X-OPS-AUTHORIZATION-2:

> vuEPQWVYEJi35b3/osgcVXOiVfyO+XQLLyyDdljizYEwU6uHZCA5PT1K5Jmw

> DEBUG: X-OPS-AUTHORIZATION-3:

> rkSMAcGU/9qWGccuFcSDF8Zq3CmmIKZU6zB06SFNSThTtE0lz0l+RZnC+pFb

> DEBUG: X-OPS-AUTHORIZATION-4:

> LHTsgNZ5RZbBFAc4sR03qA0Oh5BNRiKI6kUi+vRXxZkExXoB52e57F+uKnBE

> DEBUG: X-OPS-AUTHORIZATION-5:

> zSlJsUa3PJwcGK16ULzcwQVoWAMCbcQq+2KTvMjVc8+5XvJ3z866UpZM0AMp

> DEBUG: X-OPS-AUTHORIZATION-6:

> uKrDGoYQZs91yYifqikcp8q1noihxKWrP4+QXj0i+g==

> DEBUG: HOST: XXX.com:443

> DEBUG: X-REMOTE-REQUEST-ID: e3dbc5d1-7fd8-4dce-bf25-17e42e410984

> DEBUG: ---- End HTTP Request Header Data ----

> DEBUG: ---- HTTP Status and Header Data: ----

> DEBUG: HTTP 1.1 200 OK

> DEBUG: server: ngx_openresty/1.4.3.6

> DEBUG: date: Sat, 11 Apr 2015 00:16:57 GMT

> DEBUG: content-type: application/json

> DEBUG: content-length: 2

> DEBUG: connection: close

> DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=1.5.0

> DEBUG: ---- End HTTP Status/Header Data ----

> DEBUG: Chef::HTTP calling

> Chef::HTTP::ValidateContentLength#handle_response

> DEBUG: Content-Length validated correctly.

> DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response

> DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response

> DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response

> DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response

> DEBUG: Chef::HTTP calling

> Chef::HTTP::JSONToModelOutput#handle_response

> DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response

> Node  exists, overwrite it? (Y/N) Y

> DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request

> DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request

> DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request

> DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request

> DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request

> DEBUG: Signing the request as jenkins

> DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request

> DEBUG: Chef::HTTP calling

> Chef::HTTP::ValidateContentLength#handle_request

> DEBUG: Initiating DELETE to

https://XXX.com/organizations/my_chef_org/nodes/

> DEBUG: ---- HTTP Request Header Data: ----

> DEBUG: Accept: application/json

> DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3

> DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;

> DEBUG: X-OPS-USERID: jenkins

> DEBUG: X-OPS-TIMESTAMP: 2015-04-11T00:17:27Z

> DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=

> DEBUG: X-OPS-AUTHORIZATION-1:

> o+5IUnQBuFzTjdUpRJvSxkDWXM57r5pji4zxtYOOrHa0HLb8kTLM/QJoMqay

> DEBUG: X-OPS-AUTHORIZATION-2:

> JaY1+Tri6jZNvTfOKruc7PHjJG/pjvONgjkH3kWMlP8ajLBjKsOvd7CI9LVl

> DEBUG: X-OPS-AUTHORIZATION-3:

> giMlYsRFkvU8+rc5Aw1WXx6tWB3KhBPe4NoKkoApDcpqpHlCQsXotaCQ1SGA

> DEBUG: X-OPS-AUTHORIZATION-4:

> EcCJOeUgHIIJORnL2vOwJGpTgGHLhPDKx5B53tHiFn3OvDzwVQn3IcxefVPS

> DEBUG: X-OPS-AUTHORIZATION-5:

> AtyR2Cuml+gBqcd5Mxz4arEJOj/xniw0tPyGis7xdT0YXRcKrcBAkHubGF9a

> DEBUG: X-OPS-AUTHORIZATION-6:

> GjXHACFEGeS0D7VPvc1eNQr/eH1J3+dJVsNeu/CfRA==

> DEBUG: HOST: XXX.com:443

> DEBUG: X-REMOTE-REQUEST-ID: e3dbc5d1-7fd8-4dce-bf25-17e42e410984

> DEBUG: ---- End HTTP Request Header Data ----

> DEBUG: ---- HTTP Status and Header Data: ----

> DEBUG: HTTP 1.1 405 Method Not Allowed

> DEBUG: server: ngx_openresty/1.4.3.6

> DEBUG: date: Sat, 11 Apr 2015 00:17:28 GMT

> DEBUG: content-type: text/html

> DEBUG: content-length: 177

> DEBUG: connection: close

> DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=1.5.0

> DEBUG: allow: GET, POST

> DEBUG: ---- End HTTP Status/Header Data ----

> DEBUG: ---- HTTP Response Body ----

> DEBUG: <html><head><title>405 Method Not

> Allowed</title></head><body><h1>Method Not Allowed</h1>Method Not

> Allowed<p><hr><address>mochiweb+webmachine web

> server</address></body></html>

> DEBUG: ---- End HTTP Response Body -----

> DEBUG: Chef::HTTP calling

> Chef::HTTP::ValidateContentLength#handle_response

> DEBUG: Content-Length validated correctly.

> DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response

> DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response

> DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response

> DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response

> DEBUG: Chef::HTTP calling

> Chef::HTTP::JSONToModelOutput#handle_response

> DEBUG: Expected JSON response, but got content-type 'text/html'

> DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response

> INFO: HTTP Request Returned 405 Method Not Allowed:

> /home/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/net/http/response.rb:119:in `error!': 405 "Method Not Allowed" (Net::HTTPServerException)

>    from  /gems/chef-12.2.1/lib/chef/http.rb:144:in" target="_blank">/home/user/.rvm/gems/ /gems/chef-12.2.1/lib/chef/http.rb:144:in `request'

>    from  /gems/chef-12.2.1/lib/chef/http.rb:133:in" target="_blank">/home/user/.rvm/gems/ /gems/chef-12.2.1/lib/chef/http.rb:133:in `delete'

>    from  /gems/chef-12.2.1/lib/chef/knife/bootstrap/client_builder.rb:157:in" target="_blank">/home/user/.rvm/gems/ /gems/chef-12.2.1/lib/chef/knife/bootstrap/client_builder.rb:157:in `sanity_check'

>    from  /gems/chef-12.2.1/lib/chef/knife/bootstrap/client_builder.rb:49:in" target="_blank">/home/user/.rvm/gems/ /gems/chef-12.2.1/lib/chef/knife/bootstrap/client_builder.rb:49:in `run'

>    from  /gems/chef-12.2.1/lib/chef/knife/bootstrap.rb:319:in" target="_blank">/home/user/.rvm/gems/ /gems/chef-12.2.1/lib/chef/knife/bootstrap.rb:319:in `run'

>    from  /gems/knife-solo-0.4.2/lib/chef/knife/bootstrap_solo.rb:25:in" target="_blank">/home/user/.rvm/gems/ /gems/knife-solo-0.4.2/lib/chef/knife/bootstrap_solo.rb:25:in `run'

>    from  /gems/chef-12.2.1/lib/chef/knife.rb:419:in" target="_blank">/home/user/.rvm/gems/ /gems/chef-12.2.1/lib/chef/knife.rb:419:in `block in run_with_pretty_exceptions'

>    from  /gems/chef-12.2.1/lib/chef/local_mode.rb:38:in" target="_blank">/home/user/.rvm/gems/ /gems/chef-12.2.1/lib/chef/local_mode.rb:38:in `with_server_connectivity'

>    from  /gems/chef-12.2.1/lib/chef/knife.rb:418:in" target="_blank">/home/user/.rvm/gems/ /gems/chef-12.2.1/lib/chef/knife.rb:418:in `run_with_pretty_exceptions'

>    from  /gems/chef-12.2.1/lib/chef/knife.rb:214:in" target="_blank">/home/user/.rvm/gems/ /gems/chef-12.2.1/lib/chef/knife.rb:214:in `run'

>    from  /gems/chef-12.2.1/lib/chef/application/knife.rb:138:in" target="_blank">/home/user/.rvm/gems/ /gems/chef-12.2.1/lib/chef/application/knife.rb:138:in `run'

>    from  /gems/chef-12.2.1/bin/knife:25:in" target="_blank">/home/user/.rvm/gems/ /gems/chef-12.2.1/bin/knife:25:in `<top (required)>'

>    from  /bin/knife:23:in" target="_blank">/home/user/.rvm/gems/ /bin/knife:23:in `load'

>    from  /bin/knife:23:in" target="_blank">/home/user/.rvm/gems/ /bin/knife:23:in `<main>'

>    from  /bin/ruby_executable_hooks:15:in" target="_blank">/home/user/.rvm/gems/ /bin/ruby_executable_hooks:15:in `eval'

>    from  /bin/ruby_executable_hooks:15:in" target="_blank">/home/user/.rvm/gems/ /bin/ruby_executable_hooks:15:in `<main>'

 




--
Regards
nirish okram



Archive powered by MHonArc 2.6.16.

§