Hi,
Just received this errors upon shutdown few times already.
backport: 4.7.0 x64
Code
/etc/cron.daily/logrotate:
error: error running shared postrotate script for '/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/error.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1
In case somebody seek for the solution.
1. Retrieve the mysql password: /etc/mysql/debian.cnf
2. Then run mysql as root.
3. Replace xxxxs with actual password.