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.

Daily Cron Error

Discussion in 'General Discussion' started by cgimickalo, Dec 3, 2013.

  1. cgimickalo

    cgimickalo Well-Known Member

    Joined:
    Apr 19, 2013
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    N.W. Iowa
    cPanel Access Level:
    Root Administrator
    I recently starting getting this notice from the daily crons and can't seem to find what is causing this.
    Code:
    /etc/cron.daily/logrotate:
    
    error: syslog:1 duplicate log entry for /var/log/maillog
    error: found error in /var/log/cron
    /var/log/maillog
    /var/log/messages
    /var/log/secure
    /var/log/spooler
    , skipping
    
    What is causing these errors?

    Thanks,
    Mike
     
    #1 cgimickalo, Dec 3, 2013
    Last edited by a moderator: Dec 3, 2013
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. cgimickalo

    cgimickalo Well-Known Member

    Joined:
    Apr 19, 2013
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    N.W. Iowa
    cPanel Access Level:
    Root Administrator
    Yes the same exact error output running manually:
    Code:
    [~]# /etc/cron.daily/logrotate
    
    error: syslog:1 duplicate log entry for /var/log/maillog
    error: found error in /var/log/cron
    /var/log/maillog
    /var/log/messages
    /var/log/secure
    /var/log/spooler
    , skipping
    
    Mike
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please check the /etc/logrotate.conf file and look for any references to /var/log/maillog. Also, please check the following directory:

    Code:
    /etc/logrotate.d
    Look for duplicate entries associated with /var/log/maillog.

    Thank you.
     
  5. cgimickalo

    cgimickalo Well-Known Member

    Joined:
    Apr 19, 2013
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    N.W. Iowa
    cPanel Access Level:
    Root Administrator
    I found the duplicate entry in the /etc/logrotate.d folder in the exim cron file. Not sure how that all of sudden got there though. Removed the duplicate entry, ran the logrotate cron script, no errors now.

    Thank you for your help appreciate it.

    Mike
     
Loading...

Share This Page