# Chef-client doesn't work "automatically"

**URL:** <https://discourse.chef.io/t/chef-client-doesnt-work-automatically/1206>\
**Category:** Chef Infra (archive)\
**Created:** [June 17, 2009, 7:41am UTC](https://discourse.chef.io/t/chef-client-doesnt-work-automatically/1206 "2009-06-17T07:41:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Albert\_Llop](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/albert_llop/32/885_2.png) [@Albert\_Llop](https://discourse.chef.io/u/Albert_Llop)\
**Post date:** [June 17, 2009, 7:41am UTC](https://discourse.chef.io/t/chef-client-doesnt-work-automatically/1206/1 "2009-06-17T07:41:18Z")

</div>

I’ve been having some trouble with my chef-clients, I’ve my chef-server  
working properly, and my chef-clients can work just fine (with 0.7). I can  
login, and execute chef-client as root and it will work wonderfully.

But after that it just doesn’t work. In the log you see this every 30mins:

[Wed, 17 Jun 2009 09:15:09 +0200] INFO: Starting Chef Run  
[Wed, 17 Jun 2009 09:15:09 +0200] ERROR: Net::HTTPFatalError  
[Wed, 17 Jun 2009 09:15:09 +0200] FATAL: 502 “Bad Gateway”  
/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:2097:in  
`error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:232:in`run\_request’  
/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:230:in  
`run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:95:in`post\_rest’  
/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:223:in  
`authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:74:in`run’  
/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:163:in  
`run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in`loop’  
/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in  
`run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application.rb:53:in`run’  
/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/bin/chef-client:26  
/usr/bin/chef-client:19:in `load’  
/usr/bin/chef-client:19  
[Wed, 17 Jun 2009 09:15:09 +0200] FATAL: Sleeping for 1815 seconds before  
trying again

Then I log in and execute it manually, and this is the log:

[Wed, 17 Jun 2009 09:38:36 +0200] INFO: Starting Chef Run  
[Wed, 17 Jun 2009 09:38:42 +0200] INFO: Updating  
template[/home/kom/.ssh/authorized\_keys2] at /home/kom/.ssh/authorized\_keys2  
…  
[Wed, 17 Jun 2009 09:38:53 +0200] INFO: Backing up  
template[/etc/nginx/sites-available/comerc] to  
/etc/nginx/sites-available/comerc.chef-20090617093853  
[Wed, 17 Jun 2009 09:38:53 +0200] INFO: Chef Run complete in 17.132551  
seconds

Any ideas why might this be happening? I see the chef-client is running as  
root:

# ps aux | grep chef-client

root 26512 0.0 0.0 112 28 ? Ss Jun09 0:00 runsv  
chef-client  
root 408 0.0 6.5 36616 24112 ? S Jun12 0:14  
/opt/ruby-enterprise-1.8.6-20090610/bin/ruby /usr/bin/chef-client -i 1800 -s  
20 -L /var/log/chef/client.log

And nothing else I can think about.

Been thinking of using a cron job, but I don’t really see the point when the  
service is running properly everywhere.

Cheers!

–  
Albert Llop  
Tech Department  
[albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)

---

<div class="post-metadata">

**Author:** ![Arjuna\_Christensen](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Arjuna\_Christensen](https://discourse.chef.io/u/Arjuna_Christensen)\
**Post date:** [June 17, 2009, 9:55am UTC](https://discourse.chef.io/t/chef-client-doesnt-work-automatically/1206/2 "2009-06-17T09:55:11Z")

</div>

On 17/06/2009, at 7:41 PM, Albert Llop wrote:

> I've been having some trouble with my chef-clients, I've my chef-  
> server working properly, and my chef-clients can work just fine  
> (with 0.7). I can login, and execute chef-client as root and it will  
> work wonderfully.
> 
> But after that it just doesn't work. In the log you see this every  
> 30mins:
> 
> [Wed, 17 Jun 2009 09:15:09 +0200] INFO: Starting Chef Run  
> [Wed, 17 Jun 2009 09:15:09 +0200] ERROR: Net::HTTPFatalError  
> [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: 502 "Bad Gateway"  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:2097:in  
> `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> chef-0.7.0/lib/chef/rest.rb:230:in `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> chef-0.7.0/lib/chef/client.rb:223:in `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/client.rb:74:in `run'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> chef-0.7.0/lib/chef/application/client.rb:163:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> chef-0.7.0/lib/chef/application/client.rb:161:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application.rb:53:in `run'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> chef-0.7.0/bin/chef-client:26  
> /usr/bin/chef-client:19:in `load'  
> /usr/bin/chef-client:19  
> [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: Sleeping for 1815 seconds  
> before trying again

Could you possibly set your log\_level to debug on both the client and  
the server, and drop another email back with the increased log  
verbosity?

--  
AJ Christensen, Software Engineer  
Opscode, Inc.  
E: [aj@opscode.com](mailto:aj@opscode.com)

---

<div class="post-metadata">

**Author:** ![Albert\_Llop](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/albert_llop/32/885_2.png) [@Albert\_Llop](https://discourse.chef.io/u/Albert_Llop)\
**Post date:** [June 18, 2009, 7:53am UTC](https://discourse.chef.io/t/chef-client-doesnt-work-automatically/1206/3 "2009-06-18T07:53:44Z")

</div>

Hi again,  
I set the log level to debug on one of the nodes, and restarted the client.  
After the restart it all worked fine for 14hours (until midnight more or  
less), and then stopped working.

The client log looks very similar with the debug option:

[Thu, 18 Jun 2009 00:33:28 +0200] INFO: Starting Chef Run  
[Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Registering nouvel\_kingsofmambo\_net  
for an openid  
[Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via GET to  
/registrations/nouvel\_kingsofmambo\_net  
[Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Authenticating  
nouvel\_kingsofmambo\_net via openid  
[Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via POST to  
/openid/consumer/start  
[Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via GET to  
/openid/server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed\_id=https%3A%2F%  
[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%  
[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%  
[2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F%  
[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%  
[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete  
[Thu, 18 Jun 2009 00:33:29 +0200] ERROR: Net::HTTPFatalError  
[Thu, 18 Jun 2009 00:33:29 +0200] FATAL: 502 "Bad Gateway"  
/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:2097:in  
`error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:230:in  
`run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:223:in  
`authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:74:in `run'  
/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:163:in  
`run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in  
`run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application.rb:53:in `run'  
/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/bin/chef-client:26  
/usr/bin/chef-client:19:in `load'  
/usr/bin/chef-client:19  
[Thu, 18 Jun 2009 00:33:29 +0200] FATAL: Sleeping for 1817 seconds before  
trying again

On the server side:

~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
~ Params: {"format"=\>nil, "action"=\>"show",  
"id"=\>"nouvel\_kingsofmambo\_net",  
"controller"=\>"chef\_server\_slice/openid\_register"}  
~ {:before\_filters\_time=\>0.0, :action\_time=\>0.0, :dispatch\_time=\>0.004,  
:after\_filters\_time=\>0.0}  
~

~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
~ Params: {"action"=\>"node\_page", "id"=\>"nouvel\_kingsofmambo\_net",  
"controller"=\>"chef\_server\_slice/openid\_server"}  
~ {:before\_filters\_time=\>0.0, :action\_time=\>0.004, :dispatch\_time=\>0.004,  
:after\_filters\_time=\>0.0}  
~

~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
~ Params: {"submit"=\>"Verify", "action"=\>"start",  
"controller"=\>"chef\_server\_slice/openid\_consumer", "openid\_identifier"=\>"  
[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)"}  
~ WARNING: making https request to  
[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_netwithout](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_netwithout)  
verifying server certificate; no CA path was specified.  
~ Generated checkid\_setup request to  
[https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication  
{HMAC-SHA1}{4a2f838d}{he1kgg==}  
~ Generated checkid\_setup request to  
[https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication  
{HMAC-SHA1}{4a2f838d}{he1kgg==}  
~ Redirecting to:  
[https://chef.kingsofmambo.net/openid/server?openid.assoc\_handle={HMAC-SHA1}{4a2f838d}{he1kgg%3D%3D}&openid.claimed\_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete(302)](https://chef.kingsofmambo.net/openid/server?openid.assoc_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete(302))  
~ {:before\_filters\_time=\>0.0, :action\_time=\>0.024001,  
:dispatch\_time=\>0.024001, :after\_filters\_time=\>0.0}  
~

~ Started request handling: Thu Jun 18 00:33:29 +0200 2009  
~ Params: {"openid.claimed\_id"=\>"  
[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)",  
"openid.mode"=\>"checkid\_setup", "openid.return\_to"=\>"  
[https://chef.kingsofmambo.net/openid/consumer/complete](https://chef.kingsofmambo.net/openid/consumer/complete)", "openid.ns"=\>"  
[http://specs.openid.net/auth/2.0](http://specs.openid.net/auth/2.0)", "action"=\>"index",  
"controller"=\>"chef\_server\_slice/openid\_server", "openid.identity"=\>"  
[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)",  
"openid.assoc\_handle"=\>"{HMAC-SHA1}{4a2f838d}{he1kgg==}", "openid.realm"=\>"  
[https://chef.kingsofmambo.net/openid/consumer](https://chef.kingsofmambo.net/openid/consumer)"}  
~ {:before\_filters\_time=\>0.0, :action\_time=\>0.004, :dispatch\_time=\>0.004,  
:after\_filters\_time=\>0.0}  
~

Thanks beforehand!

--  
Albert Llop  
Tech Department  
[albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)

2009/6/17 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)

> On 17/06/2009, at 7:41 PM, Albert Llop wrote:
> 
> I've been having some trouble with my chef-clients, I've my chef-server  
> working properly, and my chef-clients can work just fine (with 0.7). I can  
> login, and execute chef-client as root and it will work wonderfully.
> 
> But after that it just doesn't work. In the log you see this every 30mins:
> 
> [Wed, 17 Jun 2009 09:15:09 +0200] INFO: Starting Chef Run  
> [Wed, 17 Jun 2009 09:15:09 +0200] ERROR: Net::HTTPFatalError  
> [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: 502 "Bad Gateway"  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:2097:in  
> `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:230:in  
> `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:223:in  
> `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:74:in `run'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:163:in  
> `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in  
> `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application.rb:53:in `run'
> 
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/bin/chef-client:26  
> /usr/bin/chef-client:19:in `load'  
> /usr/bin/chef-client:19  
> [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: Sleeping for 1815 seconds before  
> trying again
> 
> Could you possibly set your log\_level to debug on both the client and the  
> server, and drop another email back with the increased log verbosity?
> 
> --  
> AJ Christensen, Software Engineer  
> Opscode, Inc.  
> E: [aj@opscode.com](mailto:aj@opscode.com) [adam@opscode.com](mailto:adam@opscode.com)

---

<div class="post-metadata">

**Author:** ![Arjuna\_Christensen](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Arjuna\_Christensen](https://discourse.chef.io/u/Arjuna_Christensen)\
**Post date:** [June 18, 2009, 8:05am UTC](https://discourse.chef.io/t/chef-client-doesnt-work-automatically/1206/4 "2009-06-18T08:05:18Z")

</div>

Hey!

On 18/06/2009, at 7:53 PM, Albert Llop wrote:

> Hi again,  
> I set the log level to debug on one of the nodes, and restarted the  
> client. After the restart it all worked fine for 14hours (until  
> midnight more or less), and then stopped working.
> 
> The client log looks very similar with the debug option:
> 
> [Thu, 18 Jun 2009 00:33:28 +0200] INFO: Starting Chef Run  
> [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Registering  
> nouvel\_kingsofmambo\_net for an openid  
> [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via  
> GET to /registrations/nouvel\_kingsofmambo\_net  
> [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Authenticating  
> nouvel\_kingsofmambo\_net via openid  
> [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via  
> POST to /openid/consumer/start  
> [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via  
> GET to /openid/server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d  
> %7D%7Bhe1kgg%3D%3D%7D&openid.claimed\_id=https%3A%2F  
> %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fserver%2Fnode  
> %2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F  
> %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fserver%2Fnode  
> %2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http  
> %3A%2F%[2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F  
> %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer&openid.return\_to=https  
> %3A%2F%[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete  
> [Thu, 18 Jun 2009 00:33:29 +0200] ERROR: Net::HTTPFatalError  
> [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: 502 "Bad Gateway"  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:2097:in  
> `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> chef-0.7.0/lib/chef/rest.rb:230:in `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> chef-0.7.0/lib/chef/client.rb:223:in `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/client.rb:74:in `run'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> chef-0.7.0/lib/chef/application/client.rb:163:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> chef-0.7.0/lib/chef/application/client.rb:161:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application.rb:53:in `run'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> chef-0.7.0/bin/chef-client:26  
> /usr/bin/chef-client:19:in `load'  
> /usr/bin/chef-client:19  
> [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: Sleeping for 1817 seconds  
> before trying again

Doesn't seem to be anything indicative on the server side, so I'd  
suggest a network or temporal issue such as DNS. :\

> On the server side:
> 
> # ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009 ~ Params: {"format"=\>nil, "action"=\>"show", "id"=\>"nouvel\_kingsofmambo\_net", "controller"=\>"chef\_server\_slice/ openid\_register"} ~ {:before\_filters\_time
> 
> > 
> 
> 0.0  
> , :action\_time=\>0.0, :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> ~
> 
> # ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009 ~ Params: {"action"=\>"node\_page", "id"=\>"nouvel\_kingsofmambo\_net", "controller"=\>"chef\_server\_slice/openid\_server"} ~ {:before\_filters\_time
> 
> > 
> 
> 0.0  
> , :action\_time  
> =\>0.004, :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> ~
> 
> # ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009 ~ Params: {"submit"=\>"Verify", "action"=\>"start", "controller"=\>"chef\_server\_slice/openid\_consumer", "openid\_identifier"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net) "} ~ WARNING: making https request to [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net) without verifying server certificate; no CA path was specified. ~ Generated checkid\_setup request to [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication {HMAC-SHA1}{4a2f838d}{he1kgg==} ~ Generated checkid\_setup request to [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication {HMAC-SHA1}{4a2f838d}{he1kgg==} ~ Redirecting to: [https://chef.kingsofmambo.net/openid/server?openid.assoc\_handle={HMAC-SHA1}{4a2f838d}{he1kgg%3D%3D}&openid.claimed\_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete](https://chef.kingsofmambo.net/openid/server?openid.assoc_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete) (302) ~ {:before\_filters\_time
> 
> > 
> 
> 0.0  
> , :action\_time  
> =\>0.024001, :dispatch\_time=\>0.024001, :after\_filters\_time=\>0.0}  
> ~
> 
> # ~ Started request handling: Thu Jun 18 00:33:29 +0200 2009 ~ Params: {"openid.claimed\_id"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net) ", "openid.mode"=\>"checkid\_setup", "openid.return\_to"=\>"[https://chef.kingsofmambo.net/openid/consumer/complete](https://chef.kingsofmambo.net/openid/consumer/complete) ", "openid.ns"=\>"[http://specs.openid.net/auth/2.0](http://specs.openid.net/auth/2.0)", "action"=\>"index", "controller"=\>"chef\_server\_slice/openid\_server", "openid.identity"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net) ", "openid.assoc\_handle"=\>"{HMAC-SHA1}{4a2f838d}{he1kgg==}", "openid.realm"=\>"[https://chef.kingsofmambo.net/openid/consumer](https://chef.kingsofmambo.net/openid/consumer)"} ~ {:before\_filters\_time
> 
> > 
> 
> 0.0  
> , :action\_time  
> =\>0.004, :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> ~
> 
> Thanks beforehand!
> 
> --  
> Albert Llop  
> Tech Department  
> [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> 
> 2009/6/17 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)
> 
> On 17/06/2009, at 7:41 PM, Albert Llop wrote:
> 
> > I've been having some trouble with my chef-clients, I've my chef-  
> > server working properly, and my chef-clients can work just fine  
> > (with 0.7). I can login, and execute chef-client as root and it  
> > will work wonderfully.
> > 
> > But after that it just doesn't work. In the log you see this every  
> > 30mins:
> > 
> > [Wed, 17 Jun 2009 09:15:09 +0200] INFO: Starting Chef Run  
> > [Wed, 17 Jun 2009 09:15:09 +0200] ERROR: Net::HTTPFatalError  
> > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: 502 "Bad Gateway"  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:  
> > 2097:in `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > chef-0.7.0/lib/chef/rest.rb:230:in `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > chef-0.7.0/lib/chef/client.rb:223:in `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > chef-0.7.0/lib/chef/application/client.rb:163:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > chef-0.7.0/lib/chef/application/client.rb:161:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application.rb:53:in `run'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > chef-0.7.0/bin/chef-client:26  
> > /usr/bin/chef-client:19:in `load'  
> > /usr/bin/chef-client:19  
> > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: Sleeping for 1815 seconds  
> > before trying again
> 
> Could you possibly set your log\_level to debug on both the client  
> and the server, and drop another email back with the increased log  
> verbosity?
> 
> --  
> AJ Christensen, Software Engineer  
> Opscode, Inc.  
> E: [aj@opscode.com](mailto:aj@opscode.com)

--  
AJ Christensen, Software Engineer  
Opscode, Inc.  
E: [aj@opscode.com](mailto:aj@opscode.com)

---

<div class="post-metadata">

**Author:** ![Albert\_Llop](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/albert_llop/32/885_2.png) [@Albert\_Llop](https://discourse.chef.io/u/Albert_Llop)\
**Post date:** [June 19, 2009, 9:17am UTC](https://discourse.chef.io/t/chef-client-doesnt-work-automatically/1206/5 "2009-06-19T09:17:16Z")

</div>

After some sleep I decided that the "502 "Bad Gateway"" error looks too much  
like nginx, and I checked its erorr log (why didn't i do it before?

Whenever one of these nodes that try to contact the server and is in "zombie  
mode" like i like to call them (because chef-client is working... but not  
properly), nginx gives an error:

2009/06/19 11:11:38 [error] 27044#0: \*40 _upstream sent too big header while  
reading response header from upstream_, client: 67.23.26.105, server:  
[chef.kingsofmambo.net](http://chef.kingsofmambo.net), request: "GET  
/openid/server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed\_id=https%3A%2F%  
[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
%2Fopenid%2Fserver%2Fnode%2Fpotter\_kingsofmambo\_net&openid.identity=https%3A%2F%  
[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
%2Fopenid%2Fserver%2Fnode%2Fpotter\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%  
[2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F%  
[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%  
[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete HTTP/1.1", upstream:  
"unix:/tmp/passenger.27019/master/helper\_server.sock:", host: "  
[chef.kingsofmambo.net](http://chef.kingsofmambo.net)"

The only information I can find googling is about problems with fastcgi,  
that I don't think have anything to do with chef (and passenger in general).

Any suggestions?

## thanks again

Albert Llop  
Tech Department  
[albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)

2009/6/18 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)

> Hey!  
> On 18/06/2009, at 7:53 PM, Albert Llop wrote:
> 
> Hi again,  
> I set the log level to debug on one of the nodes, and restarted the client.  
> After the restart it all worked fine for 14hours (until midnight more or  
> less), and then stopped working.
> 
> The client log looks very similar with the debug option:
> 
> [Thu, 18 Jun 2009 00:33:28 +0200] INFO: Starting Chef Run  
> [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Registering  
> nouvel\_kingsofmambo\_net for an openid  
> [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via GET to  
> /registrations/nouvel\_kingsofmambo\_net  
> [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Authenticating  
> nouvel\_kingsofmambo\_net via openid  
> [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via POST to  
> /openid/consumer/start  
> [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via GET to  
> /openid/server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed\_id=https%3A%2F%  
> [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> %2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%  
> [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> %2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%  
> [2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F%  
> [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%  
> [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete  
> [Thu, 18 Jun 2009 00:33:29 +0200] ERROR: Net::HTTPFatalError  
> [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: 502 "Bad Gateway"  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:2097:in  
> `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:230:in  
> `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:223:in  
> `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:74:in `run'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:163:in  
> `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in  
> `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application.rb:53:in `run'
> 
> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/bin/chef-client:26  
> /usr/bin/chef-client:19:in `load'  
> /usr/bin/chef-client:19  
> [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: Sleeping for 1817 seconds before  
> trying again
> 
> Doesn't seem to be anything indicative on the server side, so I'd suggest a  
> network or temporal issue such as DNS. :\
> 
> On the server side:
> 
> ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> ~ Params: {"format"=\>nil, "action"=\>"show",  
> "id"=\>"nouvel\_kingsofmambo\_net",  
> "controller"=\>"chef\_server\_slice/openid\_register"}  
> ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.0, :dispatch\_time=\>0.004,  
> :after\_filters\_time=\>0.0}  
> ~
> 
> ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> ~ Params: {"action"=\>"node\_page", "id"=\>"nouvel\_kingsofmambo\_net",  
> "controller"=\>"chef\_server\_slice/openid\_server"}  
> ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.004, :dispatch\_time=\>0.004,  
> :after\_filters\_time=\>0.0}  
> ~
> 
> ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> ~ Params: {"submit"=\>"Verify", "action"=\>"start",  
> "controller"=\>"chef\_server\_slice/openid\_consumer", "openid\_identifier"=\>"  
> [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)"}  
> ~ WARNING: making https request to  
> [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_netwithout](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_netwithout) verifying server certificate; no CA path was specified.  
> ~ Generated checkid\_setup request to  
> [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication  
> {HMAC-SHA1}{4a2f838d}{he1kgg==}  
> ~ Generated checkid\_setup request to  
> [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication  
> {HMAC-SHA1}{4a2f838d}{he1kgg==}  
> ~ Redirecting to:  
> [https://chef.kingsofmambo.net/openid/server?openid.assoc\_handle={HMAC-SHA1}{4a2f838d}{he1kgg%3D%3D}&openid.claimed\_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete(302)](https://chef.kingsofmambo.net/openid/server?openid.assoc_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete(302))  
> ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.024001,  
> :dispatch\_time=\>0.024001, :after\_filters\_time=\>0.0}  
> ~
> 
> ~ Started request handling: Thu Jun 18 00:33:29 +0200 2009  
> ~ Params: {"openid.claimed\_id"=\>"  
> [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)",  
> "openid.mode"=\>"checkid\_setup", "openid.return\_to"=\>"  
> [https://chef.kingsofmambo.net/openid/consumer/complete](https://chef.kingsofmambo.net/openid/consumer/complete)", "openid.ns"=\>"  
> [http://specs.openid.net/auth/2.0](http://specs.openid.net/auth/2.0)", "action"=\>"index",  
> "controller"=\>"chef\_server\_slice/openid\_server", "openid.identity"=\>"  
> [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)",  
> "openid.assoc\_handle"=\>"{HMAC-SHA1}{4a2f838d}{he1kgg==}", "openid.realm"=\>"  
> [https://chef.kingsofmambo.net/openid/consumer](https://chef.kingsofmambo.net/openid/consumer)"}  
> ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.004, :dispatch\_time=\>0.004,  
> :after\_filters\_time=\>0.0}  
> ~
> 
> Thanks beforehand!
> 
> --  
> Albert Llop  
> Tech Department  
> [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> 
> 2009/6/17 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)
> 
> > On 17/06/2009, at 7:41 PM, Albert Llop wrote:
> > 
> > I've been having some trouble with my chef-clients, I've my chef-server  
> > working properly, and my chef-clients can work just fine (with 0.7). I can  
> > login, and execute chef-client as root and it will work wonderfully.
> > 
> > But after that it just doesn't work. In the log you see this every 30mins:
> > 
> > [Wed, 17 Jun 2009 09:15:09 +0200] INFO: Starting Chef Run  
> > [Wed, 17 Jun 2009 09:15:09 +0200] ERROR: Net::HTTPFatalError  
> > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: 502 "Bad Gateway"  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:2097:in  
> > `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:230:in  
> > `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:223:in  
> > `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:163:in  
> > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in  
> > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application.rb:53:in `run'
> > 
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/bin/chef-client:26  
> > /usr/bin/chef-client:19:in `load'  
> > /usr/bin/chef-client:19  
> > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: Sleeping for 1815 seconds before  
> > trying again
> > 
> > Could you possibly set your log\_level to debug on both the client and the  
> > server, and drop another email back with the increased log verbosity?
> > 
> > --  
> > AJ Christensen, Software Engineer  
> > Opscode, Inc.  
> > E: [aj@opscode.com](mailto:aj@opscode.com) [adam@opscode.com](mailto:adam@opscode.com)
> 
> --  
> AJ Christensen, Software Engineer  
> Opscode, Inc.  
> E: [aj@opscode.com](mailto:aj@opscode.com) [adam@opscode.com](mailto:adam@opscode.com)

---

<div class="post-metadata">

**Author:** ![Arjuna\_Christensen](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Arjuna\_Christensen](https://discourse.chef.io/u/Arjuna_Christensen)\
**Post date:** [June 19, 2009, 9:56am UTC](https://discourse.chef.io/t/chef-client-doesnt-work-automatically/1206/6 "2009-06-19T09:56:14Z")

</div>

On 19/06/2009, at 9:17 PM, Albert Llop wrote:

> After some sleep I decided that the "502 "Bad Gateway"" error looks  
> too much like nginx, and I checked its erorr log (why didn't i do it  
> before?
> 
> Whenever one of these nodes that try to contact the server and is in  
> "zombie mode" like i like to call them (because chef-client is  
> working... but not properly), nginx gives an error:
> 
> 2009/06/19 11:11:38 [error] 27044#0: \*40 upstream sent too big  
> header while reading response header from upstream, client:  
> 67.23.26.105, server: [chef.kingsofmambo.net](http://chef.kingsofmambo.net), request: "GET /openid/  
> server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D  
> %3D%7D&openid.claimed\_id=https%3A%2F%[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid  
> %2Fserver%2Fnode%2Fpotter\_kingsofmambo\_net&openid.identity=https%3A  
> %2F%[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fserver%2Fnode  
> %2Fpotter\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http  
> %3A%2F%[2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F  
> %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer&openid.return\_to=https  
> %3A%2F%[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete HTTP/  
> 1.1", upstream: "unix:/tmp/passenger.27019/master/  
> helper\_server.sock:", host: "[chef.kingsofmambo.net](http://chef.kingsofmambo.net)"

Very interesting. I wasn't aware you were running underneath another  
container (although this should definitely work correctly.)

We're currently experiencing some issues with chef clients receiving  
cookies bigger than 4kB from the Chef Server, which may be related to  
this. I wish Nginx would tell us what the header was that was too big.

I'm opening a ticket, and I'll scrub down the openid stuff while  
running under Nginx Passenger and see if I can get it to fold.

Thanks for the additional information!

> 2009/6/18 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)  
> Hey!
> 
> On 18/06/2009, at 7:53 PM, Albert Llop wrote:
> 
> > Hi again,  
> > I set the log level to debug on one of the nodes, and restarted the  
> > client. After the restart it all worked fine for 14hours (until  
> > midnight more or less), and then stopped working.
> > 
> > The client log looks very similar with the debug option:
> > 
> > [Thu, 18 Jun 2009 00:33:28 +0200] INFO: Starting Chef Run  
> > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Registering  
> > nouvel\_kingsofmambo\_net for an openid  
> > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via  
> > GET to /registrations/nouvel\_kingsofmambo\_net  
> > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Authenticating  
> > nouvel\_kingsofmambo\_net via openid  
> > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via  
> > POST to /openid/consumer/start  
> > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via  
> > GET to /openid/server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d  
> > %7D%7Bhe1kgg%3D%3D%7D&openid.claimed\_id=https%3A%2F  
> > %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fserver%2Fnode  
> > %2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F  
> > %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fserver%2Fnode  
> > %2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http  
> > %3A%2F%[2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F  
> > %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer&openid.return\_to=https  
> > %3A%2F%[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete  
> > [Thu, 18 Jun 2009 00:33:29 +0200] ERROR: Net::HTTPFatalError  
> > [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: 502 "Bad Gateway"  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:  
> > 2097:in `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > chef-0.7.0/lib/chef/rest.rb:230:in `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > chef-0.7.0/lib/chef/client.rb:223:in `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > chef-0.7.0/lib/chef/application/client.rb:163:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > chef-0.7.0/lib/chef/application/client.rb:161:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application.rb:53:in `run'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > chef-0.7.0/bin/chef-client:26  
> > /usr/bin/chef-client:19:in `load'  
> > /usr/bin/chef-client:19  
> > [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: Sleeping for 1817 seconds  
> > before trying again
> 
> Doesn't seem to be anything indicative on the server side, so I'd  
> suggest a network or temporal issue such as DNS. :\
> 
> > On the server side:
> > 
> > # ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009 ~ Params: {"format"=\>nil, "action"=\>"show", "id"=\>"nouvel\_kingsofmambo\_net", "controller"=\>"chef\_server\_slice/ openid\_register"} ~ {:before\_filters\_time
> > 
> > > 
> > 
> > 0.0  
> > , :action\_time=\>0.0, :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> > ~
> > 
> > # ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009 ~ Params: {"action"=\>"node\_page", "id"=\>"nouvel\_kingsofmambo\_net", "controller"=\>"chef\_server\_slice/openid\_server"} ~ {:before\_filters\_time
> > 
> > > 
> > 
> > 0.0  
> > , :action\_time  
> > =\>0.004, :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> > ~
> > 
> > # ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009 ~ Params: {"submit"=\>"Verify", "action"=\>"start", "controller"=\>"chef\_server\_slice/openid\_consumer", "openid\_identifier"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net) "} ~ WARNING: making https request to [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net) without verifying server certificate; no CA path was specified. ~ Generated checkid\_setup request to [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication {HMAC-SHA1}{4a2f838d}{he1kgg==} ~ Generated checkid\_setup request to [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication {HMAC-SHA1}{4a2f838d}{he1kgg==} ~ Redirecting to: [https://chef.kingsofmambo.net/openid/server?openid.assoc\_handle={HMAC-SHA1}{4a2f838d}{he1kgg%3D%3D}&openid.claimed\_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete](https://chef.kingsofmambo.net/openid/server?openid.assoc_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete) (302) ~ {:before\_filters\_time
> > 
> > > 
> > 
> > 0.0  
> > , :action\_time  
> > =\>0.024001, :dispatch\_time=\>0.024001, :after\_filters\_time=\>0.0}  
> > ~
> > 
> > # ~ Started request handling: Thu Jun 18 00:33:29 +0200 2009 ~ Params: {"openid.claimed\_id"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net) ", "openid.mode"=\>"checkid\_setup", "openid.return\_to"=\>"[https://chef.kingsofmambo.net/openid/consumer/complete](https://chef.kingsofmambo.net/openid/consumer/complete) ", "openid.ns"=\>"[http://specs.openid.net/auth/2.0](http://specs.openid.net/auth/2.0)", "action"=\>"index", "controller"=\>"chef\_server\_slice/openid\_server", "openid.identity"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net) ", "openid.assoc\_handle"=\>"{HMAC-SHA1}{4a2f838d}{he1kgg==}", "openid.realm"=\>"[https://chef.kingsofmambo.net/openid/consumer](https://chef.kingsofmambo.net/openid/consumer)"} ~ {:before\_filters\_time
> > 
> > > 
> > 
> > 0.0  
> > , :action\_time  
> > =\>0.004, :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> > ~
> > 
> > Thanks beforehand!
> > 
> > --  
> > Albert Llop  
> > Tech Department  
> > [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> > 
> > 2009/6/17 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)
> > 
> > On 17/06/2009, at 7:41 PM, Albert Llop wrote:
> > 
> > > I've been having some trouble with my chef-clients, I've my chef-  
> > > server working properly, and my chef-clients can work just fine  
> > > (with 0.7). I can login, and execute chef-client as root and it  
> > > will work wonderfully.
> > > 
> > > But after that it just doesn't work. In the log you see this every  
> > > 30mins:
> > > 
> > > [Wed, 17 Jun 2009 09:15:09 +0200] INFO: Starting Chef Run  
> > > [Wed, 17 Jun 2009 09:15:09 +0200] ERROR: Net::HTTPFatalError  
> > > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: 502 "Bad Gateway"  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:  
> > > 2097:in `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > chef-0.7.0/lib/chef/rest.rb:230:in `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > chef-0.7.0/lib/chef/client.rb:223:in `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > chef-0.7.0/lib/chef/application/client.rb:163:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > chef-0.7.0/lib/chef/application/client.rb:161:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application.rb:53:in `run'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > chef-0.7.0/bin/chef-client:26  
> > > /usr/bin/chef-client:19:in `load'  
> > > /usr/bin/chef-client:19  
> > > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: Sleeping for 1815 seconds  
> > > before trying again
> > 
> > Could you possibly set your log\_level to debug on both the client  
> > and the server, and drop another email back with the increased log  
> > verbosity?
> > 
> > --  
> > AJ Christensen, Software Engineer  
> > Opscode, Inc.  
> > E: [aj@opscode.com](mailto:aj@opscode.com)
> 
> --  
> AJ Christensen, Software Engineer  
> Opscode, Inc.  
> E: [aj@opscode.com](mailto:aj@opscode.com)

--  
AJ Christensen, Software Engineer  
Opscode, Inc.  
E: [aj@opscode.com](mailto:aj@opscode.com)

---

<div class="post-metadata">

**Author:** ![Albert\_Llop](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/albert_llop/32/885_2.png) [@Albert\_Llop](https://discourse.chef.io/u/Albert_Llop)\
**Post date:** [June 19, 2009, 10:05am UTC](https://discourse.chef.io/t/chef-client-doesnt-work-automatically/1206/7 "2009-06-19T10:05:14Z")

</div>

Thanks a lot, know that bit of info about the big cookies might be useful!

And yeah, it's been working under nginx for some time, obtained all the info  
I needed for that from this repo on github

> **[GitHub - fujin/cookbooks: Opscode Cookbooks for Chef](https://github.com/fujin/cookbooks/tree/nginx-chef-server)**
>
> nginx-chef-server

## 🙂

Albert Llop  
Tech Department  
[albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)

2009/6/19 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)

> On 19/06/2009, at 9:17 PM, Albert Llop wrote:
> 
> After some sleep I decided that the "502 "Bad Gateway"" error looks too  
> much like nginx, and I checked its erorr log (why didn't i do it before?
> 
> Whenever one of these nodes that try to contact the server and is in  
> "zombie mode" like i like to call them (because chef-client is working...  
> but not properly), nginx gives an error:
> 
> 2009/06/19 11:11:38 [error] 27044#0: \*40 _upstream sent too big header  
> while reading response header from upstream_, client: 67.23.26.105,  
> server: [chef.kingsofmambo.net](http://chef.kingsofmambo.net), request: "GET  
> /openid/server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed\_id=https%3A%2F%  
> [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> %2Fopenid%2Fserver%2Fnode%2Fpotter\_kingsofmambo\_net&openid.identity=https%3A%2F%  
> [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> %2Fopenid%2Fserver%2Fnode%2Fpotter\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%  
> [2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F%  
> [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%  
> [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete HTTP/1.1",  
> upstream: "unix:/tmp/passenger.27019/master/helper\_server.sock:", host: "  
> [chef.kingsofmambo.net](http://chef.kingsofmambo.net)"
> 
> Very interesting. I wasn't aware you were running underneath another  
> container (although this should definitely work correctly.)
> 
> We're currently experiencing some issues with chef clients receiving  
> cookies bigger than 4kB from the Chef Server, which may be related to this.  
> I wish Nginx would tell us what the header was that was too big.
> 
> I'm opening a ticket, and I'll scrub down the openid stuff while running  
> under Nginx Passenger and see if I can get it to fold.
> 
> Thanks for the additional information!
> 
> 2009/6/18 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)
> 
> > Hey!  
> > On 18/06/2009, at 7:53 PM, Albert Llop wrote:
> > 
> > Hi again,  
> > I set the log level to debug on one of the nodes, and restarted the  
> > client. After the restart it all worked fine for 14hours (until midnight  
> > more or less), and then stopped working.
> > 
> > The client log looks very similar with the debug option:
> > 
> > [Thu, 18 Jun 2009 00:33:28 +0200] INFO: Starting Chef Run  
> > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Registering  
> > nouvel\_kingsofmambo\_net for an openid  
> > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via GET to  
> > /registrations/nouvel\_kingsofmambo\_net  
> > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Authenticating  
> > nouvel\_kingsofmambo\_net via openid  
> > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via POST to  
> > /openid/consumer/start  
> > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via GET to  
> > /openid/server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed\_id=https%3A%2F%  
> > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > %2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%  
> > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > %2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%  
> > [2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F%  
> > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%  
> > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete  
> > [Thu, 18 Jun 2009 00:33:29 +0200] ERROR: Net::HTTPFatalError  
> > [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: 502 "Bad Gateway"  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:2097:in  
> > `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:230:in  
> > `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:223:in  
> > `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:163:in  
> > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in  
> > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application.rb:53:in `run'
> > 
> > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/bin/chef-client:26  
> > /usr/bin/chef-client:19:in `load'  
> > /usr/bin/chef-client:19  
> > [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: Sleeping for 1817 seconds before  
> > trying again
> > 
> > Doesn't seem to be anything indicative on the server side, so I'd suggest  
> > a network or temporal issue such as DNS. :\
> > 
> > On the server side:
> > 
> > ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> > ~ Params: {"format"=\>nil, "action"=\>"show",  
> > "id"=\>"nouvel\_kingsofmambo\_net",  
> > "controller"=\>"chef\_server\_slice/openid\_register"}  
> > ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.0, :dispatch\_time=\>0.004,  
> > :after\_filters\_time=\>0.0}  
> > ~
> > 
> > ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> > ~ Params: {"action"=\>"node\_page", "id"=\>"nouvel\_kingsofmambo\_net",  
> > "controller"=\>"chef\_server\_slice/openid\_server"}  
> > ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.004, :dispatch\_time=\>0.004,  
> > :after\_filters\_time=\>0.0}  
> > ~
> > 
> > ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> > ~ Params: {"submit"=\>"Verify", "action"=\>"start",  
> > "controller"=\>"chef\_server\_slice/openid\_consumer", "openid\_identifier"=\>"  
> > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > "}  
> > ~ WARNING: making https request to  
> > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_netwithout](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_netwithout) verifying server certificate; no CA path was specified.  
> > ~ Generated checkid\_setup request to  
> > [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication  
> > {HMAC-SHA1}{4a2f838d}{he1kgg==}  
> > ~ Generated checkid\_setup request to  
> > [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication  
> > {HMAC-SHA1}{4a2f838d}{he1kgg==}  
> > ~ Redirecting to:  
> > [https://chef.kingsofmambo.net/openid/server?openid.assoc\_handle={HMAC-SHA1}{4a2f838d}{he1kgg%3D%3D}&openid.claimed\_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete(302)](https://chef.kingsofmambo.net/openid/server?openid.assoc_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete(302))  
> > ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.024001,  
> > :dispatch\_time=\>0.024001, :after\_filters\_time=\>0.0}  
> > ~
> > 
> > ~ Started request handling: Thu Jun 18 00:33:29 +0200 2009  
> > ~ Params: {"openid.claimed\_id"=\>"  
> > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)",  
> > "openid.mode"=\>"checkid\_setup", "openid.return\_to"=\>"  
> > [https://chef.kingsofmambo.net/openid/consumer/complete](https://chef.kingsofmambo.net/openid/consumer/complete)", "openid.ns"=\>"  
> > [http://specs.openid.net/auth/2.0](http://specs.openid.net/auth/2.0)", "action"=\>"index",  
> > "controller"=\>"chef\_server\_slice/openid\_server", "openid.identity"=\>"  
> > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)",  
> > "openid.assoc\_handle"=\>"{HMAC-SHA1}{4a2f838d}{he1kgg==}", "openid.realm"=\>"  
> > [https://chef.kingsofmambo.net/openid/consumer](https://chef.kingsofmambo.net/openid/consumer)"}  
> > ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.004, :dispatch\_time=\>0.004,  
> > :after\_filters\_time=\>0.0}  
> > ~
> > 
> > Thanks beforehand!
> > 
> > --  
> > Albert Llop  
> > Tech Department  
> > [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> > 
> > 2009/6/17 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)
> > 
> > > On 17/06/2009, at 7:41 PM, Albert Llop wrote:
> > > 
> > > I've been having some trouble with my chef-clients, I've my chef-server  
> > > working properly, and my chef-clients can work just fine (with 0.7). I can  
> > > login, and execute chef-client as root and it will work wonderfully.
> > > 
> > > But after that it just doesn't work. In the log you see this every  
> > > 30mins:
> > > 
> > > [Wed, 17 Jun 2009 09:15:09 +0200] INFO: Starting Chef Run  
> > > [Wed, 17 Jun 2009 09:15:09 +0200] ERROR: Net::HTTPFatalError  
> > > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: 502 "Bad Gateway"  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:2097:in  
> > > `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:230:in  
> > > `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:223:in  
> > > `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:163:in  
> > > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in  
> > > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application.rb:53:in `run'
> > > 
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/bin/chef-client:26  
> > > /usr/bin/chef-client:19:in `load'  
> > > /usr/bin/chef-client:19  
> > > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: Sleeping for 1815 seconds before  
> > > trying again
> > > 
> > > Could you possibly set your log\_level to debug on both the client and the  
> > > server, and drop another email back with the increased log verbosity?
> > > 
> > > --  
> > > AJ Christensen, Software Engineer  
> > > Opscode, Inc.  
> > > E: [aj@opscode.com](mailto:aj@opscode.com) [adam@opscode.com](mailto:adam@opscode.com)
> > 
> > --  
> > AJ Christensen, Software Engineer  
> > Opscode, Inc.  
> > E: [aj@opscode.com](mailto:aj@opscode.com) [adam@opscode.com](mailto:adam@opscode.com)
> 
> --  
> AJ Christensen, Software Engineer  
> Opscode, Inc.  
> E: [aj@opscode.com](mailto:aj@opscode.com) [adam@opscode.com](mailto:adam@opscode.com)

---

<div class="post-metadata">

**Author:** ![Arjuna\_Christensen](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Arjuna\_Christensen](https://discourse.chef.io/u/Arjuna_Christensen)\
**Post date:** [June 19, 2009, 10:18am UTC](https://discourse.chef.io/t/chef-client-doesnt-work-automatically/1206/8 "2009-06-19T10:18:05Z")

</div>

On 19/06/2009, at 10:05 PM, Albert Llop [mrsimo@gmail.com](mailto:mrsimo@gmail.com) wrote:

> Thanks a lot, know that bit of info about the big cookies might be  
> useful!
> 
> And yeah, it's been working under nginx for some time, obtained all  
> the info I needed for that from this repo on github [GitHub - fujin/cookbooks: Opscode Cookbooks for Chef](http://github.com/fujin/cookbooks/tree/nginx-chef-server)

Oddly enough, that's one of my branches on my fork - I'm fujin!

Glad it's (kind of) working for you, was really just a hack of Josh's  
apache stuff.

> ## 🙂
> 
> Albert Llop  
> Tech Department  
> [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> 
> 2009/6/19 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)
> 
> On 19/06/2009, at 9:17 PM, Albert Llop wrote:
> 
> > After some sleep I decided that the "502 "Bad Gateway"" error looks  
> > too much like nginx, and I checked its erorr log (why didn't i do  
> > it before?
> > 
> > Whenever one of these nodes that try to contact the server and is  
> > in "zombie mode" like i like to call them (because chef-client is  
> > working... but not properly), nginx gives an error:
> > 
> > 2009/06/19 11:11:38 [error] 27044#0: \*40 upstream sent too big  
> > header while reading response header from upstream, client:  
> > 67.23.26.105, server: [chef.kingsofmambo.net](http://chef.kingsofmambo.net), request: "GET /openid/  
> > server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D  
> > %3D%7D&openid.claimed\_id=https%3A%2F%[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > %2Fopenid%2Fserver%2Fnode  
> > %2Fpotter\_kingsofmambo\_net&openid.identity=https%3A%2F  
> > %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fserver%2Fnode  
> > %2Fpotter\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http  
> > %3A%2F%[2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F  
> > %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer&openid.return\_to=https  
> > %3A%2F%[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete HTTP/  
> > 1.1", upstream: "unix:/tmp/passenger.27019/master/  
> > helper\_server.sock:", host: "[chef.kingsofmambo.net](http://chef.kingsofmambo.net)"
> 
> Very interesting. I wasn't aware you were running underneath another  
> container (although this should definitely work correctly.)
> 
> We're currently experiencing some issues with chef clients receiving  
> cookies bigger than 4kB from the Chef Server, which may be related  
> to this. I wish Nginx would tell us what the header was that was too  
> big.
> 
> I'm opening a ticket, and I'll scrub down the openid stuff while  
> running under Nginx Passenger and see if I can get it to fold.
> 
> Thanks for the additional information!
> 
> > 2009/6/18 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)  
> > Hey!
> > 
> > On 18/06/2009, at 7:53 PM, Albert Llop wrote:
> > 
> > > Hi again,  
> > > I set the log level to debug on one of the nodes, and restarted  
> > > the client. After the restart it all worked fine for 14hours  
> > > (until midnight more or less), and then stopped working.
> > > 
> > > The client log looks very similar with the debug option:
> > > 
> > > [Thu, 18 Jun 2009 00:33:28 +0200] INFO: Starting Chef Run  
> > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Registering  
> > > nouvel\_kingsofmambo\_net for an openid  
> > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via  
> > > GET to /registrations/nouvel\_kingsofmambo\_net  
> > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Authenticating  
> > > nouvel\_kingsofmambo\_net via openid  
> > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via  
> > > POST to /openid/consumer/start  
> > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via  
> > > GET to /openid/server?openid.assoc\_handle=%7BHMAC-SHA1%7D  
> > > %7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed\_id=https%3A%2F  
> > > %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fserver%2Fnode  
> > > %2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F  
> > > %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fserver%2Fnode  
> > > %2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http  
> > > %3A%2F%[2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F  
> > > %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer&openid.return\_to=https  
> > > %3A%2F%[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete  
> > > [Thu, 18 Jun 2009 00:33:29 +0200] ERROR: Net::HTTPFatalError  
> > > [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: 502 "Bad Gateway"  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:  
> > > 2097:in `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > chef-0.7.0/lib/chef/rest.rb:230:in `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > chef-0.7.0/lib/chef/client.rb:223:in `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > chef-0.7.0/lib/chef/application/client.rb:163:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > chef-0.7.0/lib/chef/application/client.rb:161:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application.rb:53:in `run'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > chef-0.7.0/bin/chef-client:26  
> > > /usr/bin/chef-client:19:in `load'  
> > > /usr/bin/chef-client:19  
> > > [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: Sleeping for 1817 seconds  
> > > before trying again
> > 
> > Doesn't seem to be anything indicative on the server side, so I'd  
> > suggest a network or temporal issue such as DNS. :\
> > 
> > > On the server side:
> > > 
> > > ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> > > ~ Params: {"format"=\>nil, "action"=\>"show",  
> > > "id"=\>"nouvel\_kingsofmambo\_net", "controller"=\>"chef\_server\_slice/  
> > > openid\_register"}  
> > > ~  
> > > {:b  
> > > efore\_filters\_time=
> > > 
> > > > 0.0,  
> > > > :action\_time=\>0.0, :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> > > > ~
> > > 
> > > ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> > > ~ Params: {"action"=\>"node\_page",  
> > > "id"=\>"nouvel\_kingsofmambo\_net", "controller"=\>"chef\_server\_slice/  
> > > openid\_server"}  
> > > ~  
> > > {:b  
> > > efore\_filters\_time=
> > > 
> > > > 0.0,  
> > > > :a  
> > > > ction\_time=\>0.004, :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> > > > ~
> > > 
> > > ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> > > ~ Params: {"submit"=\>"Verify", "action"=\>"start",  
> > > "controller"=\>"chef\_server\_slice/openid\_consumer",  
> > > "openid\_identifier"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > "}  
> > > ~ WARNING: making https request to [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > without verifying server certificate; no CA path was specified.  
> > > ~ Generated checkid\_setup request to [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server)  
> > > with assocication {HMAC-SHA1}{4a2f838d}{he1kgg==}  
> > > ~ Generated checkid\_setup request to [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server)  
> > > with assocication {HMAC-SHA1}{4a2f838d}{he1kgg==}  
> > > ~ Redirecting to: [https://chef.kingsofmambo.net/openid/server?openid.assoc\_handle={HMAC-SHA1}{4a2f838d}{he1kgg%3D%3D}&openid.claimed\_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete](https://chef.kingsofmambo.net/openid/server?openid.assoc_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete)  
> > > (302)  
> > > ~  
> > > {:b  
> > > efore\_filters\_time=
> > > 
> > > > 0.0,  
> > > > :a  
> > > > ction\_time=  
> > > > 0.024001, :dispatch\_time=\>0.024001, :after\_filters\_time=\>0.0}  
> > > > ~
> > > 
> > > ~ Started request handling: Thu Jun 18 00:33:29 +0200 2009  
> > > ~ Params: {"openid.claimed\_id"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > ", "openid.mode"=\>"checkid\_setup", "openid.return\_to"=\>"[https://chef.kingsofmambo.net/openid/consumer/complete](https://chef.kingsofmambo.net/openid/consumer/complete)  
> > > ", "openid.ns"=\>"[http://specs.openid.net/auth/2.0](http://specs.openid.net/auth/2.0)",  
> > > "action"=\>"index", "controller"=\>"chef\_server\_slice/  
> > > openid\_server", "openid.identity"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > ", "openid.assoc\_handle"=\>"{HMAC-SHA1}{4a2f838d}{he1kgg==}",  
> > > "openid.realm"=\>"[https://chef.kingsofmambo.net/openid/consumer](https://chef.kingsofmambo.net/openid/consumer)"}  
> > > ~  
> > > {:b  
> > > efore\_filters\_time=
> > > 
> > > > 0.0,  
> > > > :a  
> > > > ction\_time=\>0.004, :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> > > > ~
> > > 
> > > Thanks beforehand!
> > > 
> > > --  
> > > Albert Llop  
> > > Tech Department  
> > > [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> > > 
> > > 2009/6/17 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)
> > > 
> > > On 17/06/2009, at 7:41 PM, Albert Llop wrote:
> > > 
> > > > I've been having some trouble with my chef-clients, I've my chef-  
> > > > server working properly, and my chef-clients can work just fine  
> > > > (with 0.7). I can login, and execute chef-client as root and it  
> > > > will work wonderfully.
> > > > 
> > > > But after that it just doesn't work. In the log you see this  
> > > > every 30mins:
> > > > 
> > > > [Wed, 17 Jun 2009 09:15:09 +0200] INFO: Starting Chef Run  
> > > > [Wed, 17 Jun 2009 09:15:09 +0200] ERROR: Net::HTTPFatalError  
> > > > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: 502 "Bad Gateway"  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:  
> > > > 2097:in `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > chef-0.7.0/lib/chef/rest.rb:230:in `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > chef-0.7.0/lib/chef/client.rb:223:in `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > chef-0.7.0/lib/chef/application/client.rb:163:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > chef-0.7.0/lib/chef/application/client.rb:161:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application.rb:53:in `run'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > chef-0.7.0/bin/chef-client:26  
> > > > /usr/bin/chef-client:19:in `load'  
> > > > /usr/bin/chef-client:19  
> > > > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: Sleeping for 1815  
> > > > seconds before trying again
> > > 
> > > Could you possibly set your log\_level to debug on both the client  
> > > and the server, and drop another email back with the increased log  
> > > verbosity?
> > > 
> > > --  
> > > AJ Christensen, Software Engineer  
> > > Opscode, Inc.  
> > > E: [aj@opscode.com](mailto:aj@opscode.com)
> > 
> > --  
> > AJ Christensen, Software Engineer  
> > Opscode, Inc.  
> > E: [aj@opscode.com](mailto:aj@opscode.com)
> 
> --  
> AJ Christensen, Software Engineer  
> Opscode, Inc.  
> E: [aj@opscode.com](mailto:aj@opscode.com)

---

<div class="post-metadata">

**Author:** ![Albert\_Llop](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/albert_llop/32/885_2.png) [@Albert\_Llop](https://discourse.chef.io/u/Albert_Llop)\
**Post date:** [June 30, 2009, 7:11am UTC](https://discourse.chef.io/t/chef-client-doesnt-work-automatically/1206/9 "2009-06-30T07:11:44Z")

</div>

Hi there again,

## all this has been solved updating everything (server and clients) to the 0.7.4. Thanks a lot for the fixes!

Albert Llop  
Tech Department  
[albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)

2009/6/19 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)

> On 19/06/2009, at 10:05 PM, Albert Llop [mrsimo@gmail.com](mailto:mrsimo@gmail.com) wrote:
> 
> Thanks a lot, know that bit of info about the big cookies might be useful!
> 
> And yeah, it's been working under nginx for some time, obtained all the  
> info I needed for that from this repo on github  
> [http://github.com/fujin/cookbooks/tree/nginx-chef-server](http://github.com/fujin/cookbooks/tree/nginx-chef-server)  
> [GitHub - fujin/cookbooks: Opscode Cookbooks for Chef](http://github.com/fujin/cookbooks/tree/nginx-chef-server)
> 
> Oddly enough, that's one of my branches on my fork - I'm fujin!
> 
> Glad it's (kind of) working for you, was really just a hack of Josh's  
> apache stuff.
> 
> ## 🙂
> 
> Albert Llop  
> Tech Department  
> [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)[albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> 
> 2009/6/19 Arjuna Christensen \< [aj@opscode.com](mailto:aj@opscode.com)[aj@opscode.com](mailto:aj@opscode.com)\>
> 
> > On 19/06/2009, at 9:17 PM, Albert Llop wrote:
> > 
> > After some sleep I decided that the "502 "Bad Gateway"" error looks too  
> > much like nginx, and I checked its erorr log (why didn't i do it before?
> > 
> > Whenever one of these nodes that try to contact the server and is in  
> > "zombie mode" like i like to call them (because chef-client is working...  
> > but not properly), nginx gives an error:
> > 
> > 2009/06/19 11:11:38 [error] 27044#0: \*40 _upstream sent too big header  
> > while reading response header from upstream_, client: 67.23.26.105,  
> > server: [http://chef.kingsofmambo.net](http://chef.kingsofmambo.net)[chef.kingsofmambo.net](http://chef.kingsofmambo.net), request:  
> > "GET  
> > /openid/server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed\_id=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > %2Fopenid%2Fserver%2Fnode%2Fpotter\_kingsofmambo\_net&openid.identity=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > %2Fopenid%2Fserver%2Fnode%2Fpotter\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%[http://2Fspecs.openid.net](http://2Fspecs.openid.net)  
> > [2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete HTTP/1.1",  
> > upstream: "unix:/tmp/passenger.27019/master/helper\_server.sock:", host: "[http://chef.kingsofmambo.net](http://chef.kingsofmambo.net)  
> > [chef.kingsofmambo.net](http://chef.kingsofmambo.net)"
> > 
> > Very interesting. I wasn't aware you were running underneath another  
> > container (although this should definitely work correctly.)
> > 
> > We're currently experiencing some issues with chef clients receiving  
> > cookies bigger than 4kB from the Chef Server, which may be related to this.  
> > I wish Nginx would tell us what the header was that was too big.
> > 
> > I'm opening a ticket, and I'll scrub down the openid stuff while running  
> > under Nginx Passenger and see if I can get it to fold.
> > 
> > Thanks for the additional information!
> > 
> > 2009/6/18 Arjuna Christensen \< [aj@opscode.com](mailto:aj@opscode.com)[aj@opscode.com](mailto:aj@opscode.com)\>
> > 
> > > Hey!  
> > > On 18/06/2009, at 7:53 PM, Albert Llop wrote:
> > > 
> > > Hi again,  
> > > I set the log level to debug on one of the nodes, and restarted the  
> > > client. After the restart it all worked fine for 14hours (until midnight  
> > > more or less), and then stopped working.
> > > 
> > > The client log looks very similar with the debug option:
> > > 
> > > [Thu, 18 Jun 2009 00:33:28 +0200] INFO: Starting Chef Run  
> > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Registering  
> > > nouvel\_kingsofmambo\_net for an openid  
> > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via GET to  
> > > /registrations/nouvel\_kingsofmambo\_net  
> > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Authenticating  
> > > nouvel\_kingsofmambo\_net via openid  
> > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via POST to  
> > > /openid/consumer/start  
> > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via GET to  
> > > /openid/server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed\_id=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > %2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > %2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%[http://2Fspecs.openid.net](http://2Fspecs.openid.net)  
> > > [2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > %2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete  
> > > [Thu, 18 Jun 2009 00:33:29 +0200] ERROR: Net::HTTPFatalError  
> > > [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: 502 "Bad Gateway"  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:2097:in  
> > > `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:230:in  
> > > `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:223:in  
> > > `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:163:in  
> > > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in  
> > > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application.rb:53:in `run'
> > > 
> > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/bin/chef-client:26  
> > > /usr/bin/chef-client:19:in `load'  
> > > /usr/bin/chef-client:19  
> > > [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: Sleeping for 1817 seconds before  
> > > trying again
> > > 
> > > Doesn't seem to be anything indicative on the server side, so I'd suggest  
> > > a network or temporal issue such as DNS. :\
> > > 
> > > On the server side:
> > > 
> > > ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> > > ~ Params: {"format"=\>nil, "action"=\>"show",  
> > > "id"=\>"nouvel\_kingsofmambo\_net",  
> > > "controller"=\>"chef\_server\_slice/openid\_register"}  
> > > ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.0, :dispatch\_time=\>0.004,  
> > > :after\_filters\_time=\>0.0}  
> > > ~
> > > 
> > > ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> > > ~ Params: {"action"=\>"node\_page", "id"=\>"nouvel\_kingsofmambo\_net",  
> > > "controller"=\>"chef\_server\_slice/openid\_server"}  
> > > ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.004,  
> > > :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> > > ~
> > > 
> > > ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> > > ~ Params: {"submit"=\>"Verify", "action"=\>"start",  
> > > "controller"=\>"chef\_server\_slice/openid\_consumer", "openid\_identifier"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > "}  
> > > ~ WARNING: making https request to  
> > > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_netwithout](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_netwithout) verifying server certificate; no CA path was specified.  
> > > ~ Generated checkid\_setup request to  
> > > [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server)  
> > > [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication  
> > > {HMAC-SHA1}{4a2f838d}{he1kgg==}  
> > > ~ Generated checkid\_setup request to  
> > > [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server)  
> > > [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication  
> > > {HMAC-SHA1}{4a2f838d}{he1kgg==}  
> > > ~ Redirecting to:  
> > > [https://chef.kingsofmambo.net/openid/server?openid.assoc\_handle={HMAC-SHA1}{4a2f838d}{he1kgg%3D%3D}&openid.claimed\_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete](https://chef.kingsofmambo.net/openid/server?openid.assoc_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete)  
> > > [https://chef.kingsofmambo.net/openid/server?openid.assoc\_handle={HMAC-SHA1}{4a2f838d}{he1kgg%3D%3D}&openid.claimed\_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete(302)](https://chef.kingsofmambo.net/openid/server?openid.assoc_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete(302))  
> > > ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.024001,  
> > > :dispatch\_time=\>0.024001, :after\_filters\_time=\>0.0}  
> > > ~
> > > 
> > > ~ Started request handling: Thu Jun 18 00:33:29 +0200 2009  
> > > ~ Params: {"openid.claimed\_id"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)",  
> > > "openid.mode"=\>"checkid\_setup", "openid.return\_to"=\>"[https://chef.kingsofmambo.net/openid/consumer/complete](https://chef.kingsofmambo.net/openid/consumer/complete)  
> > > [https://chef.kingsofmambo.net/openid/consumer/complete](https://chef.kingsofmambo.net/openid/consumer/complete)", "openid.ns"=\>"[http://specs.openid.net/auth/2.0](http://specs.openid.net/auth/2.0)  
> > > [http://specs.openid.net/auth/2.0](http://specs.openid.net/auth/2.0)", "action"=\>"index",  
> > > "controller"=\>"chef\_server\_slice/openid\_server", "openid.identity"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)",  
> > > "openid.assoc\_handle"=\>"{HMAC-SHA1}{4a2f838d}{he1kgg==}", "openid.realm"=\>"[https://chef.kingsofmambo.net/openid/consumer](https://chef.kingsofmambo.net/openid/consumer)  
> > > [https://chef.kingsofmambo.net/openid/consumer](https://chef.kingsofmambo.net/openid/consumer)"}  
> > > ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.004,  
> > > :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> > > ~
> > > 
> > > Thanks beforehand!
> > > 
> > > --  
> > > Albert Llop  
> > > Tech Department  
> > > [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)[albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> > > 
> > > 2009/6/17 Arjuna Christensen \< [aj@opscode.com](mailto:aj@opscode.com)[aj@opscode.com](mailto:aj@opscode.com)\>
> > > 
> > > > On 17/06/2009, at 7:41 PM, Albert Llop wrote:
> > > > 
> > > > I've been having some trouble with my chef-clients, I've my chef-server  
> > > > working properly, and my chef-clients can work just fine (with 0.7). I can  
> > > > login, and execute chef-client as root and it will work wonderfully.
> > > > 
> > > > But after that it just doesn't work. In the log you see this every  
> > > > 30mins:
> > > > 
> > > > [Wed, 17 Jun 2009 09:15:09 +0200] INFO: Starting Chef Run  
> > > > [Wed, 17 Jun 2009 09:15:09 +0200] ERROR: Net::HTTPFatalError  
> > > > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: 502 "Bad Gateway"  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:2097:in  
> > > > `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:230:in  
> > > > `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:223:in  
> > > > `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:163:in  
> > > > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in  
> > > > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application.rb:53:in `run'
> > > > 
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/bin/chef-client:26  
> > > > /usr/bin/chef-client:19:in `load'  
> > > > /usr/bin/chef-client:19  
> > > > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: Sleeping for 1815 seconds  
> > > > before trying again
> > > > 
> > > > Could you possibly set your log\_level to debug on both the client and  
> > > > the server, and drop another email back with the increased log verbosity?
> > > > 
> > > > --  
> > > > AJ Christensen, Software Engineer  
> > > > Opscode, Inc.  
> > > > E: [adam@opscode.com](mailto:adam@opscode.com)[aj@opscode.com](mailto:aj@opscode.com)
> > > 
> > > --  
> > > AJ Christensen, Software Engineer  
> > > Opscode, Inc.  
> > > E: [adam@opscode.com](mailto:adam@opscode.com)[aj@opscode.com](mailto:aj@opscode.com)
> > 
> > --  
> > AJ Christensen, Software Engineer  
> > Opscode, Inc.  
> > E: [adam@opscode.com](mailto:adam@opscode.com)[aj@opscode.com](mailto:aj@opscode.com)

---

<div class="post-metadata">

**Author:** ![Arjuna\_Christensen](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Arjuna\_Christensen](https://discourse.chef.io/u/Arjuna_Christensen)\
**Post date:** [June 30, 2009, 12:10pm UTC](https://discourse.chef.io/t/chef-client-doesnt-work-automatically/1206/10 "2009-06-30T12:10:44Z")

</div>

On 30/06/2009, at 12:11 AM, Albert Llop wrote:

> Hi there again,
> 
> all this has been solved updating everything (server and clients) to  
> the 0.7.4. Thanks a lot for the fixes!

Not a problem. Sorry for not alerting you when I fixed it, slipped my  
mind. I'm glad you've got everything working!

> --  
> Albert Llop  
> Tech Department  
> [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> 
> 2009/6/19 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)
> 
> On 19/06/2009, at 10:05 PM, Albert Llop [mrsimo@gmail.com](mailto:mrsimo@gmail.com) wrote:
> 
> > Thanks a lot, know that bit of info about the big cookies might be  
> > useful!
> > 
> > And yeah, it's been working under nginx for some time, obtained all  
> > the info I needed for that from this repo on github [GitHub - fujin/cookbooks: Opscode Cookbooks for Chef](http://github.com/fujin/cookbooks/tree/nginx-chef-server)
> 
> Oddly enough, that's one of my branches on my fork - I'm fujin!
> 
> Glad it's (kind of) working for you, was really just a hack of  
> Josh's apache stuff.
> 
> > ## 🙂
> > 
> > Albert Llop  
> > Tech Department  
> > [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> > 
> > 2009/6/19 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)
> > 
> > On 19/06/2009, at 9:17 PM, Albert Llop wrote:
> > 
> > > After some sleep I decided that the "502 "Bad Gateway"" error  
> > > looks too much like nginx, and I checked its erorr log (why didn't  
> > > i do it before?
> > > 
> > > Whenever one of these nodes that try to contact the server and is  
> > > in "zombie mode" like i like to call them (because chef-client is  
> > > working... but not properly), nginx gives an error:
> > > 
> > > 2009/06/19 11:11:38 [error] 27044#0: \*40 upstream sent too big  
> > > header while reading response header from upstream, client:  
> > > 67.23.26.105, server: [chef.kingsofmambo.net](http://chef.kingsofmambo.net), request: "GET /openid/  
> > > server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg  
> > > %3D%3D%7D&openid.claimed\_id=https%3A%2F%[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > %2Fopenid%2Fserver%2Fnode  
> > > %2Fpotter\_kingsofmambo\_net&openid.identity=https%3A%2F  
> > > %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fserver%2Fnode  
> > > %2Fpotter\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http  
> > > %3A%2F%[2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F  
> > > %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer&openid.return\_to=https  
> > > %3A%2F%[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete HTTP/  
> > > 1.1", upstream: "unix:/tmp/passenger.27019/master/  
> > > helper\_server.sock:", host: "[chef.kingsofmambo.net](http://chef.kingsofmambo.net)"
> > 
> > Very interesting. I wasn't aware you were running underneath  
> > another container (although this should definitely work correctly.)
> > 
> > We're currently experiencing some issues with chef clients  
> > receiving cookies bigger than 4kB from the Chef Server, which may  
> > be related to this. I wish Nginx would tell us what the header was  
> > that was too big.
> > 
> > I'm opening a ticket, and I'll scrub down the openid stuff while  
> > running under Nginx Passenger and see if I can get it to fold.
> > 
> > Thanks for the additional information!
> > 
> > > 2009/6/18 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)  
> > > Hey!
> > > 
> > > On 18/06/2009, at 7:53 PM, Albert Llop wrote:
> > > 
> > > > Hi again,  
> > > > I set the log level to debug on one of the nodes, and restarted  
> > > > the client. After the restart it all worked fine for 14hours  
> > > > (until midnight more or less), and then stopped working.
> > > > 
> > > > The client log looks very similar with the debug option:
> > > > 
> > > > [Thu, 18 Jun 2009 00:33:28 +0200] INFO: Starting Chef Run  
> > > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Registering  
> > > > nouvel\_kingsofmambo\_net for an openid  
> > > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via  
> > > > GET to /registrations/nouvel\_kingsofmambo\_net  
> > > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Authenticating  
> > > > nouvel\_kingsofmambo\_net via openid  
> > > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via  
> > > > POST to /openid/consumer/start  
> > > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via  
> > > > GET to /openid/server?openid.assoc\_handle=%7BHMAC-SHA1%7D  
> > > > %7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed\_id=https%3A%2F  
> > > > %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fserver%2Fnode  
> > > > %2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F  
> > > > %[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fserver%2Fnode  
> > > > %2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%[2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F%[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%[2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete  
> > > > [Thu, 18 Jun 2009 00:33:29 +0200] ERROR: Net::HTTPFatalError  
> > > > [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: 502 "Bad Gateway"  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:  
> > > > 2097:in `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > chef-0.7.0/lib/chef/rest.rb:230:in `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > chef-0.7.0/lib/chef/client.rb:223:in `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > chef-0.7.0/lib/chef/application/client.rb:163:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > chef-0.7.0/lib/chef/application/client.rb:161:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application.rb:53:in `run'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > chef-0.7.0/bin/chef-client:26  
> > > > /usr/bin/chef-client:19:in `load'  
> > > > /usr/bin/chef-client:19  
> > > > [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: Sleeping for 1817  
> > > > seconds before trying again
> > > 
> > > Doesn't seem to be anything indicative on the server side, so I'd  
> > > suggest a network or temporal issue such as DNS. :\
> > > 
> > > > On the server side:
> > > > 
> > > > # ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009 ~ Params: {"format"=\>nil, "action"=\>"show", "id"=\>"nouvel\_kingsofmambo\_net", "controller"=\>"chef\_server\_slice/ openid\_register"} ~ {:before\_filters\_time
> > > > 
> > > > > 
> > > > 
> > > > 0.0  
> > > > , :action\_time  
> > > > =\>0.0, :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> > > > ~
> > > > 
> > > > # ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009 ~ Params: {"action"=\>"node\_page", "id"=\>"nouvel\_kingsofmambo\_net", "controller"=\>"chef\_server\_slice/ openid\_server"} ~ {:before\_filters\_time
> > > > 
> > > > > 
> > > > 
> > > > 0.0  
> > > > , :action\_time  
> > > > =\>0.004, :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> > > > ~
> > > > 
> > > > # ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009 ~ Params: {"submit"=\>"Verify", "action"=\>"start", "controller"=\>"chef\_server\_slice/openid\_consumer", "openid\_identifier"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net) "} ~ WARNING: making https request to [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net) without verifying server certificate; no CA path was specified. ~ Generated checkid\_setup request to [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication {HMAC-SHA1}{4a2f838d}{he1kgg==} ~ Generated checkid\_setup request to [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication {HMAC-SHA1}{4a2f838d}{he1kgg==} ~ Redirecting to: [https://chef.kingsofmambo.net/openid/server?openid.assoc\_handle={HMAC-SHA1}{4a2f838d}{he1kgg%3D%3D}&openid.claimed\_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete](https://chef.kingsofmambo.net/openid/server?openid.assoc_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete) (302) ~ {:before\_filters\_time
> > > > 
> > > > > 
> > > > 
> > > > 0.0  
> > > > , :action\_time  
> > > > =\>0.024001, :dispatch\_time=\>0.024001, :after\_filters\_time=\>0.0}  
> > > > ~
> > > > 
> > > > # ~ Started request handling: Thu Jun 18 00:33:29 +0200 2009 ~ Params: {"openid.claimed\_id"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net) ", "openid.mode"=\>"checkid\_setup", "openid.return\_to"=\>"[https://chef.kingsofmambo.net/openid/consumer/complete](https://chef.kingsofmambo.net/openid/consumer/complete) ", "openid.ns"=\>"[http://specs.openid.net/auth/2.0](http://specs.openid.net/auth/2.0)", "action"=\>"index", "controller"=\>"chef\_server\_slice/ openid\_server", "openid.identity"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net) ", "openid.assoc\_handle"=\>"{HMAC-SHA1}{4a2f838d}{he1kgg==}", "openid.realm"=\>"[https://chef.kingsofmambo.net/openid/consumer](https://chef.kingsofmambo.net/openid/consumer)"} ~ {:before\_filters\_time
> > > > 
> > > > > 
> > > > 
> > > > 0.0  
> > > > , :action\_time  
> > > > =\>0.004, :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> > > > ~
> > > > 
> > > > Thanks beforehand!
> > > > 
> > > > --  
> > > > Albert Llop  
> > > > Tech Department  
> > > > [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> > > > 
> > > > 2009/6/17 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)
> > > > 
> > > > On 17/06/2009, at 7:41 PM, Albert Llop wrote:
> > > > 
> > > > > I've been having some trouble with my chef-clients, I've my chef-  
> > > > > server working properly, and my chef-clients can work just fine  
> > > > > (with 0.7). I can login, and execute chef-client as root and it  
> > > > > will work wonderfully.
> > > > > 
> > > > > But after that it just doesn't work. In the log you see this  
> > > > > every 30mins:
> > > > > 
> > > > > [Wed, 17 Jun 2009 09:15:09 +0200] INFO: Starting Chef Run  
> > > > > [Wed, 17 Jun 2009 09:15:09 +0200] ERROR: Net::HTTPFatalError  
> > > > > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: 502 "Bad Gateway"  
> > > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:  
> > > > > 2097:in `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > > chef-0.7.0/lib/chef/rest.rb:230:in `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > > chef-0.7.0/lib/chef/client.rb:223:in `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > > chef-0.7.0/lib/chef/application/client.rb:163:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > > chef-0.7.0/lib/chef/application/client.rb:161:in `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ chef-0.7.0/lib/chef/application.rb:53:in `run'  
> > > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/  
> > > > > chef-0.7.0/bin/chef-client:26  
> > > > > /usr/bin/chef-client:19:in `load'  
> > > > > /usr/bin/chef-client:19  
> > > > > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: Sleeping for 1815  
> > > > > seconds before trying again
> > > > 
> > > > Could you possibly set your log\_level to debug on both the client  
> > > > and the server, and drop another email back with the increased  
> > > > log verbosity?
> > > > 
> > > > --  
> > > > AJ Christensen, Software Engineer  
> > > > Opscode, Inc.  
> > > > E: [aj@opscode.com](mailto:aj@opscode.com)
> > > 
> > > --  
> > > AJ Christensen, Software Engineer  
> > > Opscode, Inc.  
> > > E: [aj@opscode.com](mailto:aj@opscode.com)
> > 
> > --  
> > AJ Christensen, Software Engineer  
> > Opscode, Inc.  
> > E: [aj@opscode.com](mailto:aj@opscode.com)

--  
AJ Christensen, Software Engineer  
Opscode, Inc.  
E: [aj@opscode.com](mailto:aj@opscode.com)

---

<div class="post-metadata">

**Author:** ![Albert\_Llop](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/albert_llop/32/885_2.png) [@Albert\_Llop](https://discourse.chef.io/u/Albert_Llop)\
**Post date:** [June 30, 2009, 1:17pm UTC](https://discourse.chef.io/t/chef-client-doesnt-work-automatically/1206/11 "2009-06-30T13:17:19Z")

</div>

I saw it on the release notes, it's ok =) I just didn't have time to update  
everything.

## 😃 thanks for the fix!!

Albert Llop  
Tech Department  
[albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)

2009/6/30 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)

> On 30/06/2009, at 12:11 AM, Albert Llop wrote:
> 
> Hi there again,
> 
> all this has been solved updating everything (server and clients) to the  
> 0.7.4. Thanks a lot for the fixes!
> 
> Not a problem. Sorry for not alerting you when I fixed it, slipped my mind.  
> I'm glad you've got everything working!
> 
> --  
> Albert Llop  
> Tech Department  
> [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> 
> 2009/6/19 Arjuna Christensen [aj@opscode.com](mailto:aj@opscode.com)
> 
> > On 19/06/2009, at 10:05 PM, Albert Llop [mrsimo@gmail.com](mailto:mrsimo@gmail.com) wrote:
> > 
> > Thanks a lot, know that bit of info about the big cookies might be useful!
> > 
> > And yeah, it's been working under nginx for some time, obtained all the  
> > info I needed for that from this repo on github  
> > [http://github.com/fujin/cookbooks/tree/nginx-chef-server](http://github.com/fujin/cookbooks/tree/nginx-chef-server)  
> > [GitHub - fujin/cookbooks: Opscode Cookbooks for Chef](http://github.com/fujin/cookbooks/tree/nginx-chef-server)
> > 
> > Oddly enough, that's one of my branches on my fork - I'm fujin!
> > 
> > Glad it's (kind of) working for you, was really just a hack of Josh's  
> > apache stuff.
> > 
> > ## 🙂
> > 
> > Albert Llop  
> > Tech Department  
> > [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)[albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> > 
> > 2009/6/19 Arjuna Christensen \< [aj@opscode.com](mailto:aj@opscode.com)[aj@opscode.com](mailto:aj@opscode.com)\>
> > 
> > > On 19/06/2009, at 9:17 PM, Albert Llop wrote:
> > > 
> > > After some sleep I decided that the "502 "Bad Gateway"" error looks too  
> > > much like nginx, and I checked its erorr log (why didn't i do it before?
> > > 
> > > Whenever one of these nodes that try to contact the server and is in  
> > > "zombie mode" like i like to call them (because chef-client is working...  
> > > but not properly), nginx gives an error:
> > > 
> > > 2009/06/19 11:11:38 [error] 27044#0: \*40 _upstream sent too big header  
> > > while reading response header from upstream_, client: 67.23.26.105,  
> > > server: [http://chef.kingsofmambo.net](http://chef.kingsofmambo.net)[chef.kingsofmambo.net](http://chef.kingsofmambo.net), request:  
> > > "GET  
> > > /openid/server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed\_id=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > %2Fopenid%2Fserver%2Fnode%2Fpotter\_kingsofmambo\_net&openid.identity=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > %2Fopenid%2Fserver%2Fnode%2Fpotter\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%[http://2Fspecs.openid.net](http://2Fspecs.openid.net)  
> > > [2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > %2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete HTTP/1.1",  
> > > upstream: "unix:/tmp/passenger.27019/master/helper\_server.sock:", host: "[http://chef.kingsofmambo.net](http://chef.kingsofmambo.net)  
> > > [chef.kingsofmambo.net](http://chef.kingsofmambo.net)"
> > > 
> > > Very interesting. I wasn't aware you were running underneath another  
> > > container (although this should definitely work correctly.)
> > > 
> > > We're currently experiencing some issues with chef clients receiving  
> > > cookies bigger than 4kB from the Chef Server, which may be related to this.  
> > > I wish Nginx would tell us what the header was that was too big.
> > > 
> > > I'm opening a ticket, and I'll scrub down the openid stuff while running  
> > > under Nginx Passenger and see if I can get it to fold.
> > > 
> > > Thanks for the additional information!
> > > 
> > > 2009/6/18 Arjuna Christensen \< [aj@opscode.com](mailto:aj@opscode.com)[aj@opscode.com](mailto:aj@opscode.com)\>
> > > 
> > > > Hey!  
> > > > On 18/06/2009, at 7:53 PM, Albert Llop wrote:
> > > > 
> > > > Hi again,  
> > > > I set the log level to debug on one of the nodes, and restarted the  
> > > > client. After the restart it all worked fine for 14hours (until midnight  
> > > > more or less), and then stopped working.
> > > > 
> > > > The client log looks very similar with the debug option:
> > > > 
> > > > [Thu, 18 Jun 2009 00:33:28 +0200] INFO: Starting Chef Run  
> > > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Registering  
> > > > nouvel\_kingsofmambo\_net for an openid  
> > > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via GET to  
> > > > /registrations/nouvel\_kingsofmambo\_net  
> > > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Authenticating  
> > > > nouvel\_kingsofmambo\_net via openid  
> > > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via POST  
> > > > to /openid/consumer/start  
> > > > [Thu, 18 Jun 2009 00:33:28 +0200] DEBUG: Sending HTTP Request via GET to  
> > > > /openid/server?openid.assoc\_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed\_id=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > > %2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > > %2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%[http://2Fspecs.openid.net](http://2Fspecs.openid.net)  
> > > > [2Fspecs.openid.net](http://2Fspecs.openid.net)%2Fauth%2F2.0&openid.realm=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > > %2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%[http://2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)  
> > > > [2Fchef.kingsofmambo.net](http://2Fchef.kingsofmambo.net)%2Fopenid%2Fconsumer%2Fcomplete  
> > > > [Thu, 18 Jun 2009 00:33:29 +0200] ERROR: Net::HTTPFatalError  
> > > > [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: 502 "Bad Gateway"  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:2097:in  
> > > > `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:230:in  
> > > > `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:223:in  
> > > > `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:163:in  
> > > > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in  
> > > > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application.rb:53:in `run'
> > > > 
> > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/bin/chef-client:26  
> > > > /usr/bin/chef-client:19:in `load'  
> > > > /usr/bin/chef-client:19  
> > > > [Thu, 18 Jun 2009 00:33:29 +0200] FATAL: Sleeping for 1817 seconds  
> > > > before trying again
> > > > 
> > > > Doesn't seem to be anything indicative on the server side, so I'd  
> > > > suggest a network or temporal issue such as DNS. :\
> > > > 
> > > > On the server side:
> > > > 
> > > > ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> > > > ~ Params: {"format"=\>nil, "action"=\>"show",  
> > > > "id"=\>"nouvel\_kingsofmambo\_net",  
> > > > "controller"=\>"chef\_server\_slice/openid\_register"}  
> > > > ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.0, :dispatch\_time=\>0.004,  
> > > > :after\_filters\_time=\>0.0}  
> > > > ~
> > > > 
> > > > ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> > > > ~ Params: {"action"=\>"node\_page", "id"=\>"nouvel\_kingsofmambo\_net",  
> > > > "controller"=\>"chef\_server\_slice/openid\_server"}  
> > > > ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.004,  
> > > > :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> > > > ~
> > > > 
> > > > ~ Started request handling: Thu Jun 18 00:33:28 +0200 2009  
> > > > ~ Params: {"submit"=\>"Verify", "action"=\>"start",  
> > > > "controller"=\>"chef\_server\_slice/openid\_consumer", "openid\_identifier"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > > "}  
> > > > ~ WARNING: making https request to  
> > > > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_netwithout](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_netwithout) verifying server certificate; no CA path was specified.  
> > > > ~ Generated checkid\_setup request to  
> > > > [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server)  
> > > > [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication  
> > > > {HMAC-SHA1}{4a2f838d}{he1kgg==}  
> > > > ~ Generated checkid\_setup request to  
> > > > [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server)  
> > > > [https://chef.kingsofmambo.net/openid/server](https://chef.kingsofmambo.net/openid/server) with assocication  
> > > > {HMAC-SHA1}{4a2f838d}{he1kgg==}  
> > > > ~ Redirecting to:  
> > > > [https://chef.kingsofmambo.net/openid/server?openid.assoc\_handle={HMAC-SHA1}{4a2f838d}{he1kgg%3D%3D}&openid.claimed\_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete](https://chef.kingsofmambo.net/openid/server?openid.assoc_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete)  
> > > > [https://chef.kingsofmambo.net/openid/server?openid.assoc\_handle={HMAC-SHA1}{4a2f838d}{he1kgg%3D%3D}&openid.claimed\_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel\_kingsofmambo\_net&openid.mode=checkid\_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return\_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete(302)](https://chef.kingsofmambo.net/openid/server?openid.assoc_handle=%7BHMAC-SHA1%7D%7B4a2f838d%7D%7Bhe1kgg%3D%3D%7D&openid.claimed_id=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.identity=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fserver%2Fnode%2Fnouvel_kingsofmambo_net&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.realm=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer&openid.return_to=https%3A%2F%2Fchef.kingsofmambo.net%2Fopenid%2Fconsumer%2Fcomplete(302))  
> > > > ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.024001,  
> > > > :dispatch\_time=\>0.024001, :after\_filters\_time=\>0.0}  
> > > > ~
> > > > 
> > > > ~ Started request handling: Thu Jun 18 00:33:29 +0200 2009  
> > > > ~ Params: {"openid.claimed\_id"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)",  
> > > > "openid.mode"=\>"checkid\_setup", "openid.return\_to"=\>"[https://chef.kingsofmambo.net/openid/consumer/complete](https://chef.kingsofmambo.net/openid/consumer/complete)  
> > > > [https://chef.kingsofmambo.net/openid/consumer/complete](https://chef.kingsofmambo.net/openid/consumer/complete)", "openid.ns"=\>"[http://specs.openid.net/auth/2.0](http://specs.openid.net/auth/2.0)  
> > > > [http://specs.openid.net/auth/2.0](http://specs.openid.net/auth/2.0)", "action"=\>"index",  
> > > > "controller"=\>"chef\_server\_slice/openid\_server", "openid.identity"=\>"[https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)  
> > > > [https://chef.kingsofmambo.net/openid/server/node/nouvel\_kingsofmambo\_net](https://chef.kingsofmambo.net/openid/server/node/nouvel_kingsofmambo_net)",  
> > > > "openid.assoc\_handle"=\>"{HMAC-SHA1}{4a2f838d}{he1kgg==}", "openid.realm"=\>"[https://chef.kingsofmambo.net/openid/consumer](https://chef.kingsofmambo.net/openid/consumer)  
> > > > [https://chef.kingsofmambo.net/openid/consumer](https://chef.kingsofmambo.net/openid/consumer)"}  
> > > > ~ {:before\_filters\_time=\>0.0, :action\_time=\>0.004,  
> > > > :dispatch\_time=\>0.004, :after\_filters\_time=\>0.0}  
> > > > ~
> > > > 
> > > > Thanks beforehand!
> > > > 
> > > > --  
> > > > Albert Llop  
> > > > Tech Department  
> > > > [albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)[albert@kingsofmambo.com](mailto:albert@kingsofmambo.com)
> > > > 
> > > > 2009/6/17 Arjuna Christensen \< [aj@opscode.com](mailto:aj@opscode.com)[aj@opscode.com](mailto:aj@opscode.com)\>
> > > > 
> > > > > On 17/06/2009, at 7:41 PM, Albert Llop wrote:
> > > > > 
> > > > > I've been having some trouble with my chef-clients, I've my chef-server  
> > > > > working properly, and my chef-clients can work just fine (with 0.7). I can  
> > > > > login, and execute chef-client as root and it will work wonderfully.
> > > > > 
> > > > > But after that it just doesn't work. In the log you see this every  
> > > > > 30mins:
> > > > > 
> > > > > [Wed, 17 Jun 2009 09:15:09 +0200] INFO: Starting Chef Run  
> > > > > [Wed, 17 Jun 2009 09:15:09 +0200] ERROR: Net::HTTPFatalError  
> > > > > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: 502 "Bad Gateway"  
> > > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/net/http.rb:2097:in  
> > > > > `error!' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:232:in `run\_request'  
> > > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:230:in  
> > > > > `run_request' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/rest.rb:95:in `post\_rest'  
> > > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:223:in  
> > > > > `authenticate' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:74:in `run'  
> > > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:163:in  
> > > > > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `loop'  
> > > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in  
> > > > > `run_application' /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application.rb:53:in `run'
> > > > > 
> > > > > /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/chef-0.7.0/bin/chef-client:26  
> > > > > /usr/bin/chef-client:19:in `load'  
> > > > > /usr/bin/chef-client:19  
> > > > > [Wed, 17 Jun 2009 09:15:09 +0200] FATAL: Sleeping for 1815 seconds  
> > > > > before trying again
> > > > > 
> > > > > Could you possibly set your log\_level to debug on both the client and  
> > > > > the server, and drop another email back with the increased log verbosity?
> > > > > 
> > > > > --  
> > > > > AJ Christensen, Software Engineer  
> > > > > Opscode, Inc.  
> > > > > E: [adam@opscode.com](mailto:adam@opscode.com)[aj@opscode.com](mailto:aj@opscode.com)
> > > > 
> > > > --  
> > > > AJ Christensen, Software Engineer  
> > > > Opscode, Inc.  
> > > > E: [adam@opscode.com](mailto:adam@opscode.com)[aj@opscode.com](mailto:aj@opscode.com)
> > > 
> > > --  
> > > AJ Christensen, Software Engineer  
> > > Opscode, Inc.  
> > > E: [adam@opscode.com](mailto:adam@opscode.com)[aj@opscode.com](mailto:aj@opscode.com)
> 
> --  
> AJ Christensen, Software Engineer  
> Opscode, Inc.  
> E: [aj@opscode.com](mailto:aj@opscode.com) [adam@opscode.com](mailto:adam@opscode.com)
