Your message dated Wed, 22 Aug 2018 17:48:59 +0200
with message-id
<CAJ2a_DcV8fBH2=q-esl60cye+osvf-zdkovu5er2gkqogbx...@mail.gmail.com>
and subject line logrotate does not ever recover from a corrupted statefile
has caused the Debian Bug report #871592,
regarding logrotate does not ever recover from a corrupted statefile
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
871592: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871592
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: logrotate
Version: 3.11.0-0.1
Severity: normal
Dear Maintainer,
logrotate does not ever recover from a corrupted statefile.
Reproducer :
- Install logrotate
- Run by hand "/etc/cron.daily/logrotate" # The first logrotate run will
generate the statefile "var/lib/logrotate/status"
- Modify "/var/lib/logrotate/status" by removing the first line in order to
corrupt the file.
- Re-run "/etc/cron.daily/logrotate" and you will get something like this
"error: bad top line in state file /var/lib/logrotate/status" every time you
run logrotate.
logrotate never recovers if the statefile is corrupted unless you remove it or
fix the corruption by hand.
The following upstream[1] commit introduce in 3.12.0 version is fixing the
situation[2]
[1] -
https://github.com/logrotate/logrotate/commit/b9d82003002c98370e4131a7e43c76afcd23306a
# git clone https://github.com/logrotate/logrotate.git
# git describe --contains b9d8200
3.12.0~18
[2] - https://github.com/logrotate/logrotate/issues/45
-- System Information:
Debian Release: 8.7
APT prefers oldstable
APT policy: (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.4.0-47-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
--- End Message ---
--- Begin Message ---
Version: 3.14.0-2
Fixed upstream.
--- End Message ---