cron.d running but not executing tasks - no simple solution.
I have a network of 8 identical servers, on each of these servers lies an identical file structure, and on each identical file structure lies an identical cron schedule.
The cron on these servers is very simple.
# crontab -e
*/1 * * * * sh /home/sync.sh
*/15 * * * * root rdate -s nist.expertsmi.com && /sbin/hwclock --systohc
The first is a script to sync the content on each server with its closest partner, kind of like a domino effect. The second is a simple task to keep the clocks on each of these servers synced.
I can do either one of these tasks manually and they run perfectly fine.
Here is what I have already done to try to resolve this problem.
- SELinux is disabled
- No Permission Issues in .allow or .deny
- executed " restorecon -R /usr/sbin/crond /etc/cron* " and restarted cron
- No mail in root
- Restarted Cron
- Rebooted the Server
# nano /var/logs/cron
Feb 2 12:10:48 c05 crond[10972]: (CRON) STARTUP (V5.0)
Feb 2 12:11:01 c05 crond[11028]: (root) CMD (sh /home/sync.sh)
Feb 2 12:12:01 c05 crond[11238]: (root) CMD (sh /home/sync.sh)
Feb 2 12:13:01 c05 crond[11590]: (root) CMD (sh /home/sync.sh)
Feb 2 12:14:01 c05 crond[11814]: (root) CMD (sh /home/sync.sh)
Feb 2 12:15:01 c05 crond[12163]: (root) CMD (root rdate -s nist.expertsmi.com && /sbin/hwclock --systohc)
Feb 2 12:15:01 c05 crond[12167]: (root) CMD (sh /home/sync.sh)
Feb 2 12:16:01 c05 crond[12424]: (root) CMD (sh /home/sync.sh)
Feb 2 12:17:01 c05 crond[12643]: (root) CMD (sh /home/sync.sh)
Feb 2 12:18:01 c05 crond[12916]: (root) CMD (sh /home/sync.sh)
Feb 2 12:19:01 c05 crond[13168]: (root) CMD (sh /home/sync.sh)
According to logs these crons at least appear to be running just fine, however they are not. I am banging my head here trying to resolve this and it seems nothing is working.
The most common issues I have found are path related, but keep in mind that these exact same tasks run flawlessly on 7 other servers, all of which are identical.
Any help here would be greatly appreciated, OS is CentOS 5.0
Thanks
|