Freshclam getting error

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
kanagaraj
Forum User
Forum User
Posts: 13
Joined: Mon Oct 17, 2005 7:12 am

Freshclam getting error

Unread post by kanagaraj »

I run freshclam our centos5 server we got following error:

ClamAV update process started at Wed May 6 01:24:17 2009
main.cvd is up to date (version: 50, sigs: 500667, f-level: 38, builder: sven)
Trying host db.us.clamav.net (199.184.215.2)...
WARNING: getfile: daily-9214.cdiff not found on remote server (IP: 199.184.215.2)
WARNING: getpatch: Can't download daily-9214.cdiff from db.us.clamav.net
WARNING: getfile: daily-9214.cdiff not found on remote server (IP: 64.142.100.50)
WARNING: getpatch: Can't download daily-9214.cdiff from db.us.clamav.net
WARNING: getfile: daily-9214.cdiff not found on remote server (IP: 64.142.100.50)
WARNING: getpatch: Can't download daily-9214.cdiff from db.us.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Trying host db.us.clamav.net (155.98.64.86)...
Downloading daily.cvd [100%]
daily.cvd updated (version: 9330, sigs: 48841, f-level: 42, builder: ccordes)
Database updated (549508 signatures) from db.us.clamav.net (IP: 155.98.64.86)
WARNING: Clamd was NOT notified: Can't find or parse configuration file /etc/clamd.conf
how can we solve this

Thanks
hostingguy
Forum Regular
Forum Regular
Posts: 661
Joined: Mon Oct 29, 2007 6:51 pm

Re: Freshclam getting error

Unread post by hostingguy »

Does /etc/clamd.conf exist ?
Does it ahve the right owner and permissions ?
kanagaraj
Forum User
Forum User
Posts: 13
Joined: Mon Oct 17, 2005 7:12 am

Re: Freshclam getting error

Unread post by kanagaraj »

i have etc/clamd.conf. but now have the following error

[root@new ~]# freshclam
ClamAV update process started at Thu May 7 00:10:59 2009
main.cvd is up to date (version: 50, sigs: 500667, f-level: 38, builder: sven)
Downloading daily-9331.cdiff [100%]
Downloading daily-9332.cdiff [100%]
Downloading daily-9333.cdiff [100%]
daily.cld updated (version: 9333, sigs: 48852, f-level: 42, builder: guitar)
Database updated (549519 signatures) from db.us.clamav.net (IP: 64.142.100.50)
WARNING: Clamd was NOT notified: Can't connect to clamd through /tmp/clamd.socket
connect(): No such file or directory

how can i create the file /tmp/clamd.socket

Thanks
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Freshclam getting error

Unread post by scott »

that usually means clamd isnt running
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Freshclam getting error

Unread post by faris »

There's something very wrong there.

If you want to try a simple solution, delete /etc/clamd.conf, delete /etc/freshclam.conf, then remove clamav, clamd and clamav-db (using: yum remove clamav clamd clamav-db). Then reinstall clamav, clamd and clamav-db (using: yum install clamav clamd clamav-db)

After you have done that (make sure you get no errors when you do so), run

/etc/cron.daily/freshclam

This will correct any incorrect permissions on any files and update all the sigs.

Then to make sure all is well, run:

service clamd restart

As long as you get no errrors, that's good.

Then run:

freshclam

Again as long as you get no errors all should be well.

Incidentally, if you have installed qmail-scanner then you should probably also run qmail-scanner-reonfigure after you have removed and re-installed clamd/av/av-db.

All of the above isn't necessarily the best way to do things, but it is a quick fix that might solve your problem if you don't have time to look into what has gone wrong.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
Post Reply