23.7 ClamAV no long works

Started by lshantz, October 11, 2023, 12:47:50 AM

Previous topic - Next topic
So I had a hard drive go bad and the system would not boot. We had a backup of the configuration files. I did a fresh install on a new system and restored the  backup. One thing I found is many things do NOT get restored/installed with a restore. I've been working hard on trying to restore things that didn't load and are not working.

ClamAV, is no longer working. It has been since the redo. I tried the following at CLI:
pkg remove os-clamav clamav
rm -rf /var/db/clamav
pkg install os-clamav
I then clicked on the download signatures in the GUI and checked the logs. Still not working.

Date
   
Severity
   
Process
   
Line
   
2023-10-10T11:31:18-07:00   Error   freshclam   Can't send to clamd: Socket operation on non-socket   
2023-10-10T11:31:18-07:00   Error   freshclam   NotifyClamd: No communication socket specified in /usr/local/etc/clamd.conf   
2023-10-04T00:27:56-07:00   Error   freshclam   Update failed.   
2023-10-04T00:27:56-07:00   Error   freshclam   Database update process failed: HTTP GET failed   
2023-10-04T00:27:56-07:00   Error   freshclam   Update failed for database: daily   
2023-10-04T00:27:56-07:00   Error   freshclam   check_for_new_database_version: Failed to find daily database using server https://database.clamav.net.   
2023-10-04T00:27:56-07:00   Warning   freshclam   Failed to get daily database version information from server: https://database.clamav.net   
2023-10-04T00:27:56-07:00   Error   freshclam   Message: Couldn't resolve host name   
2023-10-04T00:27:56-07:00   Error   freshclam   remote_cvdhead: Download failed (6)   
2023-10-04T00:27:51-07:00   Error   freshclam   check_for_new_database_version: Failed to find daily database using server https://database.clamav.net.   
2023-10-04T00:27:51-07:00   Warning   freshclam   Failed to get daily database version information from server: https://database.clamav.net   
2023-10-04T00:27:51-07:00   Warning   freshclam   Message: Couldn't resolve host name   
2023-10-04T00:27:51-07:00   Warning   freshclam   remote_cvdhead: Download failed (6)   
2023-10-04T00:27:45-07:00   Error   freshclam   check_for_new_database_version: Failed to find daily database using server https://database.clamav.net.   
2023-10-04T00:27:45-07:00   Warning   freshclam   Failed to get daily database version information from server: https://database.clamav.net   
2023-10-04T00:27:45-07:00   Warning   freshclam   Message: Couldn't resolve host name   
2023-10-04T00:27:45-07:00   Warning   freshclam   remote_cvdhead: Download failed (6)   
2023-10-04T00:27:45-07:00   Warning   freshclam   Invalid DNS reply. Falling back to HTTP mode.   
2023-10-04T00:27:45-07:00   Warning   freshclam   Can't query current.cvd.clamav.net   
2023-09-23T12:22:47-07:00   Warning   freshclam   Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.sock: No such file or directory

The first thing I did was go look in the location where things are and it seems the install package is not installing properly? See the bottom line of the log. I don't want to start manually adding stuff and bork the system without some guidance from the gurus. I'm just a old man, trying to proect his household. Any help appreciated.

DNS issue... "Couldn't resolve host name"


Cheers,
Franco

Actually that is a false flag. It is a configuration issue. I can from the CLI ping that URL and it resolves just fine. The config file is blank.

I retract that, but can't delete it. Now it IS failing. So I will fall back and see why that is happening. More to follow.

So earlier I did a ping to clamav.net and it works. The "current.cvd.clamav.net" is apparently a bad URL. So now I have to find out what is the proper one and see if there is a config file that I can add that to. But why the invalid directory where a config should be, and why all of a sudden is the new fresh install of clamav on 23.7 failing when it worked before?