[debian-mysql] Bug#880099: mariadb-server-10.1: logrotate script does not work - permission denied

Norbert Preining norbert at preining.info
Sun Oct 29 13:30:54 UTC 2017


Package: mariadb-server-10.1
Version: 10.1.26-0+deb9u1
Severity: normal

Dear all,

it seems that some recent update messed up something on my 
pretty default stable system, because I get warning messages:

/etc/cron.daily/logrotate:
^Gmysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'
error: error running shared postrotate script for '/var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/mariadb-slow.log /var/log/mysql/error.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1

Now I can't remember having changed *anything* there since installation
of the server quite some time ago, in particular I haven't changed
passwords or my/maria settings.

All the best

Norbert


-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages mariadb-server-10.1 depends on:
ii  adduser                   3.115
ii  debconf [debconf-2.0]     1.5.61
ii  galera-3                  25.3.19-2
ii  gawk                      1:4.1.4+dfsg-1
ii  init-system-helpers       1.48
ii  iproute2                  4.9.0-1
ii  libaio1                   0.3.110-3
ii  libc6                     2.24-11+deb9u1
ii  libdbi-perl               1.636-1+b1
ii  libpam0g                  1.1.8-3.6
ii  libstdc++6                6.3.0-18
ii  libsystemd0               232-25+deb9u1
ii  lsb-base                  9.20161125
ii  lsof                      4.89+dfsg-0.1
ii  mariadb-client-10.1       10.1.26-0+deb9u1
ii  mariadb-common            10.1.26-0+deb9u1
ii  mariadb-server-core-10.1  10.1.26-0+deb9u1
ii  passwd                    1:4.4-4.1
ii  perl                      5.24.1-3+deb9u2
ii  psmisc                    22.21-2.1+b2
ii  rsync                     3.1.2-1
ii  socat                     1.7.3.1-2+deb9u1
ii  zlib1g                    1:1.2.8.dfsg-5

Versions of packages mariadb-server-10.1 recommends:
ii  libhtml-template-perl  2.95-2

Versions of packages mariadb-server-10.1 suggests:
ii  bsd-mailx [mailx]  8.1.2-0.20160123cvs-4
pn  mariadb-test       <none>
pn  netcat-openbsd     <none>
pn  tinyca             <none>

-- Configuration Files:
/etc/logcheck/ignore.d.paranoid/mariadb-server-10_1 [Errno 13] Permission denied: '/etc/logcheck/ignore.d.paranoid/mariadb-server-10_1'
/etc/logcheck/ignore.d.server/mariadb-server-10_1 [Errno 13] Permission denied: '/etc/logcheck/ignore.d.server/mariadb-server-10_1'
/etc/logcheck/ignore.d.workstation/mariadb-server-10_1 [Errno 13] Permission denied: '/etc/logcheck/ignore.d.workstation/mariadb-server-10_1'

-- debconf information:
  mariadb-server-10.1/postrm_remove_databases: false
  mariadb-server-10.1/old_data_directory_saved:
  mariadb-server-10.1/nis_warning:



More information about the pkg-mysql-maint mailing list