Skip to content

Instantly share code, notes, and snippets.

View dustinsilva's full-sized avatar

Dustin Silva dustinsilva

View GitHub Profile
@jaircuevajunior
jaircuevajunior / mysql_debian_user.md
Last active October 21, 2024 18:42
Fix logrotate error regarding mysql on Ubuntu

Fix logrotate error regarding mysql on Ubuntu

Sometimes if you are mailed of cronjobs, will may got an error like this:

/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

Well, don't panic! Also don't ignore it! :)