cgimickalo

Well-Known Member
Apr 19, 2013
78
0
6
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
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

Try running the logrotate script manually to see if the same error message is output:

Code:
/etc/cron.daily/logrotate
Thank you.
 

cgimickalo

Well-Known Member
Apr 19, 2013
78
0
6
N.W. Iowa
cPanel Access Level
Root Administrator
Hello :)

Try running the logrotate script manually to see if the same error message is output:

Code:
/etc/cron.daily/logrotate
Thank you.
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
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.
 

cgimickalo

Well-Known Member
Apr 19, 2013
78
0
6
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
 

fatpanda

Registered
Jan 13, 2020
1
0
1
tunisia
cPanel Access Level
Website Owner
Hi, I have the same issue. In my case I have to rotate weekly /var/log/maillog and can't be succeeded. the error message is "duplicate log entry for /var/log/maillog". I found the duplicate in syslog file but in my case I can't delete it. So how could you help!