Anacron job 'cron.daily' - freshclam.log

davorg

Well-Known Member
May 13, 2013
46
6
58
cPanel Access Level
Root Administrator
A last few days on all my cPanel servers I have this error:

---
/etc/cron.daily/logrotate:

error: stat of /var/log/freshclam.log failed: No such file or directory
---

I know, this file doesn't exist but I want to know why this happened.

TNX, D.
 
  • Like
Reactions: Yasser Masood

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Hello,

This is a known issue with CloudLinux/Imunify, there is a workaround presently which is as follows:


Remove the logrotate config for clamav
or
Add 'missingok' to /etc/logrotate.d/clamav-update or Update /etc/freshclam.conf by removing # from UpdateLogFile line. Then create the log going by clamav documentation @ https://www.clamav.net/documents/configuration#freshclamconf :

Code:
touch /var/log/freshclam.log
chmod 664 /var/log/freshclam.log
chown root.clamupdate /var/log/freshclam.log