Author Topic: Freshclam DB update fail  (Read 11157 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Freshclam DB update fail
« 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).

Offline
*****
Re: Freshclam DB update fail
« Reply #1 on: September 18, 2015, 12:35:55 PM »
Hi.

Try to create the /var/log/clamav/freshclam.log and change owner to it.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
**
Re: Freshclam DB update fail
« Reply #2 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

Re: Freshclam DB update fail
« Reply #3 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


Offline
*
Re: Freshclam DB update fail
« Reply #4 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/

Offline
*
Re: Freshclam DB update fail
« Reply #5 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.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services