Created
November 8, 2016 11:46
-
-
Save pmdarrow/847aed9fc26023705c8ef616c342419e to your computer and use it in GitHub Desktop.
Chef cron error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/fh-dynoman/recipes/default.rb | |
================================================================================ | |
NoMethodError | |
------------- | |
undefined method `time' for Chef::Resource::Cron | |
Cookbook Trace: | |
--------------- | |
/var/chef/cache/cookbooks/fh-dynoman/recipes/default.rb:65:in `block in from_file' | |
/var/chef/cache/cookbooks/fh-dynoman/recipes/default.rb:62:in `from_file' | |
Relevant File Content: | |
---------------------- | |
/var/chef/cache/cookbooks/fh-dynoman/recipes/default.rb: | |
58: end | |
59: | |
60: # Temporary workaround for issue in npm 2 where temp files are not cleaned up. | |
61: # Can be removed when we upgrade to npm 3. | |
62: cron 'Cleanup npm temp files' do | |
63: user 'root' | |
64: command 'for i in /opt/feedhenry/fh-dynoman/data/*; do /usr/sbin/tmpreaper --mtime 3d "$i/tmp/" > /dev/null 2>&1; done' | |
65>> time :midnight | |
66: end | |
67: | |
68: cookbook_file "/etc/logrotate.d/feedhenry-messages" do | |
69: source "feedhenry-messages" | |
70: owner "root" | |
71: group "root" | |
72: mode "0644" | |
73: end | |
74: | |
Running handlers: | |
[2016-11-07T20:59:16+00:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2016-11-07T20:59:16+00:00] ERROR: Exception handlers complete | |
[2016-11-07T20:59:16+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
Chef Client failed. 5 resources updated in 195.404130049 seconds | |
[2016-11-07T20:59:16+00:00] ERROR: undefined method `time' for Chef::Resource::Cron | |
[2016-11-07T20:59:16+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) | |
WARN: Resource.dsl_name is deprecated and will be removed in Chef 13. Use resource_name instead. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment