engineyard / ey-cookbooks-stable-v6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Cron Cookbook cannot overwrite existing cron tasks

newfylox opened this issue · comments

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