[chef] Re: Net::HTTPServerException: 413 "Request Entity Too Large"


Chronological Thread 
  • From: Elvin Abordo < >
  • To:
  • Subject: [chef] Re: Net::HTTPServerException: 413 "Request Entity Too Large"
  • Date: Mon, 18 Mar 2013 11:51:12 -0400

Shooting from the hip here. Try disabling the Ohai passwd plugin via role, or whatever your choice is, see if that alleviates it. Something like this

    "ohai": {
      "disabled_plugins": ["passwd"]
    }




On Mon, Mar 18, 2013 at 11:47 AM, Jeff Blaine < " target="_blank"> > wrote:
Hi,

This appears to be related to a host (1 of a few) bound to
corporate AD where the 'user' resource is returning ~23MB
of data ... when I try to set the local root account's
password.

What are my options here? Any thoughts would be welcome.

The obvious workaround is to edit /etc/shadow directly
and not use the 'user' resource :|

[2013-03-18T11:35:34-04:00] INFO: *** Chef 11.4.0 ***
...
[2013-03-18T11:36:00-04:00] INFO: Processing user[root] action modify (rcf-rootuser::default line 10)
[2013-03-18T11:36:09-04:00] ERROR: Running exception handlers
[2013-03-18T11:36:16-04:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2013-03-18T11:36:16-04:00] ERROR: Exception handlers complete
[2013-03-18T11:36:16-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-03-18T11:36:16-04:00] FATAL: Net::HTTPServerException: 413 "Request Entity Too Large"
~]# more /var/chef/cache/chef-stacktrace.out
Generated at 2013-03-18 11:36:16 -0400
Net::HTTPServerException: 413 "Request Entity Too Large"
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:2632:in `error!'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:199:in `block in raw_http_request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:280:in `retriable_rest_request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:164:in `raw_http_request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:158:in `api_request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:125:in `put'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/node.rb:489:in `save'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/client.rb:236:in `save_updated_node'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/client.rb:471:in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/client.rb:200:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application.rb:190:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application/client.rb:297:in `block in run_ap
plication'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application/client.rb:290:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application/client.rb:290:in `run_application
'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application.rb:73:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/bin/chef-client:26:in `<top (required)>'
/usr/bin/chef-client:23:in `load'
/usr/bin/chef-client:23:in `<main>'
~]#



--
Elvin Abordo
Mobile: (845) 475-8744



Archive powered by MHonArc 2.6.16.

§