In Progress [UPS-269] Logrotate error

Peoplespaces

Well-Known Member
Oct 1, 2001
262
6
318
cPanel Access Level
Root Administrator
I am getting the following error each night:

/etc/cron.daily/logrotate:

error: libcare:3 bad rotation count '5 # keep 5 last archives'

error: found error in /var/log/libcare/*.log , skipping

Any suggestions?
 
  • Like
Reactions: Saxtus

Saxtus

Member
PartnerNOC
Jan 29, 2016
5
1
128
Greece
cPanel Access Level
Root Administrator
Libcare is related to CloudLinux's Kernelcare.
They are aware of the issue and they have scheduled a fix for Monday.
They told me to stay tuned to their blog.
 

cPSean

Technical Analyst II
Staff member
Sep 29, 2020
8
3
78
Houston
cPanel Access Level
Website Owner
Hello,

I am getting the following error each night:

/etc/cron.daily/logrotate:

error: libcare:3 bad rotation count '5 # keep 5 last archives'

error: found error in /var/log/libcare/*.log , skipping

Any suggestions?
Getting the same issue. Only twice so far.
I can confirm that this is related to an issue with KernelCare, we are currently tracking this issue under case ID UPS-269 .

There is an issue with a comment in the log rotate file at /etc/logrotate.d/libcare:

# keep 5 last archives

Removing the invalid comment portion ( the # and after) will resolve this issue if you do not want to wait until CloudLinux releases a fix:

KernelCare Logrotate Configuration Fails with "Anacron job 'cron.daily' on $DOMAIN.TLD" Error
 
  • Like
Reactions: Saxtus

Yogesh T

Registered
Oct 11, 2020
3
0
1
India
cPanel Access Level
Root Administrator
Hello,




I can confirm that this is related to an issue with KernelCare, we are currently tracking this issue under case ID UPS-269 .

There is an issue with a comment in the log rotate file at /etc/logrotate.d/libcare:

# keep 5 last archives

Removing the invalid comment portion ( the # and after) will resolve this issue if you do not want to wait until CloudLinux releases a fix:

KernelCare Logrotate Configuration Fails with "Anacron job 'cron.daily' on $DOMAIN.TLD" Error
In my case, there is no comment before rotate 5 in file /etc/logrotate.d/libcare, but still the issue persists. Is there any solution?
 

riyadhtayf

Member
May 27, 2020
6
3
3
Bangladesh
cPanel Access Level
Root Administrator
Same problem. Running 2 Cpanel server with centos and cloudlinux. Getting this error from both server. BTW, I removed the # and the next words. Now it's working fine and waiting for the solution.
 

rscalover

Well-Known Member
Dec 16, 2010
100
11
68
cPanel Access Level
Root Administrator
Hello,

Yeah i'm getting emails from cron with this


Code:
/etc/cron.daily/logrotate:

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