Symptoms
Daily cron notifications report the below error.
CONFIG_TEXT: /etc/cron.daily/logrotate:
error: imunify-core:22 duplicate log entry for #
error: imunify-core:22 duplicate log entry for #
error: imunify-core:22 duplicate log entry for the
error: imunify-core:22 duplicate log entry for #
error: imunify-core:22 duplicate log entry for to
error: imunify-core:22 duplicate log entry for so
error: imunify-core:22 duplicate log entry for #
error: imunify-core:22 duplicate log entry for to
error: found error in file imunify-core, skipping
Cause
The root-cause is a duplicate log paths defined across the logrotate files. This is usually caused by files with .bak , .rpmsave, or other similar extensions in the /etc/logrotate.d directory, as the logrotated service loads all files in the folder.
Resolution
- Login as the
rootuser via SSH, or using the Terminal in WHM. List all files in the
/etc/logrotate.dfolder:# ls -alh /etc/logrotate.d
Remove any files that end with
.bak,.rpmsave, etc. For example:# mv -v /etc/logrotate.d/imunify-core.rpmsave /root
Comments
0 comments
Article is closed for comments.