Bug 477709 - Logwatch runs when system rebooted
Summary: Logwatch runs when system rebooted
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: cronie
Version: 10
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 487686 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-23 00:14 UTC by Ray Todd Stevens
Modified: 2009-03-02 14:12 UTC (History)
8 users (show)

Fixed In Version: 2.3-63.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-24 14:27:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
this is the cron log (7.82 KB, application/octet-stream)
2008-12-23 19:24 UTC, Ray Todd Stevens
no flags Details
cron log (7.82 KB, text/plain)
2008-12-23 19:26 UTC, Ray Todd Stevens
no flags Details

Description Ray Todd Stevens 2008-12-23 00:14:03 UTC
Description of problem:

Log watch not only runs at the scheduled time, but each time the server is rebooted.  OK this is not a biggee, but it is a difference from previous behavior.  


Version-Release number of selected component (if applicable):

FC10 as upgraded

How reproducible:

Each time a reboot

Steps to Reproduce:
1.  reboot
2.  read email

Comment 1 Ivana Varekova 2008-12-23 07:53:24 UTC
Reassign to cronie component this is not logwatch bug.

Comment 2 Marcela Mašláňová 2008-12-23 12:45:37 UTC
I suppose you have logwatch in daily jobs (/etc/cron.daily). If you restart your computer before all daily jobs runned, then they will start again after reboot.

Could you please attach log from /var/log/cron? Thank you.

Comment 3 Ray Todd Stevens 2008-12-23 19:22:10 UTC
Well all of the daily jobs should have run.   Daily basically runs a 4am or there abouts and this problem has been observed in the noon to 5pm window.

Comment 4 Ray Todd Stevens 2008-12-23 19:24:39 UTC
Created attachment 327765 [details]
this is the cron log

It is running daily, and I am not sure why.

PS this has happened more than once.

Comment 5 Ray Todd Stevens 2008-12-23 19:26:55 UTC
Created attachment 327766 [details]
cron log

Trying again.   It didn't seem to like text last time.

Comment 6 Ray Todd Stevens 2008-12-27 03:38:10 UTC
OK I think I have this one.

It is definately not rebooting that is doing this.

It is the reboot after I do a yum update.  and then only once.   The sessions that seem to be causing this problem, and I am getting it once per server are ones that are doing a bunch of specific updates including something to the crontabs.   Is it possible that installing an updated version of this file is messing with something?

Comment 7 Michal Jaegermann 2009-01-01 21:25:30 UTC
This is possibly the same as bug 472275. It looks like that when vixie-cron was replaced by cronie then a cooperation between cron and anacron was seriously broken.  Now anacron runs jobs completely disregarding if they were already perfomed or not and makes a mess.  This happens in F8 and F9 and F10.

Comment 8 Matt Castelein 2009-01-27 21:27:35 UTC
I am not sure what the trigger is, but my anacron occasionally runs cron.daily when it's already run for that day.  I notice it because I get two logwatch emails for the same day.

Comment 9 Ray Todd Stevens 2009-01-27 21:37:00 UTC
Yeah I have been having this problem.  Generally some times when I reboot.  Usually seems to be related to doing an update.   Interestingly enough I can reboot, do an update, and reboot.  Then the second and not the first reboot will trigger this.

Comment 10 Matt Castelein 2009-01-27 21:53:15 UTC
Yeah, I installed mgetty today and rebooted several times to make sure the stuff I put in /etc/event.d was all working.  I wasn't paying attention to the order per se, but I installed a few packages and rebooted a couple times.  logwatch (and cron.daily) ran as it was supposed to at 4 AM, then anacron ran it again at a quarter past 4 PM, and I got a second email.

Comment 11 Marcela Mašláňová 2009-01-28 13:32:21 UTC
I push update for testing. Please install crontabs and anacron from testing repository or go to the link below and let me know about possible problems. This solution is not nice, but it should be working. The bigger changes are planned for next release.

Comment 13 Fedora Update System 2009-01-29 23:08:29 UTC
anacron-2.3-66.fc10, crontabs-1.10-26.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update anacron crontabs'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-1163

Comment 14 Marcela Mašláňová 2009-01-30 14:05:25 UTC
Could someone verify this fix?

Comment 15 Matt Castelein 2009-01-30 14:27:46 UTC
(In reply to comment #14)
> Could someone verify this fix?

I will try it out.

Comment 16 Matt Castelein 2009-01-30 14:34:56 UTC
[root@arturo ~]# yum --enablerepo=updates-testing --disableplugin=protectbase update anacron crontabs
Setting up Update Process
No Packages marked for Update

Where are they?

Comment 17 Marcela Mašláňová 2009-01-30 14:47:04 UTC
Good question. Probably it takes more time to sync updates from bodhi to mirrors.

Comment 18 Matt Castelein 2009-01-30 15:06:01 UTC
(In reply to comment #17)
> Good question. Probably it takes more time to sync updates from bodhi to
> mirrors.

As soon as I get my hands on it, I will test it.

Comment 19 Ray Todd Stevens 2009-01-30 15:18:57 UTC
I think the real proof will be in several of us getting the update installed, and the doing at least a couple full yum updates and reboots and a couple more reboots over a period of a week or so.   After all this one seems to be a bit elusive in exactly when it occurs, or at least that seems to be my experience.

Comment 20 Marcela Mašláňová 2009-01-30 15:38:58 UTC
I agree. The update stays in testing until confirmation from more users.

Comment 21 Matt Castelein 2009-01-30 15:40:34 UTC
I can pretty much count on my system exhibiting this behavior after every reboot, so I'll start with that.  But I agree also, input from others is required.

Comment 22 Lucas Nealan 2009-01-31 23:28:08 UTC
I'm experiencing this problem on fc9, booted last night at 02:25 after swapping some memory. Anacron started cron.daily at 02:25, it then delayed and ran normally again from crond at 04:02. I have some long running backup scripts in cron.daily that wound up running concurrently.

The default 65 minute delay pushed the anacron started cron.daily to 03:30, then 000-delay.cron pushed it again 04:19. At the same time the crond cron.daily delayed until 04:50.

Jan 31 04:40:55 run-parts(/etc/cron.daily)[18685]: starting 850.backup
Jan 31 04:52:32 sizzo run-parts(/etc/cron.daily)[10450]: starting 850.backup

Will the updated package only be going into f10?

Comment 23 Marcela Mašláňová 2009-02-02 06:25:28 UTC
The update will be also for F-9.

Comment 24 Matt Castelein 2009-02-03 14:45:42 UTC
Installed anacron-2.3-66.fc10 and crontabs-1.10-26.fc10 on my system, and the behaviour of anacron after a reboot is normal.  The fix looks good from here.

Comment 25 Fedora Update System 2009-02-05 02:17:58 UTC
anacron-2.3-63.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing-newkey update anacron'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2009-1317

Comment 26 Ray Todd Stevens 2009-02-05 14:48:12 UTC
Seems to be fixed here too.  (FC10)

Comment 27 Ray Todd Stevens 2009-02-09 17:37:17 UTC
This bug is now occurring in Redhat Enterprise Server.

Comment 28 Marcela Mašláňová 2009-02-10 11:13:38 UTC
Changes which lead to this bug weren't applied in RHEL. If you see jobs executed twice then I need more information about version of RHEL and releases of packages.

Comment 29 Ray Todd Stevens 2009-02-10 13:16:06 UTC
OK interesting.   I ran an update on three of these servers and got the extra run of the log watch program that we have been seeing here.   You might want to double check if this was indeed not pushed to this version.

In the mean time I will see if I can duplicate the problem and will go through normal support channels if it is.   

I only noted here, because it was the same symptom.

Comment 30 Marcela Mašláňová 2009-02-24 14:27:48 UTC
I hope this was tested for a long time and well. Let's move it to stable.

Comment 31 Fedora Update System 2009-02-25 16:22:45 UTC
anacron-2.3-66.fc10, crontabs-1.10-26.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 32 Fedora Update System 2009-02-25 16:23:03 UTC
anacron-2.3-63.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 33 Marcela Mašláňová 2009-03-02 14:12:33 UTC
*** Bug 487686 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.