Posted over 4 years ago. Visible to the public.
fix clamav freshclam failing database updates
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:
CopyThu 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
.
Your development team has a full backlog of feature requests, chores and refactoring coupled with deadlines? We are familiar with that. With our "DevOps as a Service" offering, we support developer teams with infrastructure and operations expertise.