[chef] Re: Couldn't parse JSON in /media/chef/site-cookbooks/LAMP/metadata.jsonrake aborted! A JSON text must at least contain two octets!


Chronological Thread 
  • From: Joe Van Dyk < >
  • To:
  • Subject: [chef] Re: Couldn't parse JSON in /media/chef/site-cookbooks/LAMP/metadata.jsonrake aborted! A JSON text must at least contain two octets!
  • Date: Thu, 13 May 2010 16:13:25 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=UNZncq9wGy00eLUuFA8CO7zdQGOx6sumn+SXq9QzxjbQJdcLPiCMZemewxPtHgKpH/ +o6CEvK0VHOUmOUgDuwtFswPrtGHJQbwJl6kESMK3g+CCGLDsE7ML+PucV/y2uiOaO/C j0ma8fQZujwfbdFbd/iyXPFzSFixhU8pli/ZU=

Downgrade to json 1.4.2.  1.4.3 doesn't work with chef.

On Thu, May 13, 2010 at 4:42 AM,  
< >
 wrote:
>
> Hello. I'm try to write cookbook LAMP
>
> metadata.rb:
>
> maintainer       "vase"
> maintainer_email 
> " "
> license          "none"
> description      "Installs/Configures LAMP package"
> long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
> version          "0.0.1"
> depends          "apache2"
>
> When i'm try to do :
> rake metadata i get error:
>
>  :/media/chef/site-cookbooks/LAMP#
>  rake --trace  metadata
> (in /media/chef)
> ** Invoke metadata (first_time)
> ** Execute metadata
> Couldn't parse JSON in /media/chef/site-cookbooks/LAMP/metadata.json
> rake aborted!
> A JSON text must at least contain two octets!
> /usr/lib/ruby/gems/1.8/gems/json_pure-1.4.3/lib/json/common.rb:146:in
> `initialize'
> /usr/lib/ruby/gems/1.8/gems/json_pure-1.4.3/lib/json/common.rb:146:in `new'
> /usr/lib/ruby/gems/1.8/gems/json_pure-1.4.3/lib/json/common.rb:146:in 
> `parse'
> /usr/lib/ruby/1.8/chef/cookbook/metadata.rb:401:in `from_json'
> /usr/lib/ruby/1.8/chef/cookbook_loader.rb:118:in `load_cookbooks'
> /usr/lib/ruby/1.8/chef/cookbook_loader.rb:116:in `each'
> /usr/lib/ruby/1.8/chef/cookbook_loader.rb:116:in `load_cookbooks'
> /usr/lib/ruby/1.8/chef/cookbook_loader.rb:105:in `each_key'
> /usr/lib/ruby/1.8/chef/cookbook_loader.rb:105:in `load_cookbooks'
> /usr/lib/ruby/1.8/chef/cookbook_loader.rb:36:in `initialize'
> /usr/lib/ruby/1.8/chef/tasks/chef_repo.rake:313:in `new'
> /usr/lib/ruby/1.8/chef/tasks/chef_repo.rake:313
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
> `invoke_with_call_chain'
> /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
> `invoke_with_call_chain'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
> `standard_exception_handling'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
> `standard_exception_handling'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
> /usr/bin/rake:19:in `load'
> /usr/bin/rake:19
>



-- 
Joe Van Dyk
http://fixieconsulting.com



Archive powered by MHonArc 2.6.16.

§