Freshclam Malformed database
-
I've been having internet access issues and tracked it down to the fact that the clamav database is broken because the freshclam downloads aren't working. If I run freshclam from a shell (for testing purposes) this is what I get:
/usr/local/bin/freshclam ClamAV update process started at Sun Mar 12 22:56:19 2017 main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer) Downloading daily-23193.cdiff [100%] Downloading daily-23194.cdiff [100%] Downloading daily-23195.cdiff [100%] Downloading daily-23196.cdiff [100%] ERROR: During database load : WARNING: [LibClamAV] cli_dbgets: Invalid data or internal buffer too small [...] ERROR: Failed to load new database: Malformed database WARNING: Database load exited with status 55 ERROR: Failed to load new database
Does anyone know how to fix this? There are posts on it around the place but nothing concrete other than enabling bypass which apparently turns off antivirus filtering which is the one and only reason I installed squid and squidguard in the first place.
-
rm -rf /var/db/clamav/*
-
Thanks, I'll try that.
Why does this happen in the first place and how is it best avoided? It's a bit of a big deal because it prevents people from viewing web pages. Is there a way of auto detecting it and fixing the problem without manual intervention?
-
Never seen it. And no, apparently there's no way to fix it automatically, as you can see from the output.