Skip to main content

/etc/cron.daily/logrotate duplicate log entry

Comments

3 comments

  • Bazinga
    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.
    0
  • cPanelMichael
    Hello @Bazinga, Could you update this thread with the outcome after contacting CloudLinux? Thanks!
    0
  • Bazinga
    Hello @Bazinga, Could you update this thread with the outcome after contacting CloudLinux? Thanks!

    ... bugreport has been filled by CloudLinux ...
    0

Please sign in to leave a comment.