Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/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:
    51
    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:
    32
    Likes Received:
    7
    Trophy Points:
    8
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Maxence and cPanelMichael like this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,378
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @Bazinga,

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

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Bazinga

    Bazinga Active Member

    Joined:
    Aug 23, 2016
    Messages:
    32
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    Ukraine
    cPanel Access Level:
    Website Owner
    ... bugreport has been filled by CloudLinux ...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice