[chef] include_recipe failing


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] include_recipe failing
  • Date: Tue, 25 Aug 2009 16:30:54 -0700 (PDT)

Hi.  I'm trying to include a java recipe inside of a hadoop recipe.  I've
re-created the java cookbook to make sure the metadata, etc. is correct.  I 
get
the following error & log output.


 chef-client -l debug
/usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook_loader.rb:111:in 
`[]':
Cannot find a cookbook named java; did you forget to add metadata to a
cookbook? (http://wiki.opscode.com/display/chef/Metadata) (ArgumentError)
        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/recipe.rb:78:in
`include_recipe'
        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/recipe.rb:64:in
`each'
        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/recipe.rb:64:in
`include_recipe'
        from /usr/local/chef/cache/cookbooks/hadoop/recipes/default.rb:20:in
`from_file'
        from 
/usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook.rb:139:in
`load_recipe'
        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/compile.rb:124:in
`load_recipes'
        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/compile.rb:110:in
`each'
        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/compile.rb:110:in
`load_recipes'
        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/client.rb:378:in
`converge'
        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/client.rb:82:in
`run'
        from
/usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application/client.rb:186:in
`run_application'
        from
/usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application/client.rb:178:in
`loop'
        from
/usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application/client.rb:178:in
`run_application'
        from
/usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application.rb:57:in `run'
        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/bin/chef-client:26
        from /usr/bin/chef-client:19:in `load'
        from /usr/bin/chef-client:19



 tail /var/log/chef/client.log
[Tue, 25 Aug 2009 22:44:21 +0000] DEBUG: Loading Recipe hadoop
[Tue, 25 Aug 2009 22:44:21 +0000] DEBUG: Found recipe default in cookbook
hadoop
[Tue, 25 Aug 2009 22:44:21 +0000] DEBUG: Loading Recipe java via 
include_recipe



Archive powered by MHonArc 2.6.16.

§