Red Hat Bugzilla – Bug 196685
Logrotate claims that 12-22-2005 is in the future
Last modified: 2007-11-30 17:11:35 EST
Description of problem:
The nightly logrotate cron job yields this message:
error: log /var/account/pacct last rotated in the future -- rotation forced
Version-Release number of selected component (if applicable):
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
The above error message.
Probably no message would be appropriate.
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
Could you send output of this:
$ cat /var/lib/logrotate.status | grep pacct
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
# last -f /var/log/wtmp.1
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.
I don't know how it happend. :-(