Malformed JSON runing chef-client


#1

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” },
“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
DEBUG: Synchronizing recipes
DEBUG: Sending HTTP Request via GET to /cookbooks/_recipe_files?node=
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:into_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:inpost_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:inrun’
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:inloop’
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:inrun’
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