1

Topic: Log rotate issue

- iRedMail    v1.3.1
- Deployed with iRedMail Easy
- Linux debian10
- Store mail accounts in LDAP
- Web server Nginx

Oct 25 00:00:02 mail systemd[1]: Starting Rotate log files...
Oct 25 00:00:17 mail logrotate[13862]: [52B blob data]
Oct 25 00:00:17 mail logrotate[13862]: error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Oct 25 00:00:17 mail logrotate[13862]: 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 '
Oct 25 00:00:21 mail systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Oct 25 00:00:21 mail systemd[1]: logrotate.service: Failed with result 'exit-code'.
Oct 25 00:00:21 mail systemd[1]: Failed to start Rotate log files.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Log rotate issue

It uses /etc/mysql/debian.cnf instead of /root/.my.cnf to get root password, but the password field is empty.
A quick solution is:

mv /etc/mysql/debian.cnf /etc/mysql/debian.cnf.bak
ln -sf /root/.my.cnf /etc/mysql/debian.cnf

3

Re: Log rotate issue

Solved, thank you very much.