Justin wrote:

After getting 20040203 to compile tonight on my RH 9 box, I ran into trouble starting the new daemon. It was convinced I had a "Malformed Database." The old version of clamd I was running didn't seem to think so. I remembered reading something about clamd picking up all files in the DBDIR and reading them as if they were a ClamAV's official cvd files. The contents of my /usr/local/share/clamav were a bit of a mystery to me.

-rw-r--r--    1 clamav   clamav     434176 Jan  7 21:19 b8946eefa674d8c5
-rw-r--r--    1 clamav   clamav      51709 Feb  4 00:21 daily.cvd
-rw-rw-r--    1 clamav   clamav          0 Feb  4 00:20 main.cvd
-rw-rw-r--    1 clamav   clamav         60 Feb  4 00:20 mirrors.txt
-rw-r--r--    1 clamav   clamav    1037239 Jan 27 08:03 viruses.db

I didn't recognize b8946eefa674d8c5, which I assumed to be an abandoned temp file.

Yup. That's it.

I also didn't know why my main.cvd was empty or why my viruses.db hadn't been updated since the 27th.

AFAIK, for every new install clamav always zeroes out main.cvd and daily.cvd. The real mistery is why you have non-zero daily.cvd but zero main.cvd

I eventually backed up this directory and removed its contents. Rerunning freshclam downloaded to fresh copies of viruses.db and daily.cvd. That instance of freshclam claimed it was downloading main.cvd as well, although that file never appeared.



I think it's the b8946eefa674d8c5. The download wasn't completed because of (perhaps) network error.

[EMAIL PROTECTED] /usr/local/share/clamav]#> freshclam ClamAV update process started at Wed Feb 4 00:24:25 2004
Reading CVD header (main.cvd): OK
Downloading main.cvd [*]
viruses.db updated (version: 19, sigs: 19987, f-level: 1, builder: ddm)
Reading CVD header (daily.cvd): OK
Downloading daily.cvd [*]
daily.cvd updated (version: 119, sigs: 625, f-level: 1, builder: ddm)
Database updated (20612 signatures) from database.clamav.net (64.74.124.90).


Everything seems to be running smoothly now. I wonder though, should I have a main.cvd?

yes

Should I have a mirrors.txt?

not with newer snapshots. You should have freshclam.conf. There's an entry DatabaseMirror which lets you choose your favorite (closest) mirror.

Regards,

Fajar A. Nugraha


------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to