cron jobs not running during certain window

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat cron jobs not running during certain window
# 1  
Old 10-05-2011
Question cron jobs not running during certain window

Hi unix.com,

I'm currently experiencing a problem on one of our servers at work where between the hours of approx. 1:00 AM and 2:[2-4]0 AM no jobs scheduled through cron run.

Now, in the cron logs I do see that all jobs are launched and I'm not seeing any errors anywhere - but - none of the jobs do what they're supposed to do and no output is generated in the job specific logs.

Our Linux admin setup a job which simply spits out the date into a file every 5 minutes and as expected, the cron log shows that the job runs, but there is no date in output file for his test job between 1 and 2:40 AM.

Code:
1,6,11,16,21,26,31,36,41,46,51,56 * * * * date >>/tmp/data.log

Code:
from cron log:

...
Oct  5 01:01:01 host crond[27190]: (user) CMD (date >>/tmp/data.log)
Oct  5 01:06:14 host crond[30807]: (user) CMD (date >>/tmp/data.log)
Oct  5 01:11:02 host crond[31559]: (user) CMD (date >>/tmp/data.log)
Oct  5 01:16:01 host crond[31956]: (user) CMD (date >>/tmp/data.log)
Oct  5 01:21:01 host crond[32390]: (user) CMD (date >>/tmp/data.log)
Oct  5 01:26:01 host crond[324]: (user) CMD (date >>/tmp/data.log)
Oct  5 01:31:01 host crond[718]: (user) CMD (date >>/tmp/data.log)
Oct  5 01:36:01 host crond[1152]: (user) CMD (date >>/tmp/data.log)
Oct  5 01:41:13 host crond[1528]: (user) CMD (date >>/tmp/data.log)
Oct  5 01:46:02 host crond[1902]: (user) CMD (date >>/tmp/data.log)
Oct  5 01:51:15 host crond[2384]: (user) CMD (date >>/tmp/data.log)
Oct  5 01:56:08 host crond[2779]: (user) CMD (date >>/tmp/data.log)
Oct  5 02:01:01 host crond[3161]: (user) CMD (date >>/tmp/data.log)
Oct  5 02:06:03 host crond[3690]: (user) CMD (date >>/tmp/data.log)
Oct  5 02:11:22 host crond[4222]: (user) CMD (date >>/tmp/data.log)
Oct  5 02:16:36 host crond[4695]: (user) CMD (date >>/tmp/data.log)
Oct  5 02:21:02 host crond[5227]: (user) CMD (date >>/tmp/data.log)
Oct  5 02:26:01 host crond[5667]: (user) CMD (date >>/tmp/data.log)
Oct  5 02:31:01 host crond[6069]: (user) CMD (date >>/tmp/data.log)
Oct  5 02:36:01 host crond[6708]: (user) CMD (date >>/tmp/data.log)
Oct  5 02:41:01 host crond[10208]: (user) CMD (date >>/tmp/data.log)
Oct  5 02:46:01 host crond[21524]: (user) CMD (date >>/tmp/data.log)
Oct  5 02:51:01 host crond[23941]: (user) CMD (date >>/tmp/data.log)
...

Code:
from /tmp/data.log:

...
Wed Oct  5 00:46:01 EDT 2011
Wed Oct  5 00:51:01 EDT 2011
Wed Oct  5 00:56:01 EDT 2011
Wed Oct  5 01:01:01 EDT 2011
Wed Oct  5 02:40:28 EDT 2011
Wed Oct  5 02:40:40 EDT 2011
Wed Oct  5 02:40:46 EDT 2011
Wed Oct  5 02:40:48 EDT 2011
...

This problem appears to affect all cron jobs.

The server is running RHEL release 4 Nahant Update 8

Code:
[user@host/]$ lsb_release -a
LSB Version:    :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID: RedHatEnterpriseAS
Description:    Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
Release:        4
Codename:       NahantUpdate8

Possibly worth mentioning the server hasn't been rebooted in >1100 days.

Code:
[user@host/]$ uptime
 12:34:03 up 1100 days, 22:15,  6 users,  load average: 15.23, 12.93, 11.73

Apparently this has been happening for a long time (>1 year?) but was never reported.

I'll be signing in to this box around 1 AM tonight to see if anything peculiar is happening.

Hope that's enough info to get started.

Really appreciate any suggestions.

Last edited by tunachamp; 10-05-2011 at 02:02 PM.. Reason: formatting
# 2  
Old 10-06-2011
While your logging in at that time see if you can run the job manually too if this works.

And you might want to set 2> to a file to see if any error output is going on.
# 3  
Old 10-14-2011
It appears that the system is nearly grinding to a halt during this window which is why the jobs don't run.

Now to find out why...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Cron jobs not running on time

on linux redhat, ubuntu systems, what reason would there be for a cron job not running at exactly the time it was scheduled to run, everytime? meaning, if i put something in cron to run every 120 seconds (2 minutes), why is it that some times, i find that cron would sometimes run the job a few... (1 Reply)
Discussion started by: SkySmart
1 Replies

2. Shell Programming and Scripting

Running Cron -- same time jobs

Hi Is it possible to run different cron jobs at the same time? It appears that when I run ones at 15 min granularity that they may prevent ones running later in the day. Should crons run at same time have impact on one another? (4 Replies)
Discussion started by: rob171171
4 Replies

3. Solaris

cron jobs not running from sudo

Hi, I am logging into sun solaris unix box as asood user.Then sudo su_appssu and scheduled my cron jobs.The user appssu is there In the /etc/cron.d/cron.allow . I do not understand why the jobs are not kicking by cron. Do I need to enter directly as appssu ? Regards Megh (10 Replies)
Discussion started by: megh
10 Replies

4. Shell Programming and Scripting

Cron Jobs Still Running In Backgound

Hi guys, I've got a few cron jobs ... porblem is they are running as intended but some of them just tend to stay there in sleeping mode for quite some time ... sometimes even days ... for example when i run the ps command i can see that some are still there although the same script had run many... (6 Replies)
Discussion started by: King Nothing
6 Replies

5. OS X (Apple)

cron jobs running, but not...

I have a cron job set up to run a script on my Leopard Server every night. The job is set up as root, and when I run the script manually, it runs fine. The problem is that it is not doing anything when it runs at night. In the cron log, it says it ran, but did not output the results to the file it... (3 Replies)
Discussion started by: yodomino6
3 Replies

6. UNIX for Dummies Questions & Answers

Error while running the script through cron jobs .Please help me on this

Hi Everyone, I have written a korn shell script to shutdown my documentum docbase server and to restart it automatically on a weekly basis. My script is, When i execute this script manually, i was able to execute it successfully without any issues. I have scheduled this script in cronjob... (1 Reply)
Discussion started by: Sheethal
1 Replies

7. UNIX for Advanced & Expert Users

Seriously, cron jobs not running.

Before I get a million and one suggestions on all the things that could be wrong with my scripts - let me assure everyone that this is not the issue. i have a RH EL ES4 server that stopped running all cron jobs except hourly, daily, weekly. This has affected all users including root. No... (7 Replies)
Discussion started by: bill_k_Lopez
7 Replies

8. UNIX for Dummies Questions & Answers

How to tell which cron jobs are still running?

I have some cron jobs that are taking a might long time. That is because they are screen scrapers and I inserted an extra long pause (10 minutes between screens) to be extra polite and minimize network traffic. I was going to have them run once a day but now I'm thinking once a week. How do I... (2 Replies)
Discussion started by: siegfried
2 Replies

9. UNIX for Dummies Questions & Answers

running cron jobs

I would like to add a job using cron. I have following questions - cron jobs are launched using what login-id e.g. is the script launced using my login-id - In which directory would the cron jobs be launched ? - where do the environment variables required in the script being lauched come... (3 Replies)
Discussion started by: sharanbr
3 Replies

10. Shell Programming and Scripting

running cron jobs

Hi, I'm new to cron and I would like to know if this cron entry looks right. Every monday to friday, at 9:15 AM execute the script called done_att.sh Every monday to friday, at 3:15 PM execute the script called start_att.sh 15 09 * * /u54/jobs/done_att.sh 45 15 * *... (1 Reply)
Discussion started by: ted
1 Replies
Login or Register to Ask a Question