This is on a Mac with a MacPorts ClamAV installation.
Now I have the exact opposite situation. It fails if I run it as me, but works if I run as root.
(Followed by many, many more. See below.)
If I use sudo, that error never appears.
I think this must be some sort of DNS error, but I have no idea what it might be or how to fix it.
This started failing while I was away on vacation. Nothing was changed on the machine while I was away.
FWIW, I’m using Google’s DNS servers. I live in Thailand and they seem to be the fastest.
MrMuscle:bin mnewman$ /opt/local/bin/freshclam -v
Current working dir is /opt/local/share/clamav
Max retries == 3
ClamAV update process started at Wed Sep 5 14:49:53 2018
Using IPv6 aware code
WARNING: Invalid DNS reply. Falling back to HTTP mode.
If-Modified-Since: Wed, 07 Jun 2017 21:38:10 GMT
Reading CVD header (main.cvd): nonblock_connect: connect(): fd=7 errno=64: Host is down
nonblock_connect: connect(): fd=7 errno=64: Host is down
Ignoring mirror 104.16.188.138 (due to previous errors)
nonblock_connect: connect(): fd=7 errno=64: Host is down
nonblock_connect: connect(): fd=7 errno=64: Host is down
nonblock_connect: connect(): fd=7 errno=64: Host is down
Trying again in 5 secs...
ClamAV update process started at Wed Sep 5 14:49:58 2018
Using IPv6 aware code
WARNING: Invalid DNS reply. Falling back to HTTP mode.
If-Modified-Since: Wed, 07 Jun 2017 21:38:10 GMT
Reading CVD header (main.cvd): Ignoring mirror 104.16.189.138 (due to previous errors)
Ignoring mirror 104.16.188.138 (due to previous errors)
Ignoring mirror 104.16.186.138 (due to previous errors)
Ignoring mirror 104.16.185.138 (due to previous errors)
Ignoring mirror 104.16.187.138 (due to previous errors)
Trying again in 5 secs...
ClamAV update process started at Wed Sep 5 14:50:03 2018
Using IPv6 aware code
WARNING: Invalid DNS reply. Falling back to HTTP mode.
If-Modified-Since: Wed, 07 Jun 2017 21:38:10 GMT
Reading CVD header (main.cvd): Ignoring mirror 104.16.187.138 (due to previous errors)
Ignoring mirror 104.16.185.138 (due to previous errors)
Ignoring mirror 104.16.189.138 (due to previous errors)
Ignoring mirror 104.16.186.138 (due to previous errors)
Ignoring mirror 104.16.188.138 (due to previous errors)
ClamAV update process started at Wed Sep 5 14:50:03 2018
Using IPv6 aware code
WARNING: Invalid DNS reply. Falling back to HTTP mode.
If-Modified-Since: Wed, 07 Jun 2017 21:38:10 GMT
Reading CVD header (main.cvd): Ignoring mirror 104.16.187.138 (due to previous errors)
Ignoring mirror 104.16.188.138 (due to previous errors)
Ignoring mirror 104.16.189.138 (due to previous errors)
Ignoring mirror 104.16.185.138 (due to previous errors)
Ignoring mirror 104.16.186.138 (due to previous errors)
MrMuscle:bin mnewman$ sudo /opt/local/bin/freshclam -v
Password:
Current working dir is /opt/local/share/clamav
Max retries == 3
ClamAV update process started at Wed Sep 5 14:50:16 2018
Using IPv6 aware code
TTL: 591
Software version from DNS: 0.100.1
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: 24903
Ignoring mirror 104.16.185.138 (due to previous errors)
Ignoring mirror 104.16.186.138 (due to previous errors)
Ignoring mirror 104.16.188.138 (due to previous errors)
Ignoring mirror 104.16.189.138 (due to previous errors)
Ignoring mirror 104.16.187.138 (due to previous errors)
Ignoring mirror 104.16.185.138 (due to previous errors)
Ignoring mirror 104.16.186.138 (due to previous errors)
Ignoring mirror 104.16.188.138 (due to previous errors)
Ignoring mirror 104.16.189.138 (due to previous errors)
Ignoring mirror 104.16.187.138 (due to previous errors)
Ignoring mirror 104.16.188.138 (due to previous errors)
Ignoring mirror 104.16.186.138 (due to previous errors)
Ignoring mirror 104.16.189.138 (due to previous errors)
Ignoring mirror 104.16.187.138 (due to previous errors)
Ignoring mirror 104.16.185.138 (due to previous errors)
Ignoring mirror 104.16.185.138 (due to previous errors)
Ignoring mirror 104.16.188.138 (due to previous errors)
Ignoring mirror 104.16.186.138 (due to previous errors)
Ignoring mirror 104.16.189.138 (due to previous errors)
Ignoring mirror 104.16.187.138 (due to previous errors)
WARNING: Incremental update failed, trying to download daily.cvd
Whitelisting short-term blacklisted mirrors
Downloading daily.cvd [100%]
Loading signatures from daily.cvd
Properly loaded 2074942 signatures from new daily.cvd
daily.cvd updated (version: 24903, sigs: 2074942, f-level: 63, builder: neo)
Querying daily.24903.92.1.0.6810BC8A.ping.clamav.net
bytecode.cvd version from DNS: 327
bytecode.cvd is up to date (version: 327, sigs: 91, f-level: 63, builder: neo)
Database updated (6641282 signatures) from db.US.clamav.net (IP: 104.16.188.138)
Clamd successfully notified about the update.