Anyone got any idea what this means?  I get one of these every single
day.

The file is there and seems just fine to me:
[root@titanium cron.daily]# ls -l /var/lib/logrotate.status
-rw-r--r--    1 root     root         1628 May  3 04:02
/var/lib/logrotate.status

I tried touching every file the state file referenced but that doesn't
seem to be the problem.

Here's an strace of what's going on when it does this:
[pid 29170] open("/var/log/proftpd",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 5
[pid 29170] fstat64(0x5, 0x7fffdc98)    = 0
[pid 29170] fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
[pid 29170] brk(0x1001f000)             = 0x1001f000
[pid 29170] getdents64(0x5, 0x1001c278, 0x1000) = 72
[pid 29170] getdents64(0x5, 0x1001c278, 0x1000) = 0
[pid 29170] close(5)                    = 0
[pid 29170] lstat64(0x1001b8f0, 0x7fffeb18) = 0
[pid 29170] getdents64(0x3, 0x10017dc0, 0x1000) = 0
[pid 29170] close(3)                    = 0
[pid 29170] fchdir(4)                   = 0
[pid 29170] close(4)                    = 0
[pid 29170] lstat64(0x1001b980, 0x7ffff148) = 0
[pid 29170] open("/etc/passwd", O_RDONLY) = 3
[pid 29170] fcntl64(3, F_GETFD)         = 0
[pid 29170] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 29170] fstat64(0x3, 0x7fffeb38)    = 0
[pid 29170] mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30016000
[pid 29170] read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1990
[pid 29170] close(3)                    = 0
[pid 29170] munmap(0x30016000, 4096)    = 0
[pid 29170] open("/etc/group", O_RDONLY) = 3
[pid 29170] fcntl64(3, F_GETFD)         = 0
[pid 29170] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 29170] fstat64(0x3, 0x7fffeb38)    = 0
[pid 29170] mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30016000
[pid 29170] read(3, "root:x:0:root\nbin:x:1:root,bin,d"..., 4096) = 847
[pid 29170] close(3)                    = 0
[pid 29170] munmap(0x30016000, 4096)    = 0
[pid 29170] lstat64(0x1001b9d0, 0x7ffff148) = 0
[pid 29170] time(NULL)                  = 1021223180
[pid 29170] stat64(0x10006ac4, 0x7ffff2d8) = 0
[pid 29170] write(2, "error: ", 7error: )      = 7
[pid 29170] write(2, "error stat()ing state file /var/"..., 62error
stat()ing state file /var/lib/logrotate.status: Success
) = 62
[pid 29170] exit(1)                     = ?

Now since it's looking at /var/log/proftpd. I'm guessing it's reading
the /var/lib/logrotate.status file.  

Ohh and this is under an 8.2 install.

----- Forwarded message from Cron Daemon <[EMAIL PROTECTED]> -----

From: [EMAIL PROTECTED] (Cron Daemon)
To: [EMAIL PROTECTED]
Subject: Cron <root@titanium> nice -n 19 run-parts /etc/cron.daily
Date: Sun, 12 May 2002 04:17:50 -0700 (PDT)

error: error stat()ing state file /var/lib/logrotate.status: Success
run-parts: /etc/cron.daily/logrotate exited with return code 1

----- End forwarded message -----

-- 
Ben Reser <[EMAIL PROTECTED]>
http://ben.reser.org

We tend to see all wars through the lens of the current conflict, and we
mine history for lessons convenient to the present purpose.
- Brian Hayes

Reply via email to