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
Freshclam getting error
-
- Forum Regular
- Posts: 661
- Joined: Mon Oct 29, 2007 6:51 pm
Re: Freshclam getting error
Does /etc/clamd.conf exist ?
Does it ahve the right owner and permissions ?
Does it ahve the right owner and permissions ?
Re: Freshclam getting error
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
[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
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: Freshclam getting error
that usually means clamd isnt running
Re: Freshclam getting error
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.
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>
<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>