Skip to content

Instantly share code, notes, and snippets.

@chris
Created April 18, 2011 04:45
Show Gist options
  • Select an option

  • Save chris/924829 to your computer and use it in GitHub Desktop.

Select an option

Save chris/924829 to your computer and use it in GitHub Desktop.
EY chef deploy fail
[Sun, 17 Apr 2011 21:40:19 -0700] INFO: Starting Chef Solo Run
/etc/chef-custom/recipes/cookbooks/mongodb/attributes/recipe.rb:8:in `from_file': undefined method `[]' for nil:NilClass (NoMethodError)
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook.rb:73:in `load_attributes'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook.rb:71:in `each'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook.rb:71:in `load_attributes'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/compile.rb:61:in `load_attributes'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook_loader.rb:107:in `each'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook_loader.rb:106:in `each_value'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook_loader.rb:106:in `each'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/compile.rb:60:in `load_attributes'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/client.rb:342:in `converge'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/client.rb:96:in `run_solo'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/bin/chef-solo:94
from /usr/local/ey_resin/ruby/bin/chef-solo:19:in `load'
from /usr/local/ey_resin/ruby/bin/chef-solo:19
@jnak
Copy link

jnak commented Oct 8, 2011

Hi @chris,

I'm having the same issue even though I've never enabled MongoDB recipes in my cookbooks. I would appreciate if you could tell me if you had the same issue.

Cheers,
Julien

@chris
Copy link
Author

chris commented Oct 8, 2011

I honestly don't recall what I did, other than remove the MongoDB recipe from my cookbooks. If you don't need it, you can just remove it altogether. That or jump into the engineyard IRC room and ask there. Good luck.

@jnak
Copy link

jnak commented Oct 8, 2011

Ok, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment