Package: mariadb-server-10.5 Version: 1:10.5.9-1 Severity: normal debian/patches/1556.patch contains an update to try to generate a logrotate config file for mariadb, but it malfunctions almost completely. The template used is:
@localstatedir@/mysqld.log @logdir@/mysql.log @localstatedir@/mariadb.log @logdir@/mysql-slow.log @logdir@/mariadb-slow.log @logdir@/error.log Which results in this: /var/lib/mysql/mysqld.log /mysql.log /var/lib/mysql/mariadb.log /mysql-slow.log /mariadb-slow.log /error.log The list of log files, according to commented out defaults in /etc/mysql/mariadb.conf.d/50-server.cnf, is: /var/log/mysql/mysql.log /var/log/mysql/mariadb-slow.log /var/log/mysql/error.log Of course, on a default system, none of these are written any more either, but they might still exist. MariaDB definitely isn't going to log to /, and it seems unlikely for it to log to /var/lib/mysql/. Why does it matter? This is causing the logrotate service to fail to start for me. It logs what looks like a warning claiming it's skipping the non-existent files, but then exits. -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (990, 'testing'), (500, 'stable'), (500, 'oldstable'), (490, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-3-amd64 (SMP w/16 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages mariadb-server-10.5 depends on: ii adduser 3.118 ii debconf [debconf-2.0] 1.5.75 ii galera-4 26.4.7-3 ii gawk 1:5.1.0-1 ii iproute2 5.10.0-4 ii libc6 2.31-11 ii libdbi-perl 1.643-3+b1 ii libpam0g 1.4.0-7 ii libssl1.1 1.1.1k-1 ii libstdc++6 10.2.1-6 ii lsb-base 11.1.0 ii lsof 4.93.2+dfsg-1.1 ii mariadb-client-10.5 1:10.5.9-1 ii mariadb-common 1:10.5.9-1 ii mariadb-server-core-10.5 1:10.5.9-1 ii passwd 1:4.8.1-1 ii perl 5.32.1-3 ii procps 2:3.3.17-5 ii psmisc 23.4-2 ii rsync 3.2.3-4 ii socat 1.7.4.1-3 ii zlib1g 1:1.2.11.dfsg-2 Versions of packages mariadb-server-10.5 recommends: ii libhtml-template-perl 2.97-1.1 Versions of packages mariadb-server-10.5 suggests: ii bsd-mailx [mailx] 8.1.2-0.20180807cvs-2 pn mariadb-test <none> ii netcat-openbsd 1.217-3 -- debconf information excluded