Closed xmacex closed 1 year ago
Thank you for identifying this issue!
On Sun, Aug 28, 2022, 3:52 AM Mace Ojala @.***> wrote:
Hi. On the new image, the logrotate service fails to start and logs pile up.
systemlog status logrotate reports:
● logrotate.service - Rotate log files
Loaded: loaded (/lib/systemd/system/logrotate.service; static) Active: failed (Result: exit-code) since Sun 2022-08-28 00:00:10 BST; 8h ago
TriggeredBy: ● logrotate.timer
Docs: man:logrotate(8) man:logrotate.conf(5) Process: 8072 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf (code=exited, status=1/FAILURE)
Main PID: 8072 (code=exited, status=1/FAILURE)
CPU: 8.330s
Aug 28 00:00:00 norns systemd[1]: Starting Rotate log files...
Aug 28 00:00:00 norns logrotate[8072]: error: /etc/logrotate.conf:18 duplicate log entry for /var/log/wtmp
Aug 28 00:00:00 norns logrotate[8072]: error: /etc/logrotate.conf:25 duplicate log entry for /var/log/btmp
Aug 28 00:00:10 norns systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Aug 28 00:00:10 norns systemd[1]: logrotate.service: Failed with result 'exit-code'.
Aug 28 00:00:10 norns systemd[1]: Failed to start Rotate log files.
Aug 28 00:00:10 norns systemd[1]: logrotate.service: Consumed 8.330s CPU time.
And indeed, there [bw]tmp are defined in /etc/logrotate.d/[bw]tmp as well as in /etc/logrotate.conf.
The one in /etc was modified after almost entirely identical entries already existed.
⠃▋⡇ ~$ ls -l /etc/logrotate.conf /etc/logrotate.d/[bw]tmp
-rw-r--r-- 1 root root 607 Feb 24 2022 /etc/logrotate.conf
-rw-r--r-- 1 root root 130 Oct 14 2019 /etc/logrotate.d/btmp
-rw-r--r-- 1 root root 145 Oct 14 2019 /etc/logrotate.d/wtmp
Removing those two double entries from /etc/logrotate.conf solves the issue, logrotate starts, and does it's job.
Thank you for norns, it sparks great joy :-}
— Reply to this email directly, view it on GitHub https://github.com/monome/norns/issues/1599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB4I4CTXAONX67I3BOGQETV3MLFRANCNFSM572UALHQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
also as a note, i'll get this in the next update
fixed by https://github.com/monome/norns/commit/379192938b30e23b4c57fc293c0efe7c343577e4
(at least, that was the goal?)
Hi. On the new image, the
logrotate
service fails to start and logs pile up.systemlog status logrotate
reports:And indeed, there
[bw]tmp
are defined in /etc/logrotate.d/[bw]tmp as well as in /etc/logrotate.conf.The one in /etc was modified after almost entirely identical entries already existed.
Removing those two double entries from /etc/logrotate.conf solves the issue, logrotate starts, and does it's job.
Thank you for norns, it sparks great joy :-}