[Resolved]Clamav: how to flush database

Started by bmail, February 13, 2020, 11:27:03 AM

Previous topic - Next topic
February 13, 2020, 11:27:03 AM Last Edit: February 13, 2020, 02:52:08 PM by bmail
Hello,

Since today, the last download of a clamav third party database (http://ftp.swin.edu.au/sanesecurity/jurlbl.ndb), Clamav do not want to start. This database seems not in good health ...

root@DBSecure:~ # /usr/local/etc/rc.d/clamav-clamd start
Starting clamav_clamd.
LibClamAV Error: Empty database file
LibClamAV Error: Can't load /var/db/clamav/jurlbla.ndb: Malformed database
LibClamAV Error: cli_loaddbdir(): error loading database /var/db/clamav/jurlbla.ndb
Thu Feb 13 11:00:21 2020 -> !Malformed database
/usr/local/etc/rc.d/clamav-clamd: WARNING: failed to start clamav_clamd

I tried to de-activate it within the list of additionnal signature, and restart clamav: it doesn't work.
Probably normal, as it concerns the download and refresh of database, not the calling of if in clamav.

Do you know how can I purge the database in order to restart clamav without this problemaic third party database ?

Just erase /var/db/clamav/jurlbla.ndb  ?

Thanks a lot for any ideas !





hi,

It looks like it's an update issue.

WARNING: Local version: 0.102.1 Recommended version: 0.102.2
WARNING: Your ClamAV installation is OUTDATED!

Cordialy,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Hello Darksense,

Yes, I notice it, but it seems strange that's only concern one third party database ...
Previously, I never notice that an issue on a third party database could prevent clamav to start.

That' why I wonder how to disable the loading of jurlbla.ndb (or properly erase it) , in order to start clamav.

Best regards,
Bertrand

Hi,

connection in console mode
Conection as a super user,
# cd /var/db/clamav
# rm jurlbla.ndb

webgui>services>clamav>configuration
remove signatures

Cordialy,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Ok, it works !
Just erasing without scruple jurlbla.ndb and unable it in signatures config, then restart clamav, then activate jurlbla.ndb and restart clamav.
Download is ok and clamav, even outdated, restart like a charm.
Probably an issue during downloading.

Thanks a lot for your advices.

Bertrand