# ClamAV freshclam failure

**URL:** <https://forums.interworx.com/t/clamav-freshclam-failure/14242>\
**Category:** General Discussion\
**Tags:** clamav, freshclam, mirrors, clamav-failure\
**Created:** [February 1, 2018, 4:07am UTC](https://forums.interworx.com/t/clamav-freshclam-failure/14242 "2018-02-01T04:07:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [February 1, 2018, 4:07am UTC](https://forums.interworx.com/t/clamav-freshclam-failure/14242/1 "2018-02-01T04:07:58Z")

</div>

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](http://current.cvd.clamav.net) [current.cvd.clamav.net](http://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](http://current.cvd.clamav.net) TTL: 245 Software version from DNS: 0.99.3 Retrieving [http://database.clamav.net/main.cvd](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](http://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](http://current.cvd.clamav.net) TTL: 219 Software version from DNS: 0.99.3 Retrieving [http://database.clamav.net/main.cvd](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](http://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](http://current.cvd.clamav.net) TTL: 227 Software version from DNS: 0.99.3 Retrieving [http://database.clamav.net/main.cvd](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](http://database.clamav.net) Giving up on [database.clamav.net](http://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](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](http://current.cvd.clamav.net) TTL: 1649 Software version from DNS: 0.99.3 Retrieving [http://database.clamav.net/main.cvd](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](http://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](http://current.cvd.clamav.net) TTL: 201 Software version from DNS: 0.99.3 Retrieving [http://database.clamav.net/main.cvd](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](http://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](http://current.cvd.clamav.net) TTL: 194 Software version from DNS: 0.99.3 Retrieving [http://database.clamav.net/main.cvd](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](http://database.clamav.net) Giving up on [database.clamav.net](http://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](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](http://current.cvd.clamav.net)  
TTL: 151  
Software version from DNS: 0.99.3  
Retrieving [http://database.clamav.net/main.cvd](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](http://database.clamav.net) (IP: 78.96.7.8)  
Ignoring mirror 78.96.7.8 (due to previous errors)  
Trying host [database.clamav.net](http://database.clamav.net) (130.59.113.36)…  
Trying to download [http://database.clamav.net/main.cvd](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](http://main.58.84.1.0.823B7124.ping.clamav.net)  
Retrieving [http://database.clamav.net/daily.cvd](http://database.clamav.net/daily.cvd)  
Trying to download [http://database.clamav.net/daily.cvd](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](http://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](http://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](http://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)  
[\*\*\*\*@\*\*\*\*\* ~]#
