Bug 196685

Summary: Logrotate claims that 12-22-2005 is in the future
Product: [Fedora] Fedora Reporter: Christopher Johnson <ckjohnson>
Component: logrotateAssignee: Peter Vrabec <pvrabec>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-06-29 12:33:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christopher Johnson 2006-06-26 14:23:04 UTC
Description of problem:
The nightly logrotate cron job yields this message:
/etc/cron.daily/logrotate:
error: log /var/account/pacct last rotated in the future -- rotation forced

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

How reproducible:
Nightly.

Steps to Reproduce:
1. -rw-r--r-- 1 root root 0 Dec 22  2005 /var/account/pacct
2. psacct installed
3. let logrotate cron job run
  
Actual results:
The above error message.

Expected results:
Probably no message would be appropriate.

Additional info:
My concern is that logrotate considers 12-22-2005 to be in the future when the
system date is clearly after that.  This has been happening since FC5 was
installed several weeks ago.  Today the system date is Mon Jun 26 10:28:04 EDT 2006

Comment 1 Peter Vrabec 2006-06-27 11:40:45 UTC
Could you send output of this:
$ cat /var/lib/logrotate.status | grep pacct

Comment 2 Christopher Johnson 2006-06-27 17:17:44 UTC
"/var/account/pacct" 2006-9-1

Interesting.  So this is the "last rotated" date, and it is in the future.  But
how did it get that way?

# ls /var/log/wtmp
wtmp    wtmp.1
# last -f /var/log/wtmp.1
[snip]
root     pts/0        10.1.250.4       Sun May 14 08:35 - 09:32  (00:57)
root     pts/1        10.1.250.4       Sat May 13 15:53 - 19:18  (03:25)
root     pts/0        10.1.250.4       Sat May 13 12:12 - 19:04  (06:52)
reboot   system boot  2.6.16-1.2111_FC Sat May 13 12:11         (45+01:09)

wtmp.1 begins Sat May 13 11:59:47 2006

Only May and June dates show in any wtmp files.  May is when it was installed.

Comment 3 Peter Vrabec 2006-06-29 12:33:04 UTC
I don't know how it happend. :-(