Package: logrotate Version: 3.7.1-3 Severity: minor --- Please enter the report below this line. ---
logrotate does its job completely, even more, it does one thing too much: reports errors where in fact there are no errors, except for the errormessages. Only a minor issue, nevertheless annoying. It seems to be related with option delaycompress. anacron sends errormessages like this: #------------------------------------- == 2007-11-04 So 07:40:32 CET == From: Anacron <root> To: root Subject: Anacron job 'cron.daily' on roland /etc/cron.daily/logrotate: error: Failed to remove old log /var/log/acpid-20071104.gz: No such file or directory run-parts: /etc/cron.daily/logrotate exited with return code 1 $ LC_ALL=C ls -dlt /var/log{,/acpi*} #----------------------------------- -rw-r----- 1 root root 149034 20071104.153034 /var/log/acpid drwxr-xr-x 9 root root 36864 20071104.074018 /var/log/ -rw-r----- 1 root root 2122138 20071104.074010 /var/log/acpid-20071104 -rw-r----- 1 root root 99492 20071028.115927 /var/log/acpid-20071028.gz -rw-r----- 1 root root 106454 20071021.094736 /var/log/acpid-20071021.gz -rw-r----- 1 root root 113351 20071013.184534 /var/log/acpid-20071013.gz $ grep ^[a-z] /etc/logrotate.conf #--------------------------------- dateext size 2M delaycompress missingok tabooext + .orig create compress include /etc/logrotate.d $ grep -v \# /etc/logrotate.d/acpid #----------------------------------- /var/log/acpid { compress missingok postrotate pkill -SIGUSR1 acpid > /dev/null || true endscript } There are similar erroneous error messages concerning /var/log/daemon.log, /var/log/apache/access.log . If two or more logfiles are rotated during one cron.daily job, the errormessages sent by anacron look like this example: == 2007-09-24 Mo 17:52:23 CEST == From: Anacron <root> To: root Subject: Anacron job 'cron.daily' on roland /etc/cron.daily/logrotate: error: Failed to remove old log /var/log/acpid-20070924.gz: No such file or directory error: Failed to remove old log /var/log/daemon.log-20070924.gz: No such file or directory run-parts: /etc/cron.daily/logrotate exited with return code 1 Reproducible: #------------ Error is observed ALWAYS, when one ore more logfiles are rotated with option delaycompress. --- System information. --- Architecture: i386 Kernel: Linux 2.6.18.5roland2 Debian Release: 4.0 500 unstable gd.tuwien.ac.at 500 testing security.debian.org 500 testing gd.tuwien.ac.at 500 oldstable gd.tuwien.ac.at 500 edgy wine.budgetdedicated.com 1 experimental gd.tuwien.ac.at --- Package information. --- Depends (Version) | Installed ============================-+-============= libc6 (>= 2.3.5-1) | 2.6.1-1 libpopt0 (>= 1.7) | 1.10-3 libselinux1 (>= 1.30) | 2.0.15-2+b1 cron | 3.0pl1-100 OR anacron | 2.3-13 OR fcron | base-passwd (>= 2.0.3.4) | 3.5.11 -- Roland Eggner -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]