1

Topic: logrotate need mysql password

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version:  Ubuntu LTS 18.04 Linux 4.15.0-108-generic x86_64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  Mysql / mariadb
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? no
====

I receive on postmaster this error, after i add root password on mysql, please how to add pass on cmd line for logrotate, or can i safetly disable this cron logrotate or is essential?


/etc/cron.daily/logrotate:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
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

----

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

2

Re: logrotate need mysql password

Do you have file /root/.my.cnf with correct mysql root username and password?

3

Re: logrotate need mysql password

ah ok, fixed, tnx