As my subject indicates, I'm having a problem where clamd won't start because it reports "malformed database" in my clamd.log file.
here is the log from freshclam:
--------------------------------------
Received signal: wake up
ClamAV update process started at Sun Jun 22 07:43:03 2008
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.92.1 Recommended version: 0.93.1
DON'T PANIC! Read
Clam AntiVirus
main.inc is up to date (version: 46, sigs: 231834, f-level: 26, builder: sven)
Downloading daily-7532.cdiff [100%]
daily.inc updated (version: 7532, sigs: 93812, f-level: 31, builder: ccordes)
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Current functionality level = 26, recommended = 31
DON'T PANIC! Read
Clam AntiVirus
Database updated (325646 signatures) from db.us.clamav.net (IP: 65.120.238.2)
Clamd successfully notified about the update.
--------------------------------------
Here is the log of the update that failed from clamd.log:
Sun Jun 22 07:43:06 2008 -> SelfCheck: Database modification detected. Forcing reload.
Sun Jun 22 07:43:06 2008 -> Reading databases from /opt/zimbra/data/clamav/db
Sun Jun 22 07:43:13 2008 -> ERROR: reload db failed: Malformed database
Sun Jun 22 07:43:13 2008 -> Terminating because of a fatal error.
Sun Jun 22 07:43:13 2008 -> Pid file removed.
Sun Jun 22 07:43:13 2008 -> --- Stopped at Sun Jun 22 07:43:13 2008
here is the output of clamscan -d dail.cvd:
/opt/zimbra/clamav/bin/clamscan -d daily.cvd
LibClamAV Warning: **************************************************
LibClamAV Warning: *** The virus database is older than 7 days! ***
LibClamAV Warning: *** Please update it as soon as possible. ***
LibClamAV Warning: **************************************************
/opt/zimbra/data/clamav/db/main.cvd: OK
/opt/zimbra/data/clamav/db/mirrors.dat: OK
/opt/zimbra/data/clamav/db/daily.cvd: OK
----------- SCAN SUMMARY -----------
Known viruses: 6307
Engine version: 0.92.1
Scanned directories: 1
Scanned files: 3
Infected files: 0
Data scanned: 11.04 MB
Time: 0.623 sec (0 m 0 s)
here is output of clamscan -d main.cvd:
/opt/zimbra/clamav/bin/clamscan -d main.cvd
/opt/zimbra/data/clamav/db/main.cvd: OK
/opt/zimbra/data/clamav/db/mirrors.dat: OK
/opt/zimbra/data/clamav/db/daily.cvd: OK
----------- SCAN SUMMARY -----------
Known viruses: 169676
Engine version: 0.92.1
Scanned directories: 1
Scanned files: 3
Infected files: 0
Data scanned: 11.04 MB
Time: 6.866 sec (0 m 6 s)
----------------------------------------------
As far as I can tell, the databases are good.
I've even tried renaming them (daily and main), and having freshclam pull in new ones; the new files have the same md5sum as my old files, so I don't think they are actually corrupt.
I've disabled the antivirus service for now so that the company can send and receive email.
Anyone have any suggestions on how to get clamd running again?
Let me know if you need any other information.
Thanks,
Billy