Problem with internal logger CLAMAV

itmonitor

Well-Known Member
Apr 10, 2014
83
15
83
cPanel Access Level
Root Administrator
Hi!

I have a cron job that runs clamav once a day. Everyday I receive the email report pasted below. I tried with my hosting provider, they tried their best but did not resolved the issue. Please, any advice is welcome! :)

rgs

IM

/etc/cron.daily/freshclam:

ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
/etc/cron.daily/manual_clamscan:

LibClamAV Warning: cli_tnef: file truncated, returning CLEAN
LibClamAV Warning: cli_tnef: file truncated, returning CLEAN
LibClamAV Warning: cli_tnef: file truncated, returning CLEAN
 

24x7serversecurity

Active Member
Aug 31, 2015
39
6
8
India
cPanel Access Level
Root Administrator
Hi :),

As per the logs, ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
check the permissions of log file: /var/log/clamav/freshclam.log
it should be like below:

-rw-r----- 1 clamav clamav 4259 Sep 9 03:16 freshclam.log
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Note you can use the "stat" command if you want to see a numerical output for the file permissions. EX:

Code:
stat /var/log/clamav/freshclam.log
Thank you.
 

itmonitor

Well-Known Member
Apr 10, 2014
83
15
83
cPanel Access Level
Root Administrator
Many thanks Michael! :)

There is another issue, related to the CLAMAV scan results, but I am posting another thread. Please, you can mark this thread as solved.