cancel
Showing results for 
Search instead for 
Did you mean: 

Clock Daemon Job 22583

SOLVED
Go to solution
shikhar_1
Regular Advisor

Clock Daemon Job 22583

Hi,

 

/usr/sbin/cron(1M) Clock Daemon Job 22583 Cron command of root with pid 22583 failed (rc = 1)

Can anyone let me know what is this error and how to resolve this issue?

 I have checked and found cron daemon is running.

 

#-> ps -ef | grep -i cron
    root  3139     1  0  Jul 16  ?         1:55 /usr/sbin/cron
    root   391 28273  1 18:25:01 pts/0     0:00 grep -i cron

2 REPLIES
Bill Hassell
Honored Contributor
Solution

Re: Clock Daemon Job 22583

cron simply runs jobs. If the job or script returns a non-zero value, cron will log the return code (rc=1 in your case). There's nothing wrong with cron. The job it ran is the failure. Because cron is a batch process, all of your cron jobs should log their steps and results. The most common problem is not establishing the required environment for a cron job. The job may work when you are logged in, but cron does not login for your job -- all the settings you need for the job must be in the job itself.

 

Since cron only logs PID (process id) for the failure, you'll need to compare the list of jobs from crontab -l and try to match the failure with the actual job.



Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: cron errors in /var/adm/cron/log

>Since cron only logs PID (process id) for the failure

 

cron(1m) logs the time start and end AND the script in /var/adm/cron/log.

 

This topic has an example:

http://h30499.www3.hp.com/t5/System-Administration/Cron-log-showing-error-as-rc-1/m-p/5147074

> CMD: /home/abcd/script/auto_run_db_extract.ksh
> abcd 14909 c Fri Dec 12 19:01:00 CST 2008
< abcd 14909 c Fri Dec 12 19:02:08 CST 2008