Bug#831764: logrotate: does not rotate logs if delaycompress is used

2019-09-09 Thread Christian Göttsche
Control: affects -1 rsyslog

Revisiting this bugreport...

I think the original issue (message #5) from mbraun, that
snmptrapd.log is not being rotated, should be fixed nowadays or was a
misconfiguration.

The followup issues (messages #10 and #22) from sixerjman and Harald
seem to be a duplicate of #720096.
Reading https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720096#145,
sending two SIGHUP signals in a very short time interval (one in
postrotate of /var/log/syslog and one in postrotate of the other
rsyslog logs) might be a cause.
The option 'delaycompress' might make timing difference.
Maybe adding a timeout for rsyslog to come back alive after a SIGHUP
in /usr/lib/rsyslog/rsyslog-rotate could solve this issue?

Best regards,
 Christian Göttsche



Bug#831764: logrotate: does not rotate logs if delaycompress is used

2018-10-03 Thread Harald Dunkel
Attached you can find the /etc/logrotate.d/rsyslog of my host.
Hope this helps.


Regards
Harri
/var/log/syslog
{
rotate 7
daily
missingok
notifempty
delaycompress  
compress
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}

/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
rotate 8
weekly
maxsize 100M
missingok
notifempty
compress
delaycompress  
sharedscripts
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}


Bug#831764: logrotate: does not rotate logs if delaycompress is used

2018-08-22 Thread Christian Göttsche
Control: tags -1 moreinfo unreproducible

Hi,
can you reproduce the issue with logrotate 3.14.0-2 and if yes can you
please post your logrotate configuration?

Best regards
   Christian Göttsche



Bug#831764: logrotate: does not rotate logs if delaycompress is used

2017-06-28 Thread Harald Dunkel
metoo, see #720096



signature.asc
Description: OpenPGP digital signature


Bug#831764: logrotate: does not rotate logs if delaycompress is used

2016-07-19 Thread mbraun
Package: logrotate
Version: 3.8.7-1+b1
Severity: important

Dear Maintainer,

   * What led up to the situation?

I upgraded to jessie

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

I'm using logrotate to rotate some log files.
I.E. /var/log/snmptrapd.log. Including the delaycompress setting.
There were no other /var/log/snmptrapd.log* files present.

   * What was the outcome of this action?

The log files where not rotated. logrotate -v showed that logrotate was 
considering /var/log/snmptrapd.log*.gz, but does not mention renaming 
/var/log/snmptrapd.log.

   * What outcome did you expect instead?

I expected my logs to rotate.

Regards,
M. Braun

-- Package-specific info:
Contents of /etc/logrotate.d
total 48
-rw-r--r-- 1 root root  434 Jul 19 11:09 apache2
-rw-r--r-- 1 root root  173 Jul 19 11:09 apt
-rw-r--r-- 1 root root   79 Jul 19 11:09 aptitude
-rw-r--r-- 1 root root  234 Jul 19 11:09 dpkg
-rw-r--r-- 1 root root  264 Jul 19 11:09 hosts
drwxr-xr-x 2 root root 4096 Oct 16  2014 hosts.d
-rw-r--r-- 1 root root  174 Jul 19 11:10 postgresql-common
-rw-r--r-- 1 root root  563 Jul 19 11:05 rsyslog
-rw-r--r-- 1 root root  321 Apr 12 18:21 samba
-rw-r--r-- 1 root root  321 Apr 14 10:19 samba.dpkg-new
drwxr-xr-x 2 root root 4096 Oct 16  2014 stuff
-rw-r--r-- 1 root root  235 Apr 30  2015 unattended-upgrades


-- System Information:
Debian Release: 8.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to de_DE.utf8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages logrotate depends on:
ii  base-passwd 3.5.37
ii  cron [cron-daemon]  3.0pl1-127+deb8u1
ii  libacl1 2.2.52-2
ii  libc6   2.19-18+deb8u4
ii  libpopt01.16-10
ii  libselinux1 2.3-2

Versions of packages logrotate recommends:
ii  heirloom-mailx [mailx]  12.5-4

logrotate suggests no packages.

-- no debconf information