ClamAV update error from cron

Operating System & Version
CentOS 7.9
cPanel & WHM Version
94.0.4

ramleaf

Registered
Mar 17, 2017
4
1
3
Uruguay
cPanel Access Level
Root Administrator
Hi, I get this email notification everyday that ClamAV fails to update.

Code:
Cron <[email protected]> /usr/local/cpanel/3rdparty/bin/freshclam --quiet --no-warnings

ERROR: getpatch: Can't download daily-26096.cdiff from database.clamav.net
ERROR: Can't download daily.cvd from database.clamav.net

However if I run the update manually, it works

Code:
# /usr/local/cpanel/3rdparty/bin/freshclam
ClamAV update process started at Fri Apr  9 12:05:50 2021
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.101.5 Recommended version: 0.103.2
DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
main.cvd is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
Downloading daily-26135.cdiff [100%]
daily.cld updated (version: 26135, sigs: 3969549, f-level: 63, builder: raynman)
bytecode.cvd is up to date (version: 333, sigs: 92, f-level: 63, builder: awillia2)
Database updated (8534543 signatures) from database.clamav.net (IP: 104.16.218.84)
I've re-installed ClamAV but did not solve it.
How can i fix this?
 

cPDavidL

Linux Analyst II
Staff member
Oct 15, 2012
79
17
133
cPanel Access Level
Root Administrator
Hello @ramleaf

The database being unable to update can occur for a large array of different reasons, but the most common, by far, is a communication failure between the local server and the database server. It is not uncommon for this to correct itself on the next update run. However, the consistency is disconcerting. I would recommend opening a ticket with our support staff( via support.cpanel.net ), requesting that we schedule time for someone to log in and test the clamav mirrors(and manual freshclam) to see if it is something replicable during that time frame.
 
  • Like
Reactions: cPRex