# Malformed JSON runing chef-client

**URL:** <https://discourse.chef.io/t/malformed-json-runing-chef-client/1250>\
**Category:** Chef Infra (archive)\
**Created:** [August 5, 2009, 9:00am UTC](https://discourse.chef.io/t/malformed-json-runing-chef-client/1250 "2009-08-05T09:00:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Luis\_Gordo\_Rome](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jose_luis_gordo_rome/32/930_2.png) [@Jose\_Luis\_Gordo\_Rome](https://discourse.chef.io/u/Jose_Luis_Gordo_Rome)\
**Post date:** [August 5, 2009, 9:00am UTC](https://discourse.chef.io/t/malformed-json-runing-chef-client/1250/1 "2009-08-05T09:00:07Z")

</div>

Hi,

I have a problem running chef-client, the chef server+clients (ubuntu 9.04  
server 32 aelastic ami) was running ok, and the client  
registration/execution stops working:

Running chef-client -t kkkkkkkkkkkkkkkk -j  
/tmp/instance-config/chef.client.deploy.json -l debug

/tmp/instance-config/chef.client.deploy.json:  
{  
“chef”: { “server\_fqdn”: “[auto.x.com](http://auto.x.com)” },  
“run\_list”: [“role[ubuntu\_base]”, “role[webserver\_base]”,  
“role[webserver\_php]” ]  
}

DEBUG: Sending HTTP Request via GET to /cookbooks/\_definition\_files?node=  
[client.x.com](http://client.x.com)  
DEBUG: Synchronizing recipes  
DEBUG: Sending HTTP Request via GET to /cookbooks/\_recipe\_files?node=  
[client.x.com](http://client.x.com)  
DEBUG: Saving the current state of node client\_x\_com  
/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/node.rb:329:in `to_json': source sequence is illegal/malformed (JSON::GeneratorError) from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/node.rb:329:in`to\_json’  
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/rest.rb:156:in  
`run_request' from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/rest.rb:95:in`post\_rest’  
from  
/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:348:in `save_node' from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:80:in`run’  
from  
/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:164:in  
`run_application' from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:162:in`loop’  
from  
/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:162:in  
`run_application' from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application.rb:57:in`run’  
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/bin/chef-client:26  
from /usr/bin/chef-client:19:in `load’  
from /usr/bin/chef-client:19

Thanks again!

Jose Luis
