
Originally Posted by
rmarquez
Hi,
For some reason, the cron jobs I have set up for amcheck and amdump seem to have stopped working. I'm wondering if it's the syntax of the crontab or if something on the (centos) linux box I'm working with has an issue.
I set these crontab entries as root when the amandabackup's crontab stopped working:
# amanda check config for issues
0 16 * * * su amandabackup -c /usr/sbin/amcheck -m adready.local
# amanda run backup (will automatically make full and incremental)
30 16 * * * su amandabackup -c /usr/sbin/amdump adready.local
original crontab entries as amandabackup:
0 18 * * * /usr/sbin/amcheck -m adready.local
15 0 * * * /usr/sbin/amdump adready.local
The last attempted runs had this result from /var/log/cron:
Feb 26 18:00:01 hqadmin02 crond[13978]: CRON (amandabackup) ERROR: failed to open PAM security session: Bad file descriptor
Feb 26 18:00:01 hqadmin02 crond[13978]: CRON (amandabackup) ERROR: cannot set security context
Feb 27 00:15:01 hqadmin02 crond[3764]: CRON (amandabackup) ERROR: failed to open PAM security session: Bad file descriptor
Feb 27 00:15:01 hqadmin02 crond[3764]: CRON (amandabackup) ERROR: cannot set security context
Feb 27 18:00:02 hqadmin02 crond[2476]: CRON (amandabackup) ERROR: failed to open PAM security session: Bad file descriptor
Feb 27 18:00:02 hqadmin02 crond[2476]: CRON (amandabackup) ERROR: cannot set security context
Feb 28 00:15:01 hqadmin02 crond[24572]: CRON (amandabackup) ERROR: failed to open PAM security session: Bad file descriptor
Feb 28 00:15:01 hqadmin02 crond[24572]: CRON (amandabackup) ERROR: cannot set security context
If I ps aux | grep amdump, there's no instance of it, so I'm getting the impression that something is wrong with the cron syntax.