ClamAV freshclam failure

Hi

If your ClamAV is not correctly receiving updates to daily.cvd, then the best way to correct this is as follows:
SSH into server
stop clamav
stop freshclam
cd /var/clamav
delete the following 3 files
main.cvd
daily.cvd
mirrors.dat
start freshclam and clamav
run freshclam -v
exit out of ssh
below is the test for clamav from one of our server which failed, and the above worked to bring it into normal function
I hope that helps a little
Many thanks
John

freshclam failure

[@***** ~]# host -t txt current.cvd.clamav.net
current.cvd.clamav.net descriptive text “0.99.3:58:24275:1517480940:1:63:46968:319”
[
@***** ~]# freshclam -v
Current working dir is /var/clamav
Max retries == 3
ClamAV update process started at Thu Feb 1 11:56:18 2018
Using IPv6 aware code
Querying current.cvd.clamav.net
TTL: 245
Software version from DNS: 0.99.3
Retrieving http://database.clamav.net/main.cvd
Ignoring mirror 78.96.7.8 (due to previous errors)
Ignoring mirror 130.59.113.36 (due to previous errors)
Ignoring mirror 78.96.7.8 (due to previous errors)
Ignoring mirror 130.59.113.36 (due to previous errors)
WARNING: Can’t download main.cvd from database.clamav.net
Trying again in 5 secs…
ClamAV update process started at Thu Feb 1 11:56:23 2018
Using IPv6 aware code
Querying current.cvd.clamav.net
TTL: 219
Software version from DNS: 0.99.3
Retrieving http://database.clamav.net/main.cvd
Ignoring mirror 78.96.7.8 (due to previous errors)
Ignoring mirror 130.59.113.36 (due to previous errors)
WARNING: Can’t download main.cvd from database.clamav.net
Trying again in 5 secs…
ClamAV update process started at Thu Feb 1 11:56:28 2018
Using IPv6 aware code
Querying current.cvd.clamav.net
TTL: 227
Software version from DNS: 0.99.3
Retrieving http://database.clamav.net/main.cvd
Ignoring mirror 78.96.7.8 (due to previous errors)
Ignoring mirror 130.59.113.36 (due to previous errors)
ERROR: Can’t download main.cvd from database.clamav.net
Giving up on database.clamav.net
Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check http://www.clamav.net/doc/mirrors-faq.html for possible reasons.
[****@***** ~]# freshclam -v
Current working dir is /var/clamav
Max retries == 3
ClamAV update process started at Thu Feb 1 11:57:06 2018
Using IPv6 aware code
Querying current.cvd.clamav.net
TTL: 1649
Software version from DNS: 0.99.3
Retrieving http://database.clamav.net/main.cvd
Ignoring mirror 78.96.7.8 (due to previous errors)
Ignoring mirror 130.59.113.36 (due to previous errors)
Ignoring mirror 78.96.7.8 (due to previous errors)
Ignoring mirror 130.59.113.36 (due to previous errors)
WARNING: Can’t download main.cvd from database.clamav.net
Trying again in 5 secs…
ClamAV update process started at Thu Feb 1 11:57:11 2018
Using IPv6 aware code
Querying current.cvd.clamav.net
TTL: 201
Software version from DNS: 0.99.3
Retrieving http://database.clamav.net/main.cvd
Ignoring mirror 130.59.113.36 (due to previous errors)
Ignoring mirror 78.96.7.8 (due to previous errors)
WARNING: Can’t download main.cvd from database.clamav.net
Trying again in 5 secs…
ClamAV update process started at Thu Feb 1 11:57:16 2018
Using IPv6 aware code
Querying current.cvd.clamav.net
TTL: 194
Software version from DNS: 0.99.3
Retrieving http://database.clamav.net/main.cvd
Ignoring mirror 130.59.113.36 (due to previous errors)
Ignoring mirror 78.96.7.8 (due to previous errors)
ERROR: Can’t download main.cvd from database.clamav.net
Giving up on database.clamav.net
Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check http://www.clamav.net/doc/mirrors-faq.html for possible reasons.

After above actions completed

[@***** ~]# freshclam -v
Current working dir is /var/clamav
Max retries == 3
ClamAV update process started at Thu Feb 1 11:57:34 2018
Using IPv6 aware code
Querying current.cvd.clamav.net
TTL: 151
Software version from DNS: 0.99.3
Retrieving http://database.clamav.net/main.cvd
connect_error: getsockopt(SO_ERROR): fd=4 error=111: Connection refused
Can’t connect to port 80 of host database.clamav.net (IP: 78.96.7.8)
Ignoring mirror 78.96.7.8 (due to previous errors)
Trying host database.clamav.net (130.59.113.36)…
Trying to download http://database.clamav.net/main.cvd (IP: 130.59.113.36)
Downloading main.cvd [100%]
Loading signatures from main.cvd
Properly loaded 4566249 signatures from new main.cvd
main.cvd updated (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Querying main.58.84.1.0.823B7124.ping.clamav.net
Retrieving http://database.clamav.net/daily.cvd
Trying to download http://database.clamav.net/daily.cvd (IP: 130.59.113.36)
Downloading daily.cvd [100%]
Loading signatures from daily.cvd
Properly loaded 1841453 signatures from new daily.cvd
daily.cvd updated (version: 24275, sigs: 1841355, f-level: 63, builder: neo)
Querying daily.24275.84.1.0.823B7124.ping.clamav.net
bytecode.cvd version from DNS: 319
bytecode.cvd is up to date (version: 319, sigs: 75, f-level: 63, builder: neo)
Database updated (6407679 signatures) from database.clamav.net (IP: 130.59.113.36)
Clamd successfully notified about the update.
[
@***** ~]# freshclam -v
Current working dir is /var/clamav
Max retries == 3
ClamAV update process started at Thu Feb 1 11:58:08 2018
Using IPv6 aware code
Querying current.cvd.clamav.net
TTL: 112
Software version from DNS: 0.99.3
main.cvd version from DNS: 58
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
daily.cvd version from DNS: 24275
daily.cvd is up to date (version: 24275, sigs: 1841355, f-level: 63, builder: neo)
bytecode.cvd version from DNS: 319
bytecode.cvd is up to date (version: 319, sigs: 75, f-level: 63, builder: neo)
[****@***** ~]#