1 Replies - 1889 Views - Last Post: 20 December 2010 - 01:45 PM Rate Topic: -----

#1 Guest_Ruta*


Reputation:

Errors in Chef tutorial

Posted 06 December 2010 - 08:54 AM

I am referring this url for chef-solo installation.

http://brainspl.at/a...g-with-chef-101

I have reached the final step

However i am getting this error:
DEBUG: Building node object for
DEBUG: Extracting run list from JSON attributes provided on command line
INFO: Setting the run_list to ["main"] from JSON
DEBUG: Applying attributes from json file
DEBUG: Platform is windows version 6.1.7600
INFO: Starting Chef Run (Version 0.9.12)
DEBUG: Loading Recipe main via include_recipe
ERROR: Running exception handlers
ERROR: Exception handlers complete
DEBUG: Re-raising exception: Chef::Exceptions::CookbookNotFound - Cookbook main
not found
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/cookbook/cookbook
collection.rb:38:in `initialize'
c:/Ruby187/lib/ruby/gems/1.8/gems/extlib-0.9.15/lib/extlib/mash.rb:31:in `cal
'
c:/Ruby187/lib/ruby/gems/1.8/gems/extlib-0.9.15/lib/extlib/mash.rb:31:in `def
ult'
c:/Ruby187/lib/ruby/gems/1.8/gems/extlib-0.9.15/lib/extlib/mash.rb:31:in `def
ult'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/language_
nclude_recipe.rb:39:in `[]'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/language_
nclude_recipe.rb:39:in `include_recipe'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/language_
nclude_recipe.rb:27:in `each'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/language_
nclude_recipe.rb:27:in `include_recipe'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:
4:in `load'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:
1:in `each'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:
1:in `load'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:
5:in `initialize'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:155:i
`new'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:155:i
`run'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/sol
.rb:190:in `run_application'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/sol
.rb:181:in `loop'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/sol
.rb:181:in `run_application'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application.rb:
2:in `run'
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/chef-solo:25
c:/Ruby187/bin/chef-solo:19:in `load'
c:/Ruby187/bin/chef-solo:19
c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/cookbook/cookbook
collection.rb:38:in `initialize': Cookbook main not found (Chef::Exceptions::Co
kbookNotFound)
from c:/Ruby187/lib/ruby/gems/1.8/gems/extlib-0.9.15/lib/extlib/mash.rb
31:in `call'
from c:/Ruby187/lib/ruby/gems/1.8/gems/extlib-0.9.15/lib/extlib/mash.rb
31:in `default'
from c:/Ruby187/lib/ruby/gems/1.8/gems/extlib-0.9.15/lib/extlib/mash.rb
31:in `default'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixi
/language_include_recipe.rb:39:in `[]'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixi
/language_include_recipe.rb:39:in `include_recipe'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixi
/language_include_recipe.rb:27:in `each'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixi
/language_include_recipe.rb:27:in `include_recipe'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_
ontext.rb:94:in `load'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_
ontext.rb:91:in `each'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_
ontext.rb:91:in `load'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_
ontext.rb:55:in `initialize'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/clie
t.rb:155:in `new'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/clie
t.rb:155:in `run'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/appl
cation/solo.rb:190:in `run_application'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/appl
cation/solo.rb:181:in `loop'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/appl
cation/solo.rb:181:in `run_application'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/appl
cation.rb:62:in `run'
from c:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/chef-solo:25
from c:/Ruby187/bin/chef-solo:19:in `load'
from c:/Ruby187/bin/chef-solo:19

Is This A Good Question/Topic? 0

Replies To: Errors in Chef tutorial

#2 gilsal  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 38
  • Joined: 11-October 10

Re: Errors in Chef tutorial

Posted 20 December 2010 - 01:45 PM

I am not a professional at Ruby on Rails and I do not mean to state the seemingly obvious or mean to offend but I found when reading error messages the point of failure is usually just before the console/machine begins to spew data which is somewhat understandable. It will usually tell you or clue you in the issue just before this point. From this it does state

"DEBUG: Re-raising exception: Chef::Exceptions::CookbookNotFound - Cookbook main not found"

as wella as

"collection.rb:38:in `initialize': Cookbook main not found (Chef::Exceptions::CokbookNotFound)"

Is this a gem? If so you may have installed a partially corrupted or incomplete gem. I would try reinstalling. Also from the date of the article you provided this tutorial was made in January 2009 It could be an issue with the version the tutorial was created in versus the version you are currently running. As I write this I realized the latter may not be an issue since you were able to complete most the tutorial before the final step. Hope this helps if not and you find a solution would love to hear your solution. Sorry I couldn't be of more help.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1