Skip to content

Instantly share code, notes, and snippets.

@pdale
Created February 22, 2012 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdale/1885934 to your computer and use it in GitHub Desktop.
Save pdale/1885934 to your computer and use it in GitHub Desktop.
undefined method [] error
ec2-50-19-183-222.compute-1.amazonaws.com [Wed, 22 Feb 2012 16:32:27 +0000] WARN: Missing gem 'right_aws'
ec2-50-19-183-222.compute-1.amazonaws.com [Wed, 22 Feb 2012 16:32:28 +0000] INFO: Processing gem_package[right_aws] action install (aws::default line 20)
ec2-50-19-183-222.compute-1.amazonaws.com [Wed, 22 Feb 2012 16:32:31 +0000] INFO: gem_package[right_aws] installed version 2.1.0
ec2-50-19-183-222.compute-1.amazonaws.com [Wed, 22 Feb 2012 16:32:32 +0000] ERROR: Running exception handlers
ec2-50-19-183-222.compute-1.amazonaws.com [Wed, 22 Feb 2012 16:32:33 +0000] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
ec2-50-19-183-222.compute-1.amazonaws.com [Wed, 22 Feb 2012 16:32:33 +0000] ERROR: Exception handlers complete
ec2-50-19-183-222.compute-1.amazonaws.com [Wed, 22 Feb 2012 16:32:33 +0000] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
ec2-50-19-183-222.compute-1.amazonaws.com [Wed, 22 Feb 2012 16:32:33 +0000] FATAL: NoMethodError: undefined method `[]' for nil:NilClass
----
Stacktrace.
Generated at Wed Feb 22 16:32:33 +0000 2012
NoMethodError: undefined method `[]' for nil:NilClass
/var/chef/cache/cookbooks/gateway-config/recipes/default.rb:14:in `from_file'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/cookbook_version.rb:578:in `load_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/run_context.rb:72:in `load'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/run_context.rb:69:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/run_context.rb:69:in `load'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:195:in `setup_run_context'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:159:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:239:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:in `loop'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-client:26
/usr/bin/chef-client:19:in `load'
/usr/bin/chef-client:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment