Skip to content

Instantly share code, notes, and snippets.

@notnmeyer
Created July 18, 2017 23:48
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 notnmeyer/3f89b0b4e2ea9559abf187c30216f214 to your computer and use it in GitHub Desktop.
Save notnmeyer/3f89b0b4e2ea9559abf187c30216f214 to your computer and use it in GitHub Desktop.
Compiling Cookbooks...
================================================================================
Recipe Compile Error in /tmp/kitchen/cache/cookbooks/hekad/recipes/default.rb
================================================================================
NoMethodError
-------------
undefined method `general purpose data acquisition and processing engine' for Custom resource systemd_service from cookbook systemd
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/systemd/libraries/mixin.rb:36:in `block in build_dsl'
/tmp/kitchen/cache/cookbooks/hekad/recipes/service.rb:40:in `block in from_file'
/tmp/kitchen/cache/cookbooks/hekad/recipes/service.rb:39:in `from_file'
/tmp/kitchen/cache/cookbooks/hekad/recipes/default.rb:20:in `block in from_file'
/tmp/kitchen/cache/cookbooks/hekad/recipes/default.rb:19:in `each'
/tmp/kitchen/cache/cookbooks/hekad/recipes/default.rb:19:in `from_file'
Relevant File Content:
----------------------
/tmp/kitchen/cache/cookbooks/systemd/libraries/mixin.rb:
29:
30: module ClassMethods
31: def build_dsl
32: define_method(:method_missing) do |name, *args, &blk|
33: if @context && respond_to?("#{@context}_#{name}".to_sym)
34: send("#{@context}_#{name}".to_sym, *args, &blk)
35: else
36>> super(*args, &blk)
37: end
38: end
39:
40: define_method(:respond_to_missing?) do |name, include_private|
41: if @context && respond_to?("#{@context}_#{name}".to_sym)
42: true
43: else
44: super(name, include_private)
45: end
System Info:
------------
chef_version=13.2.20
platform=centos
platform_version=7.2.1511
ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
program_name=chef-client worker: ppid=11549;start=23:37:54;
executable=/opt/chef/bin/chef-client
Running handlers:
[2017-07-18T23:37:59+00:00] ERROR: Running exception handlers
[2017-07-18T23:37:59+00:00] ERROR: Running exception handlers
Running handlers complete
[2017-07-18T23:37:59+00:00] ERROR: Exception handlers complete
[2017-07-18T23:37:59+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 05 seconds
[2017-07-18T23:37:59+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2017-07-18T23:37:59+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2017-07-18T23:37:59+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-07-18T23:37:59+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-07-18T23:37:59+00:00] ERROR: undefined method `general purpose data acquisition and processing engine' for Custom resource systemd_service from cookbook systemd
[2017-07-18T23:37:59+00:00] ERROR: undefined method `general purpose data acquisition and processing engine' for Custom resource systemd_service from cookbook systemd
[2017-07-18T23:37:59+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[2017-07-18T23:37:59+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Converge failed on instance <hekad-centos-72>. Please see .kitchen/logs/hekad-centos-72.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment