Anacron job 'cron.daily' on <serverdomain>

Operating System & Version
CentOS 7.8
cPanel & WHM Version
v90.0.14

martin MHC

Well-Known Member
Sep 14, 2016
220
36
78
UK
cPanel Access Level
Root Administrator
I have started getting these bi-daily updates on the server admin email stating:

/etc/cron.daily/logrotate:

error: libcare:3 bad rotation count '5 # keep 5 last archives'
error: found error in /var/log/libcare/*.log , skipping

where the folder /var/log/libcare/ is empty.
I have not knowing done anything to change any way this works, either anacron or the folder structure or contents.

The source file that appears to be etc/cron.daily/logrotate is:

Code:
#!/bin/sh
export TMPDIR=/var/spool/logrotate/tmp

/usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0
So this doesn't immediately look like something I should edit to resolve the error.

How should this issue be resolved? I am assuming this issue has occured after a WHM update to version 90.0.14 however I can't see anything in the changelogs that relates to this.
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,519
1,028
313
cPanel Access Level
Root Administrator
Hey there! We've got another thread going on this with some details here so you can check that out for some updated information: