| View previous topic :: View next topic |
| Author |
Message |
ssummer n00b

Joined: 09 Nov 2005 Posts: 3
|
Posted: Wed Nov 09, 2005 12:03 pm Post subject: fcron stops working |
|
|
I've had fcron installed for a number of months and everything was working fine. However, recently, it runs for a number of hours but then stops running any jobs (normally in the early hours of the morning, but at different times). The fcron process is still running but it just stops running the cron jobs. If I edit crontab file (crontab -e) and save it, fcron starts working again. The log files don't seem to show anything untoward and there are no stuck cronjobs left running or anything like that. It seems to happen much more frequently (daily) since the daylight saving time change - after which fcron started running things twice, so I restarted it.
I'm using version 2.0.2 on x86 platform (ie latest stable version in portage) and I don't recall it having been updated for some time.
Anyone else having these problems or know why it's happening?
Steve |
|
| Back to top |
|
 |
swanson Tux's lil' helper


Joined: 04 Jun 2004 Posts: 147 Location: Edinburgh, Scotland
|
Posted: Thu Nov 10, 2005 3:34 am Post subject: |
|
|
Is one of your cron jobs perhaps running ntpdate or similar which could be setting the clock (rather than skewing it like a NTP daemon)?
I had a similar problem with fcron when running date manually to correct the time by fifteen minutes backwards. Never got round to investigating the code but correcting the time forwards shouldn't cause the problem. _________________ Alan. |
|
| Back to top |
|
 |
ssummer n00b

Joined: 09 Nov 2005 Posts: 3
|
Posted: Thu Nov 10, 2005 7:06 am Post subject: |
|
|
| swanson wrote: | Is one of your cron jobs perhaps running ntpdate or similar which could be setting the clock (rather than skewing it like a NTP daemon)?
I had a similar problem with fcron when running date manually to correct the time by fifteen minutes backwards. Never got round to investigating the code but correcting the time forwards shouldn't cause the problem. |
No, no cron jobs should be changing the time, however I am running (and have always run) nptd to keep the time correct. Any large corrections (over 128ms) get logged and there weren't any before fcron stopped working. |
|
| Back to top |
|
 |
mryoung_fr n00b


Joined: 17 Jul 2004 Posts: 43 Location: Reims, France
|
Posted: Sat Nov 26, 2005 1:39 am Post subject: |
|
|
hi,
actually, i have the exact same problem here.
fcron stops doing what it should be ... and there's no reason why.
I didn't think about the ntp thingy, but it's true that i was using ntpd, and now i swapped to openntpd.
Maybe, it can be the issue.
have you find anything else about it ? _________________ .: mRyOuNg :. |
|
| Back to top |
|
 |
ssummer n00b

Joined: 09 Nov 2005 Posts: 3
|
Posted: Sat Nov 26, 2005 10:55 am Post subject: |
|
|
| mryoung_fr wrote: | hi,
actually, i have the exact same problem here.
fcron stops doing what it should be ... and there's no reason why.
I didn't think about the ntp thingy, but it's true that i was using ntpd, and now i swapped to openntpd.
Maybe, it can be the issue.
have you find anything else about it ? |
No I'm afraid not - I couldn't find anything amiss and it was so random, I just got fed up with it and uninstalled it and installed vixie-cron instead - I only have very basic cron needs and this has worked flawlessly so far - I just need something reliable.
Was very strange though, fcron was working fine for months up until around the last daylight savings change and then it started playing up.
Steve |
|
| Back to top |
|
 |
bunder Bodhisattva

Joined: 10 Apr 2004 Posts: 5937
|
Posted: Sun Nov 27, 2005 3:05 am Post subject: |
|
|
did you try restarting it from /etc/init.d ?
anything funny in /var/log/cron.log ? _________________
| Neddyseagoon wrote: | | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
| Back to top |
|
 |
mryoung_fr n00b


Joined: 17 Jul 2004 Posts: 43 Location: Reims, France
|
Posted: Sun Nov 27, 2005 3:10 am Post subject: |
|
|
restarting it from /etc/init.d/fcron corrects the problem too ... means, waking up the daemon, reactivate it...
but, nothing from cron.log. It just stops doing what it should ... _________________ .: mRyOuNg :. |
|
| Back to top |
|
 |
bunder Bodhisattva

Joined: 10 Apr 2004 Posts: 5937
|
Posted: Sun Nov 27, 2005 5:26 pm Post subject: |
|
|
what kind of jobs are you running? could a job be possibly stuck? _________________
| Neddyseagoon wrote: | | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
| Back to top |
|
 |
mryoung_fr n00b


Joined: 17 Jul 2004 Posts: 43 Location: Reims, France
|
Posted: Sun Nov 27, 2005 7:04 pm Post subject: |
|
|
for the moment, i don't have any addons jobs ... only the default crontab (gentoo run-crons) ... so, nothing unusual
about a stuck job, even if it happens sometimes, fcron tells the job is already running, so it can't execute the job, but in this case, it says something. In my case, it stops doing anything ... _________________ .: mRyOuNg :. |
|
| Back to top |
|
 |
edoceo n00b

Joined: 29 Nov 2005 Posts: 2 Location: Seattle, WA
|
Posted: Fri Dec 09, 2005 9:09 am Post subject: Possible Solution to fcron stopping jobs |
|
|
I saw these posts about fcron stopping, watched them for a while hoping someone would have an answer.
fcron is my favourite choice so I didn't want to switch to dcron or vixie (emotional, not logical reasons).
Anyhow I noticed that fcron started choking up after the clock was skewed more than -1s in a short amount of time.
I have a machine with a horribily bad clock that keeps jumping forward, by more than half a second some times.
I had one opportunity to catch this fluke and saw the logs right before fcron stopped.
15:21:11 ntpd adjusts the clock by -0.8s
15:23:22 fcron runs a job that fires every 3 minutes.
15:26:22 fcron runs that job again
15:26:35 ntpd adjusts the clock by -0.8
15:29:20 about one minute later ntpd adjusts the clock by -0.6
It's two seconds before fcron was going to fire the job, no more fcron entries after 16:29:20
Similar story in another log file.
So look at that, heavy (IMHO) adjustment in short time, right before a job seems to put fcron in an unknown state.
Perhaps interested parties can send the syslog output from their fcrons and ntpds into a single file to check, I just started.
I'm in profile 2005.1 using
sys-process/fcron-2.0.2
net-misc/openntpd-3.7_p1 (-selinux) +ssl[/quote] |
|
| Back to top |
|
 |
WhyteWolf Apprentice


Joined: 01 May 2002 Posts: 168 Location: Las Vegas
|
Posted: Tue Dec 13, 2005 3:08 am Post subject: |
|
|
after reading the above post I decided to look into fcron a bit more.
apartently this might be do to fcron being an older version ... I have upgraded my fcron to version 3.0.0 which was just released and comes with alot more features.
I havn't had issues since upgradeing it has only been a day tho ... will post again after xmas if things work still
Edit: 3 day later and it's still working .. _________________ Thomas Phipps
Linux User #180408 LFS User #1791 |
|
| Back to top |
|
 |
WhyteWolf Apprentice


Joined: 01 May 2002 Posts: 168 Location: Las Vegas
|
Posted: Thu Dec 22, 2005 4:37 pm Post subject: still working fine after the upgrade |
|
|
it's still working fine after the upgrade to 3.0.0
would defintly say this is something that was fixed upstream long ago
gentoo just needs to finaly let it's ebuild out of ~ _________________ Thomas Phipps
Linux User #180408 LFS User #1791 |
|
| Back to top |
|
 |
xayk n00b

Joined: 25 Mar 2004 Posts: 8 Location: Timisoara, Romania
|
Posted: Wed Jan 18, 2006 12:28 am Post subject: |
|
|
| try: fcrontab -z |
|
| Back to top |
|
 |
|