[chef] 400 bad request


Chronological Thread 
  • From: Nikhil Shah < >
  • To: " " < >
  • Subject: [chef] 400 bad request
  • Date: Thu, 6 Aug 2015 23:36:25 -0400

Hey guys,

I've probably bootstrapped around 50 nodes by now and for some reason I've been starting to get a 400 Bad Request error on all of the nodes i try to bootstrap. I've also tried to run chef-client on the nodes, but still getting the same error:


qavapi01.qaorch.com Recipe: cron::chef
qavapi01.qaorch.com   * cookbook_file[/root/chef.sh] action create (up to date)
qavapi01.qaorch.com   * cron_d[chef_script] action create (up to date)
qavapi01.qaorch.com Recipe: <Dynamically Defined Resource>
qavapi01.qaorch.com   * template[/etc/cron.d/chef_script] action create (up to date)
qavapi01.qaorch.com [2015-08-06T23:30:37-04:00] ERROR: Running exception handlers
qavapi01.qaorch.com [2015-08-06T23:30:37-04:00] ERROR: Exception handlers complete
qavapi01.qaorch.com [2015-08-06T23:30:37-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
qavapi01.qaorch.com Chef Client failed. 27 resources updated
qavapi01.qaorch.com [2015-08-06T23:30:37-04:00] ERROR: 400 "Bad Request"
qavapi01.qaorch.com [2015-08-06T23:30:37-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

What would be the reason for this?

Here is the stack output from the node:

Generated at 2015-08-06 23:34:11 -0400
Net::HTTPServerException: 400 "Bad Request"
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:2633:in `error!'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/http.rb:140:in `request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/http.rb:113:in `put'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/node.rb:497:in `save'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:262:in `save_updated_node'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:502:in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:199:in `block in run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:193:in `fork'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:193:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application.rb:208:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application/client.rb:312:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application/client.rb:304:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application/client.rb:304:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application.rb:66:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/bin/chef-client:26:in `<top (required)>'
/usr/bin/chef-client:23:in `load'
/usr/bin/chef-client:23:in `<main>'

--
Nikhil Shah  System Administrator

THE ORCHARD Distribution Done Right
23 E 4th St Fl 3, New York, NY 10003

Follow us: The Daily Rind  Facebook  Twitter  YouTube  LinkedIn

Privileged And Confidential Communication. This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and (c) are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.



Archive powered by MHonArc 2.6.16.

§