Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Cron Cookbook cannot overwrite existing cron tasks #219

Open
newfylox opened this issue Nov 10, 2021 · 0 comments
Open

Custom Cron Cookbook cannot overwrite existing cron tasks #219

newfylox opened this issue Nov 10, 2021 · 0 comments

Comments

@newfylox
Copy link

When using custom-cron cookbook for the first time, it creates tasks successfully. But when editing an existing tasks, it fails saying something like this

ERROR: cron[custom_cron_Rake Tasks] (cron::default line 75) had an error: Chef::Exceptions::Cron: Error updating state of custom_cron_Rake Tasks, exit: 1

which points to this

Don't know if it's related, but in your cron recipes, it calls node['dna']['instance_role'] but in the server, there's an attribute instance_type

The way I handle this for now is to upload/apply empty crons default[:custom_crons] = [] and then reupload/apply my modifications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant