Package: logrotate
Version: 3.7-5
Severity: grave
Justification: renders package unusable


If there is a file in /etc/logrotate.d, which refers to some glob
pattern (in my case it was /var/log/mgetty/*.log), and there is no files
matching this pattern, logrotate stops upon processing this file and
doesn't process rest of file.

Such situation can happen if there is removed package, with only
configuration files present (logrotate scripts are typically marked as
configuration file), or program which generates these files is disabled
somehow (for example, mgetty is commented out in /etc/inittab) and all
its log files are rotated away.

Both situation are quite normal for multi-purpose machines.

In such case big and fast-growing log files, which happen to be
processed after "incorrect" logrotate.d entry are not rotated and can
overfull log partition and render system totally unusable.

In my case non-rotation of apache logs have caused overfull of /var and
thus stopping of accepting incoming mail.

Situation is quite hard to debug, because logrotate.d entry for package
which caused overfull (apache) was absolutely correct, and problem was
caused by unrelated and removed package.

-- Package-specific info:
Contents of /etc/logrotate.d
итого 16
-rw-r--r--  1 root root 137 2003-09-23 20:08 acpid
-rw-r--r--  1 root root 366 2004-11-18 13:13 apache
-rw-r--r--  1 root root  79 2004-09-28 22:44 aptitude
-rw-r--r--  1 root root 384 2004-12-04 01:25 base-config
-rw-r--r--  1 root root 214 2005-05-18 19:09 clamav-daemon
-rw-r--r--  1 root root 261 2005-04-30 17:59 clamav-freshclam
-rw-r--r--  1 root root 151 2002-01-27 15:54 iptraf
-rw-r--r--  1 root root  96 2004-10-07 21:13 jabber
-rw-r--r--  1 root root 122 2004-07-25 17:12 mgetty-fax
-rw-r--r--  1 root root  74 2004-04-06 18:41 mrtg
-rw-r--r--  1 root root 136 2004-11-23 17:52 postgresql
-rw-r--r--  1 root root  94 2004-07-16 21:30 ppp
-rw-r--r--  1 root root 330 2005-04-19 06:02 samba
-rw-r--r--  1 root root 298 2004-09-28 23:34 uucp
-rw-r--r--  1 root root 311 2004-08-22 00:26 wu-ftpd
-rw-r--r--  1 root root 335 2005-06-01 10:03 xdm


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-xeon
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages logrotate depends on:
ii  base-passwd                 3.5.9        Debian base system master password
ii  cron                        3.0pl1-86    management of regular background p
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libpopt0                    1.7-5        lib for parsing cmdline parameters

-- no debconf information

Reply via email to