* Re: cron running jobs twice?
2000-10-26 2:25 cron running jobs twice? Chris Adams
@ 2000-10-26 5:31 ` Gary Schmidt
2000-10-26 13:54 ` Chris Adams
2000-10-30 9:42 ` qlos
2000-10-26 6:20 ` Adam Price
` (2 subsequent siblings)
3 siblings, 2 replies; 9+ messages in thread
From: Gary Schmidt @ 2000-10-26 5:31 UTC (permalink / raw)
Chris Adams wrote:
>
> I had something odd happen last week on a system running Digital Unix
> 4.0F, and I'm wondering if others have seen it.
>
> Basically, all jobs that were scheduled for exactly midnight were run
> twice. It took me several days to realize that it had to be cron itself
> (I have a couple of system cleanup scripts that I wrote that were run at
> midnight or hourly and I searched through them to see if they had a
> problem).
>
> I logged in on the console and restarted cron, and it seems to be fine
> now.
>
> Anybody know what might cause this?
Just a guess, Daylight Savings Change? Or are you ntp synchronising and
they glitched?
Cheers,
Gary B-)
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: cron running jobs twice?
2000-10-26 5:31 ` Gary Schmidt
@ 2000-10-26 13:54 ` Chris Adams
2000-10-30 9:42 ` qlos
1 sibling, 0 replies; 9+ messages in thread
From: Chris Adams @ 2000-10-26 13:54 UTC (permalink / raw)
Once upon a time, Gary Schmidt <gschmidt@oz.quest.com> said:
>Just a guess, Daylight Savings Change? Or are you ntp synchronising and
>they glitched?
The daylight savings time change isn't until this coming Sunday around
here. Also, NTP is running on this server. It happened every night for
a week or more before I restarted cron.
Weird.
--
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: cron running jobs twice?
2000-10-26 5:31 ` Gary Schmidt
2000-10-26 13:54 ` Chris Adams
@ 2000-10-30 9:42 ` qlos
1 sibling, 0 replies; 9+ messages in thread
From: qlos @ 2000-10-30 9:42 UTC (permalink / raw)
Our cron also froke out !! It happened during last Daylight Saving
Change. He failed all jobs he supposed to run since time change.
Do you really think that Daylight Saving Change is a reason ???
Any comments appreciated very much !!!!
thanx
Qlos
> Just a guess, Daylight Savings Change? Or are you ntp synchronising
> and they glitched?
>
> Cheers,
> Gary B-)
>
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: cron running jobs twice?
2000-10-26 2:25 cron running jobs twice? Chris Adams
2000-10-26 5:31 ` Gary Schmidt
@ 2000-10-26 6:20 ` Adam Price
2000-10-26 13:56 ` Chris Adams
2000-10-26 13:22 ` agipe
2000-11-23 5:00 ` baligeko
3 siblings, 1 reply; 9+ messages in thread
From: Adam Price @ 2000-10-26 6:20 UTC (permalink / raw)
"Chris Adams" <cmadams@HiWAAY.net> wrote in message news:svf5hmku5gb880@corp.supernews.com...
> I had something odd happen last week on a system running Digital Unix
> 4.0F, and I'm wondering if others have seen it.
>
> Basically, all jobs that were scheduled for exactly midnight were run
> twice. It took me several days to realize that it had to be cron itself
> (I have a couple of system cleanup scripts that I wrote that were run at
> midnight or hourly and I searched through them to see if they had a
> problem).
>
> I logged in on the console and restarted cron, and it seems to be fine
> now.
>
Bug in cron? Have you applied the latest patch kit for 4.0F? It seems
that this behaviour was one of the ones fixed by the last 'cron' patch we
got from a consolidated kit(can't remember the details, someone else
did the patch). The details are that cron forks a process
then tries to exec it, the exec fails and for some reason the forked cron
doesn't catch the error and die, but continues to run as a cron daemon.
At this point you have 2 crons and so all jobs run twice.
This seems to have gone away for us since the patch, so maybe you
should look into it?
Adam
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: cron running jobs twice?
2000-10-26 6:20 ` Adam Price
@ 2000-10-26 13:56 ` Chris Adams
0 siblings, 0 replies; 9+ messages in thread
From: Chris Adams @ 2000-10-26 13:56 UTC (permalink / raw)
Once upon a time, Adam Price <adam@pappnase.demon.co.uk> said:
>Bug in cron? Have you applied the latest patch kit for 4.0F? It seems
>that this behaviour was one of the ones fixed by the last 'cron' patch we
>got from a consolidated kit(can't remember the details, someone else
I may be behind. I'll have to check on that.
>did the patch). The details are that cron forks a process
>then tries to exec it, the exec fails and for some reason the forked cron
>doesn't catch the error and die, but continues to run as a cron daemon.
>At this point you have 2 crons and so all jobs run twice.
>This seems to have gone away for us since the patch, so maybe you
>should look into it?
This wouldn't be what was causing it, because I didn't have two crons (I
though about that). There was just the one. And it didn't run all jobs
twice, just those scheduled to run at exactly midnight. One job that is
scheduled to run hourly at the top of the hour ran 25 times each day; it
ran twice at 00:00 and then once every hour the rest of the day.
--
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: cron running jobs twice?
2000-10-26 2:25 cron running jobs twice? Chris Adams
2000-10-26 5:31 ` Gary Schmidt
2000-10-26 6:20 ` Adam Price
@ 2000-10-26 13:22 ` agipe
2000-11-23 5:00 ` baligeko
3 siblings, 0 replies; 9+ messages in thread
From: agipe @ 2000-10-26 13:22 UTC (permalink / raw)
In article <svf5hmku5gb880@corp.supernews.com>,
cmadams@HiWAAY.net (Chris Adams) wrote:
> I had something odd happen last week on a system running Digital Unix
> 4.0F, and I'm wondering if others have seen it.
>
> Basically, all jobs that were scheduled for exactly midnight were run
> twice. It took me several days to realize that it had to be cron
itself
> (I have a couple of system cleanup scripts that I wrote that were run
at
> midnight or hourly and I searched through them to see if they had a
> problem).
>
> I logged in on the console and restarted cron, and it seems to be fine
> now.
>
> Anybody know what might cause this?
> --
> Chris Adams <cmadams@hiwaay.net>
> Systems and Network Administrator - HiWAAY Internet Services
> I don't speak for anybody but myself - that's enough trouble.
>
I had this happen to me once. There were TWO cron daemons running on
the system! Once I deleted one (the newest one, leaving the older one
to run), everything was fine.
My guess is that one of the administrators (both crons were running as
root) did a "cron" instead of "crontab".
AG
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: cron running jobs twice?
2000-10-26 2:25 cron running jobs twice? Chris Adams
` (2 preceding siblings ...)
2000-10-26 13:22 ` agipe
@ 2000-11-23 5:00 ` baligeko
2000-11-28 5:00 ` jpn
3 siblings, 1 reply; 9+ messages in thread
From: baligeko @ 2000-11-23 5:00 UTC (permalink / raw)
I had the same problem,
and after investigation,
I found that the ROOT crontab was running 'rdate'
at exactly the same time as my crontab job.
If rdate puts the time back brutally a few seconds,
then my cron job gets runs twice.
(Apparently ntpd will not provoke this,
as there are no time jumps,
just the slowing down or speeding up of time
until the two machines are in sync)
Check to see if this is your situation,
Cheers,
Paul Kindervater
In article <svf5hmku5gb880@corp.supernews.com>,
cmadams@HiWAAY.net (Chris Adams) wrote:
> I had something odd happen last week on a system running Digital Unix
> 4.0F, and I'm wondering if others have seen it.
>
> Basically, all jobs that were scheduled for exactly midnight were run
> twice. It took me several days to realize that it had to be cron
itself
> (I have a couple of system cleanup scripts that I wrote that were run
at
> midnight or hourly and I searched through them to see if they had a
> problem).
>
> I logged in on the console and restarted cron, and it seems to be fine
> now.
>
> Anybody know what might cause this?
> --
> Chris Adams <cmadams@hiwaay.net>
> Systems and Network Administrator - HiWAAY Internet Services
> I don't speak for anybody but myself - that's enough trouble.
>
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: cron running jobs twice?
2000-11-23 5:00 ` baligeko
@ 2000-11-28 5:00 ` jpn
0 siblings, 0 replies; 9+ messages in thread
From: jpn @ 2000-11-28 5:00 UTC (permalink / raw)
There is a 4.0f patch kit 3 & 4 have cron issues. There is a hot fix
available from compaq now. I reccomend wating 45 days for Patch kit 5
though.
Jason Noel
<baligeko@my-deja.com> wrote in message news:8vjj5n$kgf$1@nnrp1.deja.com...
> I had the same problem,
> and after investigation,
> I found that the ROOT crontab was running 'rdate'
> at exactly the same time as my crontab job.
> If rdate puts the time back brutally a few seconds,
> then my cron job gets runs twice.
>
> (Apparently ntpd will not provoke this,
> as there are no time jumps,
> just the slowing down or speeding up of time
> until the two machines are in sync)
>
> Check to see if this is your situation,
>
> Cheers,
> Paul Kindervater
>
> In article <svf5hmku5gb880@corp.supernews.com>,
> cmadams@HiWAAY.net (Chris Adams) wrote:
> > I had something odd happen last week on a system running Digital Unix
> > 4.0F, and I'm wondering if others have seen it.
> >
> > Basically, all jobs that were scheduled for exactly midnight were run
> > twice. It took me several days to realize that it had to be cron
> itself
> > (I have a couple of system cleanup scripts that I wrote that were run
> at
> > midnight or hourly and I searched through them to see if they had a
> > problem).
> >
> > I logged in on the console and restarted cron, and it seems to be fine
> > now.
> >
> > Anybody know what might cause this?
> > --
> > Chris Adams <cmadams@hiwaay.net>
> > Systems and Network Administrator - HiWAAY Internet Services
> > I don't speak for anybody but myself - that's enough trouble.
> >
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>
^ permalink raw reply [flat|nested] 9+ messages in thread