[UPS-269] Logrotate error
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. 0 -
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:0 -
Same, started happening after latest update. All my cPanels did this last night during their nightly cron run. 0 -
I can confirm that this is happening to me since 2 nights ago after the update. 0 -
Me too! Thanks for the update. 0 -
Thanks for this. Appreciate it. 0 -
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:
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?0 -
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. 0 -
Hello, Yeah i'm getting emails from cron with this /etc/cron.daily/logrotate: error: libcare:3 bad rotation count '5 # keep 5 last archives' error: found error in /var/log/libcare/*.log, skipping
0
Please sign in to leave a comment.
Comments
10 comments