[pkg-uWSGI-devel] Bug#925954: uwsgi-emperor: duplicate entry in /etc/logrotate.d/ causes logrotate.service to enter a failed state
Laurent Bonnaud
L.Bonnaud at laposte.net
Fri Mar 29 09:38:52 GMT 2019
Subject: uwsgi-emperor: duplicate
Package: uwsgi-emperor
Version: 2.0.18-1
Severity: important
Dear Maintainer,
here is the problem:
# systemctl status logrotate.service
● logrotate.service - Rotate log files
Loaded: loaded (/lib/systemd/system/logrotate.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-03-29 00:00:00 CET; 10h ago
Docs: man:logrotate(8)
man:logrotate.conf(5)
Main PID: 956296 (code=exited, status=1/FAILURE)
Mar 29 00:00:00 irancy.iut2.upmf-grenoble.fr systemd[1]: Starting Rotate log files...
Mar 29 00:00:00 irancy.iut2.upmf-grenoble.fr logrotate[956296]: error: uwsgi-emperor:1 duplicate log entry for /var/log/uwsgi/emperor.log
Mar 29 00:00:00 irancy.iut2.upmf-grenoble.fr logrotate[956296]: error: found error in file uwsgi-emperor, skipping
Mar 29 00:00:00 irancy.iut2.upmf-grenoble.fr systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Mar 29 00:00:00 irancy.iut2.upmf-grenoble.fr systemd[1]: logrotate.service: Failed with result 'exit-code'.
Mar 29 00:00:00 irancy.iut2.upmf-grenoble.fr systemd[1]: Failed to start Rotate log files.
And indeed, the /var/log/uwsgi/emperor.log file is covered by 2 rules in /etc/logrotate.d/ :
# grep -r uwsgi /etc/logrotate.d/
/etc/logrotate.d/uwsgi:"/var/log/uwsgi/*.log" "/var/log/uwsgi/app/*.log" {
/etc/logrotate.d/uwsgi-emperor:"/var/log/uwsgi/emperor.log" {
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages uwsgi-emperor depends on:
ii uwsgi-core 2.0.18-1
uwsgi-emperor recommends no packages.
uwsgi-emperor suggests no packages.
-- no debconf information
--
Laurent.
More information about the pkg-uWSGI-devel
mailing list