The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/etc/cron.daily/logrotate duplicate log entry

Discussion in 'General Discussion' started by albertchu, Sep 30, 2016.

  1. albertchu

    albertchu Registered

    Joined:
    Dec 24, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. Bazinga

    Bazinga Active Member

    Joined:
    Aug 23, 2016
    Messages:
    26
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Ukraine
    cPanel Access Level:
    Website Owner
    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 likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,852
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. Bazinga

    Bazinga Active Member

    Joined:
    Aug 23, 2016
    Messages:
    26
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Ukraine
    cPanel Access Level:
    Website Owner
    ... bugreport has been filled by CloudLinux ...
     
Loading...

Share This Page