[debian-mysql] Bug#967900: mariadb-server-10.3: duplicated logrotate.d file causes logrotate to fail
Norbert Preining
norbert at preining.info
Tue Aug 4 16:23:57 BST 2020
Package: mariadb-server-10.3
Version: 1:10.3.23-1
Severity: normal
X-Debbugs-Cc: norbert at preining.info
Hi,
I see the following in my journallog:
$ journalctl -u logrotate.service
...
Aug 05 00:00:01 bulldog systemd[1]: Starting Rotate log files...
Aug 05 00:00:01 bulldog logrotate[534683]: error: mysql-server:5 duplicate log entry for /var/log/mysql/mysql.log
Aug 05 00:00:01 bulldog logrotate[534683]: error: mysql-server:5 duplicate log entry for /var/log/mysql/mysql-slow.log
Aug 05 00:00:01 bulldog logrotate[534683]: error: mysql-server:5 duplicate log entry for /var/log/mysql/mariadb-slow.log
Aug 05 00:00:01 bulldog logrotate[534683]: error: mysql-server:5 duplicate log entry for /var/log/mysql/error.log
Aug 05 00:00:01 bulldog logrotate[534683]: error: found error in file mysql-server, skipping
Aug 05 00:00:03 bulldog systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Aug 05 00:00:03 bulldog systemd[1]: logrotate.service: Failed with result 'exit-code'.
Aug 05 00:00:03 bulldog systemd[1]: Failed to start Rotate log files.
$
Checking for /etc/logrotate.d I see:
$ grep mysql.log /etc/logrotate.d/*
/etc/logrotate.d/mariadb:/var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/mariadb-slow.log /var/log/mysql/error.log {
/etc/logrotate.d/mysql-server:/var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/mariadb-slow.log /var/log/mysql/error.log {
$
and checking for the package that ships these files:
$ dlocate /etc/logrotate.d/mariadb /etc/logrotate.d/mysql-server
mariadb-server-10.3: /etc/logrotate.d/mysql-server
mariadb-server-10.3: /etc/logrotate.d/mariadb
$
Is this a left-over from an upgrade, and what would be the correct way,
because having both of these files is sub-optimal.
So if one file should have disappeared, then please use
debian/mariadb-server-10.3.maintscript
to remove it.
Thanks
Norbert
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.8.0 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages mariadb-server-10.3 depends on:
ii adduser 3.118
ii debconf [debconf-2.0] 1.5.74
ii galera-3 25.3.30-1
ii gawk 1:5.0.1+dfsg-1
ii iproute2 5.7.0-1
ii libc6 2.31-2
ii libdbi-perl 1.643-2
ii libgnutls30 3.6.14-2+b1
ii libpam0g 1.3.1-5
ii libstdc++6 10.2.0-3
ii lsb-base 11.1.0
ii lsof 4.93.2+dfsg-1
ii mariadb-client-10.3 1:10.3.23-1
ii mariadb-common 1:10.3.23-1
ii mariadb-server-core-10.3 1:10.3.23-1
ii passwd 1:4.8.1-1
ii perl 5.30.3-4
ii psmisc 23.3-1
ii rsync 3.2.2-2
ii socat 1.7.3.4-1
ii zlib1g 1:1.2.11.dfsg-2
Versions of packages mariadb-server-10.3 recommends:
ii libhtml-template-perl 2.97-1
Versions of packages mariadb-server-10.3 suggests:
ii bsd-mailx [mailx] 8.1.2-0.20180807cvs-1+b1
ii mailutils [mailx] 1:3.9-3.2
pn mariadb-test <none>
ii netcat-openbsd 1.217-2
pn tinyca <none>
-- debconf information:
mariadb-server-10.3/postrm_remove_databases: false
mariadb-server-10.3/old_data_directory_saved:
mariadb-server-10.3/nis_warning:
More information about the pkg-mysql-maint
mailing list