Page 1 of 1

Freshclam getting error

Posted: Tue May 05, 2009 3:58 pm
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

Re: Freshclam getting error

Posted: Wed May 06, 2009 12:12 pm
by hostingguy
Does /etc/clamd.conf exist ?
Does it ahve the right owner and permissions ?

Re: Freshclam getting error

Posted: Wed May 06, 2009 2:43 pm
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

Re: Freshclam getting error

Posted: Wed May 06, 2009 4:49 pm
by scott
that usually means clamd isnt running

Re: Freshclam getting error

Posted: Wed May 06, 2009 5:17 pm
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.