[chef] Malformed JSON runing chef-client


Chronological Thread 
  • From: Jose Luis Gordo Romero < >
  • To:
  • Subject: [chef] Malformed JSON runing chef-client
  • Date: Wed, 5 Aug 2009 11:00:07 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qnNmm9hezSkiXP64dkCfiNu1H69qgKIaCHrUmn6RnxbuhWRBLioP66T2JZbM8BByoY ncQCUIs2T+JiMUisHAHxs5ce/HQf2jEThcAmLV3Ai6vOGuC44elQ3Xwnq+pnQ87s3/pp jmsCSUnfljGFIyrdNAmoEUtTTASwGvT0J6K/c=

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: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


  • [chef] Malformed JSON runing chef-client, Jose Luis Gordo Romero, 08/05/2009

Archive powered by MHonArc 2.6.16.

§