Package: logrotate
Version: 3.8.7-1+b1
Followup-For: Bug #734688

Dear Maintainer,

Seconded, the problem still persists in jessie.
Logrotate was practically broken after /var/log got full a month ago.

There where various .log.1.gz files, most of which where 0 bytes which
stopped logrotate to act on those files completely.

# grep 'error creating output file' logrotate_force_20151216.log
error: error creating output file /var/log/dpkg.log.1.gz: File exists
error: error creating output file /var/log/alternatives.log.1.gz: File exists
error: error creating output file /var/log/nginx/error.log.1.gz: File exists
error: error creating output file /var/log/nginx/access.log.1.gz: File exists
error: error creating output file /var/log/php5-fpm.log.1.gz: File exists
error: error creating output file /var/log/syslog.1.gz: File exists
error: error creating output file /var/log/daemon.log.1.gz: File exists
error: error creating output file /var/log/auth.log.1.gz: File exists
error: error creating output file /var/log/messages.1.gz: File exists

# ls -lah daemon.log*
-rw-r----- 1 root adm 3.1G Dec 16 19:07 daemon.log
-rw-r----- 1 root adm 600K Sep 28 06:17 daemon.log.1
-rw-r----- 1 root adm    0 Oct  4 06:25 daemon.log.1.gz
-rw-r----- 1 root adm  43K Sep 20 06:03 daemon.log.2.gz
-rw-r----- 1 root adm 111K Sep 13 05:55 daemon.log.3.gz
-rw-r----- 1 root adm  480 Sep  6 22:45 daemon.log.4.gz

# log from logrotate -f -v for daemon.log
rotating log /var/log/daemon.log, log->rotateCount is 4
dateext suffix '-20151216'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
compressing log with: /bin/gzip
error: error creating output file /var/log/daemon.log.1.gz: File exists
log /var/log/daemon.log.5.gz doesn't exist -- won't try to dispose of it

michael

-- System Information:
Debian Release: 8.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

-- no debconf information

Reply via email to