View previous topic :: View next topic |
Author |
Message |
sps3000 n00b
Joined: 06 Mar 2007 Posts: 3
|
Posted: Tue May 01, 2007 1:08 pm Post subject: Klamav Update Process died unexpectedly! " workaround |
|
|
Klamav currently (1st May 2007) has a problem updating the virus database:-
Update Process died unexpectedly! Did you kill it manually?
Apart from being annoying, this means that fresh installs of Klamav can't even scan, because there is no database.
A workaround for this is:-
1.Make sure that Clamav has a database by running
Code: |
localhost ~ # freshclam
ClamAV update process started at Tue May 1 11:21:44 2007
main.cvd is up to date (version: 43, sigs: 104500, f-level: 14, builder: sven)
Downloading daily-3187.cdiff [100%]
daily.inc updated (version: 3187, sigs: 9231, f-level: 15, builder: arnaud)
Database updated (113731 signatures) from database.clamav.net (IP: 195.92.99.99)
Clamd successfully notified about the update.
localhost ~ #
|
2. Set up links between Clamav and Klamav so that Klamav knows where to find the db when it is scanning
Code: |
localhost ~ # ln -s /var/lib/clamav/daily.cvd /root/.klamav/database/daily.cvd
localhost ~ # ln -s /var/lib/clamav/main.cvd /root/.klamav/database/main.cvd
localhost ~ # ln -s /var/lib/clamav/mirrors.dat /root/.klamav/database/mirrors.dat
localhost ~ #
|
3. Use a scheduler (Cron, Kcron etc.) to run freshclam (/usr/bin/freshclam) as desired
4. check that the clam daemon is set to be notified of changes:-
Set SelfCheck in clamd.conf.
the SelfCheck option configures clamd to periodically check for definitions changes. A safe option to set, in the event other notification methods fail.
Setup NotifyClamd in freshclam.conf.
freshclam will need write permissions to the clamd socket file.
The virus databases will now be updated automatically and the rest of Klamav should work as normal (I havn't checked all of it yet!) |
|
Back to top |
|
|
Kasumi_Ninja Veteran
Joined: 18 Feb 2006 Posts: 1825 Location: The Netherlands
|
Posted: Sun May 06, 2007 8:11 am Post subject: |
|
|
Thanks for the tip! freshclam dooesn't work for me
Code: | # freshclam
ClamAV update process started at Sun May 6 10:07:38 2007
main.cvd is up to date (version: 43, sigs: 104500, f-level: 14, builder: sven)
Downloading daily-3204.cdiff [100%]
Downloading daily-3205.cdiff [100%]
Downloading daily-3206.cdiff [100%]
Downloading daily-3207.cdiff [100%]
Downloading daily-3208.cdiff [100%]
Downloading daily-3209.cdiff [100%]
Downloading daily-3210.cdiff [100%]
Downloading daily-3211.cdiff [100%]
daily.cvd updated (version: 3211, sigs: 9865, f-level: 15, builder: ccordes)
Database updated (114365 signatures) from database.clamav.net (IP: 195.85.130.84)
WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.sock
connect(): No such file or directory |
_________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered |
|
Back to top |
|
|
mimosinnet l33t
Joined: 10 Aug 2006 Posts: 713 Location: Barcelona, Spain
|
Posted: Tue May 22, 2007 9:36 pm Post subject: |
|
|
It may have something to do with /var/run/clamav/clamd.sock ownership. You could have a look at this post |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|