Submitted by yngens on Wed, 03/28/2018 - 17:05
Problems with clamav happen quite regularly on Virtulmin servers and we are used to it, however today was massive failure on all Virtualmin servers we manage. The error is
ERROR: getpatch: Can't download daily-24428.cdiff from database.clamav.net
Running freshclam
gives:
freshclam
ClamAV update process started at Wed Mar 28 22:01:27 2018
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
WARNING: getfile: daily-24428.cdiff not found on database.clamav.net (IP: 200.236.31.1)
WARNING: getpatch: Can't download daily-24428.cdiff from database.clamav.net
Trying host database.clamav.net (198.148.78.4)...
WARNING: getfile: Unknown response from database.clamav.net (IP: 198.148.78.4)
WARNING: getpatch: Can't download daily-24428.cdiff from database.clamav.net
Trying host database.clamav.net (12.167.151.1)...
Downloading daily-24428.cdiff [100%]
Downloading daily-24429.cdiff [100%]
daily.cld updated (version: 24429, sigs: 1891690, f-level: 63, builder: neo)
bytecode.cvd is up to date (version: 319, sigs: 75, f-level: 63, builder: neo)
[LibClamAV] Detected duplicate databases /var/lib/clamav/bytecode.cvd and /var/lib/clamav/bytecode.cld, please manually remove one of them
[LibClamAV] Detected duplicate databases /var/lib/clamav/main.cvd and /var/lib/clamav/main.cld, please manually remove one of them
Database updated (6458014 signatures) from database.clamav.net (IP: 12.167.151.1)
Would be really nice if Virtualmin sorted out ClamAv problems for all.
Status:
Active
Comments
Submitted by andreychek on Wed, 03/28/2018 - 19:47 Comment #1
Passing this along to Joe for further review.
Submitted by JamieCameron on Wed, 03/28/2018 - 23:00 Comment #2
Looks like this error is coming from the clamav service?
Submitted by awebsite4u on Sat, 03/31/2018 - 03:39 Comment #3
I seem to have solved this (for now anyway) by deleting /var/lib/clamav/mirrors.dat and then executing freshclam -v . Suggestion discovered by reading FAQ at http://www.clamav.net/documents/official-mirror-faq
Hope this helps others.
Submitted by DonX on Mon, 04/02/2018 - 14:52 Comment #4
awebsite4u, thanks for the solution(for now). That did it for me.
Hopefully we'll also can get update to Clamav itself in the virtualmin repo someday. For details, see this link: https://www.cloudmin.com/node/40300
Submitted by yngens on Wed, 04/04/2018 - 05:48 Comment #5
That kind of temporary solutions are good if you have a server or couple. With managing Virtualmin servers on massive scale the issue becomes constant headache and should be properly dealt by Jamie once and for all.