cron jobs not running

ummiH

New Member
I'm unable to get flexget to run from the crontab. I've tried:
  • forcing a reinstall of cron-daemon
  • forcing a reinstall of busybox
...but nothing doing. The crontab file is very simple:

humax# crontab -l
0 2 * * * /mod/sbin/anacron -s -d
*/30 * * * * /mod/bin/flexget --cron

Does anyone have any ideas?
 
Ah yes, I should have mentioned that - both the vanilla flexget command and the --cron one run fine from the command line.
 
Have you rebooted since you updated the cron file? Restarting the cron daemon should be enough too

Code:
humax# /mod/etc/init.d/S01crond stop
humax# /mod/etc/init.d/S01crond start

Alternatively you could run the cron daemon in debug mode:

Code:
humax# /mod/etc/init.d/S01crond stop
humax# /mod/sbin/crond -f -d 0

and wait up to 30 minutes to see what happens (or change the interval to 5 first).
 
Have you rebooted since you updated the cron file? Restarting the cron daemon should be enough too

Code:
humax# /mod/etc/init.d/S01crond stop
humax# /mod/etc/init.d/S01crond start

Alternatively you could run the cron daemon in debug mode:

Code:
humax# /mod/etc/init.d/S01crond stop
humax# /mod/sbin/crond -f -d 0

and wait up to 30 minutes to see what happens (or change the interval to 5 first).

OK, just used debug mode as you suggested, and change the interval to 1 min. It's not able to find config.yml, though I do have one in place and it is found when I run from the command line. Permissions, maybe? Again, any hints much appreciated.

Code:
humax# mod/etc/init.d/S01crond stop
humax# 
humax# /mod/sbin/crond -f -d 0
crond: crond (busybox 1.19.3) started, log level 0
crond: user:root entry:0 2 * * * /mod/sbin/anacron -s -d
100000000000000000000000000000000000000000000000000000000000
001000000000000000000000
11111111111111111111111111111111
111111111111
1111111
crond:  command:/mod/sbin/anacron -s -d
crond: user:root entry:*/1 * * * * /mod/bin/flexget --cron
111111111111111111111111111111111111111111111111111111111111
111111111111111111111111
11111111111111111111111111111111
111111111111
1111111
crond:  command:/mod/bin/flexget --cron
crond: wakeup dt=29
crond: file root:
crond:  line /mod/sbin/anacron -s -d
crond:  line /mod/bin/flexget --cron
crond:  job: 0 /mod/bin/flexget --cron
crond: child running /bin/sh
crond: USER root pid 11741 cmd /mod/bin/flexget --cron
crond: wakeup dt=10
`crond: wakeup dt=10
2012-05-01 20:36 INFO     manager                       Tried to read from: /mnt
/hd2/mod, /.flexget, /.config/flexget
2012-05-01 20:36 CRITICAL main                          Failed to find configura
tion file config.yml
crond: wakeup dt=10
 
An update...had a scout around the flexget site and found this: http://flexget.com/ticket/1363

So, I've changed my crontab to this:

Code:
humax# crontab -l
0 2 * * * /mod/sbin/anacron -s -d
*/1 * * * * /mod/bin/flexget -c /mod/.flexget/config.yml --cron

...and that did the trick. Thanks for the debug tip.
 
Back
Top