> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Tomasz Kojm > Sent: Thursday, April 12, 2007 10:19 AM
> On Wed, 11 Apr 2007 15:07:32 +0200 > Luigi Iotti <[EMAIL PROTECTED]> wrote: > > > Hi all > > > > I'm new on the list, is this is a FAQ please tell me so. I'm unsure if > > my problem is related to the other one that today is discussed on the > > list. > > > > I have several clamav installations. I use it with Postfix on CentOS > > (very similar to Red Hat). I use the clamav RPM packages available on > > http://crash.fce.vutbr.cz , but recompiled on CentOS. > > > > Last night suddenly, on several of my custoers' mail servers, clamd > > stopped running. > > In the lo I find: > > Wed Apr 11 04:02:13 2007 -> SelfCheck: Database status OK. > > Wed Apr 11 04:38:23 2007 -> SelfCheck: Database modification detected. > > Forcing reload. > > Wed Apr 11 04:38:24 2007 -> Reading databases from /var/lib/clamav > > Wed Apr 11 04:38:24 2007 -> ERROR: reload db failed: Broken or not a CVD > > file Wed Apr 11 04:38:24 2007 -> Terminating because of a fatal error. > > Wed Apr 11 04:38:24 2007 -> Socket file removed. > > Wed Apr 11 04:38:24 2007 -> Pid file removed. > > Wed Apr 11 04:38:24 2007 -> --- Stopped at Wed Apr 11 04:38:24 2007 > > This seems to be caused by some 3rd party cron script, see > http://lurker.clamav.net/message/20070411.175950.b7329d9f.en.html Yes I know about it.. I'm the author of the message you're pointing me to :) But there are good news: I verified that the sole presence of an empty file named literally *.cvd was making clamd exit. Very good... thanks for making me think about it. I think that the scripts shipping with the RPM packages from http://crash.fce.vutbr.cz/ should be corrected with something like: --- freshclam.orig 2007-03-05 17:56:11.000000000 +0100 +++ freshclam 2007-04-11 21:54:50.000000000 +0200 @@ -1,6 +1,8 @@ #!/bin/bash # Remove garbage occasionally left after unsuccessful updates -/bin/touch -a /var/lib/clamav/*.cvd +# /bin/touch -a /var/lib/clamav/*.cvd +find /var/lib/clamav/ -type f -name '*.cvd' -exec touch -a '{}' ';' +find /var/lib/clamav/ -type d -name '*.inc' | while read dir; do find $dir -exec touch -a '{}' ';' ; done /usr/sbin/tmpwatch 72 /var/lib/clamav --- clamd.orig 2007-04-11 14:24:58.000000000 +0200 +++ clamd 2007-04-11 21:48:56.000000000 +0200 @@ -17,7 +17,7 @@ test -f /etc/clamd.conf || exit 0 -if ! [ -f /var/lib/clamav/main.cvd ]; then +if ! [ -f /var/lib/clamav/main.cvd -o -d /var/lib/clamav/main.inc ]; then echo "ERROR: Clamav DB missing! Run 'freshclam --verbose' as root." exit 0 fi _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html