Control Web Panel

WebPanel => Postfix => Topic started by: markz on September 17, 2015, 07:44:09 PM

Title: Freshclam DB update fail
Post by: markz on September 17, 2015, 07:44:09 PM
Hello to all,

I try to update Clamd database by running "freshclam". But I got the following error, any hint how to fix this?

Quote
[root@host log]# freshclam
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
Title: Re: Freshclam DB update fail
Post by: Igor S. on September 18, 2015, 12:35:55 PM
Hi.

Try to create the /var/log/clamav/freshclam.log and change owner to it.
Title: Re: Freshclam DB update fail
Post by: Glenn on September 21, 2015, 06:56:10 AM
Check what version of clam and clamd you are using , version 0.98.4 works better than 0.98.7 in regard to log file owner
Title: Re: Freshclam DB update fail
Post by: brijendrasial on September 21, 2015, 10:16:09 AM
Quote
chown clamav:clamav /var/log/clamav/freshclam.log
touch /var/run/clamav/clamd.sock
chown clamav:clamav /var/run/clamav/clamd.sock

Then run the update.
Quote
freshclam

Title: Re: Freshclam DB update fail
Post by: infinitech07 on October 18, 2015, 01:39:36 PM
The weird thing that I noticed on the old CWP version & the new CWP version is that the user & usergroup of the folders i.e. /var/log/clamav & /var/lib/clamav are different; the old one using "clamav" while the new one using "clam". Why??

Please refer to this post as well regarding the same issue reported lately.
Quote
http://forum.centos-webpanel.com/centos-6-problems/clamav-update-problem/
Title: Re: Freshclam DB update fail
Post by: Administrator on October 19, 2015, 05:15:11 AM
new version has newer clamAV from different repository so there are probably changes in the paths and username.