Marius Schuller
5 years
Marius Schuller
5 years
Henning Koch
10 years
Andreas Herz
6 years
Claus-Theodor Riegg
6 years
Claus-Theodor Riegg
7 years
Claus-Theodor Riegg
7 years
Claus-Theodor Riegg
7 years
Claus-Theodor Riegg
7 years
Claus-Theodor Riegg
8 years
Marius Schuller
8 years
Claus-Theodor Riegg
8 years

fix clamav freshclam failing database updates

Posted . Visible to the public.

If freshclam updates are failing even though the update servers are available and you find error messages like the following in the log you may have outdated or wrong data in freshclams data files:

Thu Mar 29 12:49:52 2018 -> ClamAV update process started at Thu Mar 29 12:49:52 2018
Thu Mar 29 12:49:52 2018 -> main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Thu Mar 29 12:49:52 2018 -> WARNING: getpatch: Can't download daily-24428.cdiff from db.local.clamav.net
Thu Mar 29 12:49:52 2018 -> WARNING: getpatch: Can't download daily-24428.cdiff from db.local.clamav.net
Thu Mar 29 12:49:52 2018 -> WARNING: getpatch: Can't download daily-24428.cdiff from db.local.clamav.net
Thu Mar 29 12:49:52 2018 -> WARNING: getpatch: Can't download daily-24428.cdiff from db.local.clamav.net
Thu Mar 29 12:49:52 2018 -> WARNING: getpatch: Can't download daily-24428.cdiff from db.local.clamav.net
Thu Mar 29 12:49:52 2018 -> WARNING: Incremental update failed, trying to download daily.cvd
Thu Mar 29 12:49:52 2018 -> Trying host db.local.clamav.net (62.27.56.14)...
Thu Mar 29 13:01:31 2018 -> Downloading daily.cvd [100%]
Thu Mar 29 13:01:31 2018 -> ERROR: Verification: Can't verify database integrity

Fix

Go to /var/lib/clamav and move the following files to /tmp:

  • daily.cld
  • main.cvd
  • mirrors.dat

Afterwards restart freshclam and check the log if the update is working now. If yes you can delete the files you moved to /tmp.

Claus-Theodor Riegg
Last edit
Claus-Theodor Riegg
License
Source code in this card is licensed under the MIT License.