/etc/cron.daily/logrotate duplicate log entry

albertchu

Registered
Dec 24, 2008
4
1
53
After upgrade to MariaDB 10.1.17 from MySQL 5.6.31, I got the error email everyday ---

Anacron job 'cron.daily' on hostname.mydomain.com
/etc/cron.daily/logrotate:
error: mysqld:21 duplicate log entry for /var/lib/mysql/mysqld.log

Anyone know how to fix it?

Thanks

p.s.
CloudLinux 7.2, WHM 58.0.30
 

Bazinga

Active Member
Verifed Vendor
Aug 23, 2016
32
7
8
Ukraine
cPanel Access Level
Website Owner
After upgrade to MariaDB 10.1.17 from MySQL 5.6.31, I got the error email everyday ---

Anacron job 'cron.daily' on hostname.mydomain.com
/etc/cron.daily/logrotate:
error: mysqld:21 duplicate log entry for /var/lib/mysql/mysqld.log

Anyone know how to fix it?

Thanks

p.s.
CloudLinux 7.2, WHM 58.0.30
Most probably there is conflict in logrotate configs there. Check in what files mysqld.log exist then remove (rename) one of the config file. Like: grep -l mysqld.log /etc/logrotate.d/* mv /etc/logrotate.d/mysqld /root/logrotate_mysqld Will report this to CloudLinux developers.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello @Bazinga,

Could you update this thread with the outcome after contacting CloudLinux?

Thanks!