Can't open /var/log/clamav/freshclam.log in append mode

Discuss our MailScanner install script and MailScanner itself
Post Reply
khimaira
Junior Member
Posts: 18
Joined: 05 Aug 2010, 01:24

Can't open /var/log/clamav/freshclam.log in append mode

Post by khimaira »

Since the latest upgrades and changes in Mailscanner I have been receiving the following cron errors:

/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!).

Running freshclam manually is updating but nothing is recorded in the log file:

-rw-r--r-- 1 clam clam 2135 Jun 14 03:30 freshclam.log

I have at least 3 freshclam.conf files and in most case all options are pounded out including the log file and user options. What should be changed where?

Note these are cpanel servers.
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: Can't open /var/log/clamav/freshclam.log in append mode

Post by ForumAdmin »

That is not a cron job used by our MailScanner implementation and should be removed now that it uses Clamavconnector from cPanel which updates freshclam via a job in the root crontab.
khimaira
Junior Member
Posts: 18
Joined: 05 Aug 2010, 01:24

Re: Can't open /var/log/clamav/freshclam.log in append mode

Post by khimaira »

Thank you very much for your response. I'll remove it.
gschaefer
Junior Member
Posts: 14
Joined: 18 Jun 2015, 23:32

Re: Can't open /var/log/clamav/freshclam.log in append mode

Post by gschaefer »

I have the same problem after the latest update.

Where and how to remove this cronjob to remove it?
Post Reply