Skip to content

Instantly share code, notes, and snippets.

@daxroc
Created March 31, 2014 13:23
Show Gist options
  • Save daxroc/9892135 to your computer and use it in GitHub Desktop.
Save daxroc/9892135 to your computer and use it in GitHub Desktop.
================================================================================
Recipe Compile Error in /tmp/kitchen/cookbooks/iii/recipes/default.rb
================================================================================
NoMethodError
-------------
Undefined method or attribute `action' on `node'
Cookbook Trace:
---------------
/tmp/kitchen/cookbooks/build-essential/libraries/timing.rb:109:in `method_missing'
/tmp/kitchen/cookbooks/build-essential/recipes/_rhel.rb:31:in `block in from_file'
/tmp/kitchen/cookbooks/build-essential/libraries/timing.rb:104:in `instance_eval'
/tmp/kitchen/cookbooks/build-essential/libraries/timing.rb:104:in `evaluate'
/tmp/kitchen/cookbooks/build-essential/libraries/timing.rb:47:in `potentially_at_compile_time'
/tmp/kitchen/cookbooks/build-essential/recipes/_rhel.rb:20:in `from_file'
/tmp/kitchen/cookbooks/build-essential/recipes/default.rb:21:in `from_file'
/tmp/kitchen/cookbooks/iii/recipes/packages.rb:14:in `from_file'
/tmp/kitchen/cookbooks/iii/recipes/default.rb:12:in `from_file'
Relevant File Content:
----------------------
/tmp/kitchen/cookbooks/build-essential/libraries/timing.rb:
102:
103: def evaluate(&block)
104: instance_eval(&block)
105: end
106:
107: def method_missing(m, *args, &block)
108: resource = @recipe.send(m, *args, &block)
109>> actions = Array(resource.action)
110: resource.action(:nothing)
111:
112: actions.each do |action|
113: resource.run_action(action)
114: end
115: end
116: end
117: end
118: end
Running handlers:
[2014-03-31T13:16:48+00:00] ERROR: Running exception handlers
Running handlers complete
[2014-03-31T13:16:48+00:00] ERROR: Exception handlers complete
[2014-03-31T13:16:48+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.418256 seconds
[2014-03-31T13:16:48+00:00] ERROR: Undefined method or attribute `action' on `node'
[2014-03-31T13:16:48+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment