OPNsense Forum
Archive => 19.7 Legacy Series => Topic started by: Darkopnsense on December 30, 2019, 05:54:37 pm
-
Hello michael,
I am in the opsense test phase, I have six different physical machines with updated bios.
I encounter the same problem on three of them with CLAMAV, namely the following message:
Sat Dec 28 10:30:26 2019 -> ERROR: Update failed.
Sat Dec 28 10:30:26 2019 -> ERROR: Database update process failed: Connection failed (5)
Sat Dec 28 10:30:26 2019 -> WARNING: fc_update_databases: fc_update_database failed: Connection failed (5)
Sat Dec 28 10:30:26 2019 -> ERROR: Update failed for database: main
Sat Dec 28 10:30:26 2019 -> Giving up on https://database.clamav.net...
Sat Dec 28 10:30:26 2019 -> ERROR: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Sat Dec 28 10:30:26 2019 -> ERROR: Download failed (28) Sat Dec 28 10:30:26 2019 -> ERROR: Message: Timeout was reached
Sat Dec 28 10:29:26 2019 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-85a34f4934f1e58c44692e33abf0d5fb.tmp
Sat Dec 28 10:29:26 2019 -> downloadFile: Download source: https://database.clamav.net/main.cvd
Sat Dec 28 10:29:26 2019 -> Retrieving https://database.clamav.net/main.cvd
Sat Dec 28 10:29:26 2019 -> main database available for download (remote version: 59)
Sat Dec 28 10:29:26 2019 -> query_remote_database_version: main.cvd version from DNS: 59
Sat Dec 28 10:29:26 2019 -> check_for_new_database_version: No local copy of "main" database.
Sat Dec 28 10:29:21 2019 -> Trying again in 5 secs...
Sat Dec 28 10:29:21 2019 -> WARNING: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Sat Dec 28 10:29:21 2019 -> WARNING: Download failed (28) Sat Dec 28 10:29:21 2019 -> WARNING: Message: Timeout was reached
Sat Dec 28 10:28:21 2019 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-d97abb4d31ac213e6fcf163c7d5900cc.tmp
Sat Dec 28 10:28:21 2019 -> downloadFile: Download source: https://database.clamav.net/main.cvd
Sat Dec 28 10:28:21 2019 -> Retrieving https://database.clamav.net/main.cvd
Sat Dec 28 10:28:21 2019 -> main database available for download (remote version: 59)
Sat Dec 28 10:28:21 2019 -> query_remote_database_version: main.cvd version from DNS: 59
Sat Dec 28 10:28:21 2019 -> check_for_new_database_version: No local copy of "main" database.
Sat Dec 28 10:28:16 2019 -> Trying again in 5 secs...
Sat Dec 28 10:28:16 2019 -> WARNING: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Sat Dec 28 10:28:16 2019 -> WARNING: Download failed (28) Sat Dec 28 10:28:16 2019 -> WARNING: Message: Timeout was reached
Sat Dec 28 10:27:16 2019 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-bdd5ae988288593f559e8a69770596bc.tmp
Sat Dec 28 10:27:16 2019 -> downloadFile: Download source: https://database.clamav.net/main.cvd
Sat Dec 28 10:27:16 2019 -> Retrieving https://database.clamav.net/main.cvd
Sat Dec 28 10:27:16 2019 -> main database available for download (remote version: 59)
The DNS settings are the same.
The problem is identical in ROOT connection or user with privilege.
The installation and the uninstallation whatever the user profile does not change anything (the uninstall does not delete the config file, since during the reinstallation I have the parameters of the previous installation which are taken into account).
In my opinion, the difference for the non-functioning of CLAMAV is that when I install it first then I activate SURICATA and I install SENSEI, it coexists.
But if I set SURICATA then install SENSEI and then CLAMAV, I have this problem with your module.
IMPORTANT, I even uninstall SENSEI, deactivated SURICATA and only installed CLAMAV, this did not solve the problem afterwards.
I would like to have a procedure to unlock CLAMAV without you blaming the other modules. It will be constructive.
Looking forward to hearing from you,
Cordially.
-
Hello,
I make the effort to publish in English and to be precise.
And as a tocard, I see that I am in the right group by the profusion of response. I am not the only one with this problem.
It was well worth it to Mickael Muenz (Hi, seems Sensei or IPS is blocking the connection to the update servers. Better to open a thread in the forums to get additional support. Best, Michael) to offer to publish on the forum to get an answer, if it doesn't even respond or another.
For its response Even SENSEI uninstalled, SURICATA deactivated and CLAMAV installed only, this did not resolve the problem later. This test had already been performed.
Another unanswered publication.
-
Have you checked if dns resolutiom works? If three of six are fine it's something wrongly configured
-
Thank you for the answer,
Changing DNS in system / setting / general / DNS server does not change anything.
What changes and is not badly configured is the order of deployment of the plug-ins as previously indicated.
Many post this complaint from CLAMAV without any meaningful response from the developer.
However in the log file, I have the indication that /var/log/clamav/clamd.log does not exist. (including problem with self-installation)
IT IS A PLUG IN CLAMAV PROBLEM that I cannot solve in the state of my knowledge.
Everything is in the newspaper, CLAMAV IS an IMCAPABLE.
I'm reissuing my FRESHCLAM jornal.
Mon Jan 6 19:10:47 2020 -> ERROR: Update failed.
Mon Jan 6 19:10:47 2020 -> ERROR: Database update process failed: Connection failed (5)
Mon Jan 6 19:10:47 2020 -> WARNING: fc_update_databases: fc_update_database failed: Connection failed (5)
Mon Jan 6 19:10:47 2020 -> ERROR: Update failed for database: main
Mon Jan 6 19:10:47 2020 -> Giving up on https://database.clamav.net...
Mon Jan 6 19:10:47 2020 -> ERROR: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Mon Jan 6 19:10:47 2020 -> ERROR: Download failed (28) Mon Jan 6 19:10:47 2020 -> ERROR: Message: Timeout was reached
Mon Jan 6 19:09:47 2020 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-055ba2e98715d4625547f8ba775b048e.tmp
Mon Jan 6 19:09:47 2020 -> downloadFile: Download source: https://database.clamav.net/main.cvd
Mon Jan 6 19:09:47 2020 -> Retrieving https://database.clamav.net/main.cvd
Mon Jan 6 19:09:47 2020 -> main database available for download (remote version: 59)
Mon Jan 6 19:09:47 2020 -> query_remote_database_version: main.cvd version from DNS: 59
Mon Jan 6 19:09:47 2020 -> check_for_new_database_version: No local copy of "main" database.
Mon Jan 6 19:09:42 2020 -> Trying again in 5 secs...
Mon Jan 6 19:09:42 2020 -> WARNING: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Mon Jan 6 19:09:42 2020 -> WARNING: Download failed (28) Mon Jan 6 19:09:42 2020 -> WARNING: Message: Timeout was reached
Mon Jan 6 19:08:42 2020 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-1dfe1e8247990236d0aa06b6fb7a2fcd.tmp
Mon Jan 6 19:08:42 2020 -> downloadFile: Download source: https://database.clamav.net/main.cvd
Mon Jan 6 19:08:42 2020 -> Retrieving https://database.clamav.net/main.cvd
Mon Jan 6 19:08:42 2020 -> main database available for download (remote version: 59)
Mon Jan 6 19:08:42 2020 -> query_remote_database_version: main.cvd version from DNS: 59
Mon Jan 6 19:08:42 2020 -> check_for_new_database_version: No local copy of "main" database.
Mon Jan 6 19:08:37 2020 -> Trying again in 5 secs...
Mon Jan 6 19:08:37 2020 -> WARNING: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Mon Jan 6 19:08:37 2020 -> WARNING: Download failed (28) Mon Jan 6 19:08:37 2020 -> WARNING: Message: Timeout was reached
Mon Jan 6 19:07:37 2020 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-2f84c8f3ed82c5fd4aeda6cb95e9c1f6.tmp
Mon Jan 6 19:07:37 2020 -> downloadFile: Download source: https://database.clamav.net/main.cvd
Mon Jan 6 19:07:37 2020 -> Retrieving https://database.clamav.net/main.cvd
Mon Jan 6 19:07:37 2020 -> main database available for download (remote version: 59)
Mon Jan 6 19:07:37 2020 -> query_remote_database_version: main.cvd version from DNS: 59
Mon Jan 6 19:07:37 2020 -> check_for_new_database_version: No local copy of "main" database.
Mon Jan 6 19:07:37 2020 -> Current working dir is /var/db/clamav/
Mon Jan 6 19:07:37 2020 -> fc_update_database: daily.cld already up-to-date.
Mon Jan 6 19:07:37 2020 -> daily.cld database is up to date (version: 25686, sigs: 2092279, f-level: 63, builder: raynman)
Mon Jan 6 19:07:37 2020 -> query_remote_database_version: daily.cvd version from DNS: 25686
Mon Jan 6 19:07:37 2020 -> check_for_new_database_version: Local copy of daily found: daily.cld.
Mon Jan 6 19:07:37 2020 -> Current working dir is /var/db/clamav/
Mon Jan 6 19:07:37 2020 -> fc_dns_query_update_info: Software version from DNS: 0.102.1
Mon Jan 6 19:07:37 2020 -> TTL: 1800
Mon Jan 6 19:07:37 2020 -> Querying current.cvd.clamav.net
Mon Jan 6 19:07:37 2020 -> Current working dir is /var/db/clamav/
Mon Jan 6 19:07:37 2020 -> ClamAV update process started at Mon Jan 6 19:07:37 2020
best regards
-
Disable clamd and freshclam, then via CLI:
pkg remove os-clamav clamav
rm -rf /var/db/clamav
pkg install os-clamav
Then go to UI and download the signatures again.
-
***** FLEE CLAMAV *****
***** YOU WILL HAVE NO OFFICIAL SUPPORT *****
Hello and thank you for the reply,
However that does not change anything and by nervousness I uninstalled all the plug in by the graphic interface and puger in clamav console mode and shut down the server.
Restarted, I installed clamav in CLI mode, NOTHING CHANGES.
You couldn't be less minimalist.
Persistent ERROR
Clamd: The file /var/log/clamav/clamd.log does not exist.
freshclam :
Tue Jan 7 13:27:08 2020 -> ERROR: Update failed.
Tue Jan 7 13:27:08 2020 -> ERROR: Database update process failed: Connection failed (5)
Tue Jan 7 13:27:08 2020 -> WARNING: fc_update_databases: fc_update_database failed: Connection failed (5)
Tue Jan 7 13:27:08 2020 -> ERROR: Update failed for database: main
Tue Jan 7 13:27:08 2020 -> Giving up on https://database.clamav.net...
Tue Jan 7 13:27:08 2020 -> ERROR: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Jan 7 13:27:08 2020 -> ERROR: Download failed (28) Tue Jan 7 13:27:08 2020 -> ERROR: Message: Timeout was reached
Tue Jan 7 13:26:08 2020 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-98723ddada2652962bc3254fd73331c3.tmp
Tue Jan 7 13:26:08 2020 -> downloadFile: Download source: https://database.clamav.net/main.cvd
Tue Jan 7 13:26:08 2020 -> Retrieving https://database.clamav.net/main.cvd
Tue Jan 7 13:26:08 2020 -> main database available for download (remote version: 59)
Tue Jan 7 13:26:08 2020 -> query_remote_database_version: main.cvd version from DNS: 59
Tue Jan 7 13:26:08 2020 -> check_for_new_database_version: No local copy of "main" database.
Tue Jan 7 13:26:03 2020 -> Trying again in 5 secs...
Tue Jan 7 13:26:03 2020 -> WARNING: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Jan 7 13:26:03 2020 -> WARNING: Download failed (28) Tue Jan 7 13:26:03 2020 -> WARNING: Message: Timeout was reached
Tue Jan 7 13:25:03 2020 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-f435eb41d08b0dc6797101a46792960e.tmp
Tue Jan 7 13:25:03 2020 -> downloadFile: Download source: https://database.clamav.net/main.cvd
Tue Jan 7 13:25:03 2020 -> Retrieving https://database.clamav.net/main.cvd
Tue Jan 7 13:25:03 2020 -> main database available for download (remote version: 59)
Tue Jan 7 13:25:03 2020 -> query_remote_database_version: main.cvd version from DNS: 59
Tue Jan 7 13:25:03 2020 -> check_for_new_database_version: No local copy of "main" database.
Tue Jan 7 13:24:58 2020 -> Trying again in 5 secs...
Tue Jan 7 13:24:58 2020 -> WARNING: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Jan 7 13:24:58 2020 -> WARNING: Download failed (28) Tue Jan 7 13:24:58 2020 -> WARNING: Message: Timeout was reached
Tue Jan 7 13:23:58 2020 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-d37489a3060d1f9f85f713360e7db0b6.tmp
Tue Jan 7 13:23:58 2020 -> downloadFile: Download source: https://database.clamav.net/main.cvd
Tue Jan 7 13:23:58 2020 -> Retrieving https://database.clamav.net/main.cvd
Tue Jan 7 13:23:58 2020 -> main database available for download (remote version: 59)
Tue Jan 7 13:23:58 2020 -> query_remote_database_version: main.cvd version from DNS: 59
Tue Jan 7 13:23:58 2020 -> check_for_new_database_version: No local copy of "main" database.
Tue Jan 7 13:23:58 2020 -> Current working dir is /var/db/clamav/
Tue Jan 7 13:23:58 2020 -> fc_update_database: daily.cvd updated.
Tue Jan 7 13:23:58 2020 -> daily.cvd updated (version: 25687, sigs: 2095762, f-level: 63, builder: raynman)
Tue Jan 7 13:23:58 2020 -> Database test passed.
Tue Jan 7 13:23:56 2020 -> Properly loaded 2095762 signatures from /var/db/clamav/tmp/clamav-dea0faf98330c9fba5491560d84b43a7.tmp-daily.cvd
Tue Jan 7 13:23:24 2020 -> Loading signatures from /var/db/clamav/tmp/clamav-dea0faf98330c9fba5491560d84b43a7.tmp-daily.cvd
Tue Jan 7 13:23:24 2020 -> Testing database: '/var/db/clamav/tmp/clamav-dea0faf98330c9fba5491560d84b43a7.tmp-daily.cvd' ...
Tue Jan 7 13:23:24 2020 -> download_complete_callback: fc_context->bBytecodeEnabled : 1
Tue Jan 7 13:23:24 2020 -> download_complete_callback: fc_context->bTestDatabases : 1
Tue Jan 7 13:23:24 2020 -> download_complete_callback: Download complete for database : /var/db/clamav/tmp/clamav-dea0faf98330c9fba5491560d84b43a7.tmp-daily.cvd
Tue Jan 7 13:23:24 2020 -> updatedb: Running g_cb_download_complete callback...
Tue Jan 7 13:22:30 2020 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-dea0faf98330c9fba5491560d84b43a7.tmp
Tue Jan 7 13:22:30 2020 -> downloadFile: Download source: https://database.clamav.net/daily.cvd
Tue Jan 7 13:22:30 2020 -> Retrieving https://database.clamav.net/daily.cvd
Tue Jan 7 13:22:30 2020 -> daily database available for download (remote version: 25687)
Tue Jan 7 13:22:30 2020 -> query_remote_database_version: daily.cvd version from DNS: 25687
Tue Jan 7 13:22:30 2020 -> check_for_new_database_version: No local copy of "daily" database.
Tue Jan 7 13:22:30 2020 -> Current working dir is /var/db/clamav/
Tue Jan 7 13:22:30 2020 -> fc_dns_query_update_info: Software version from DNS: 0.102.1
I have nothing to say about CLAMAV when it works. But when it malfunctions IT IS NOT MAINTAINED BY ITS DEVELOPER.
IT'S FRUSTRAL NOT TO UNDERSTAND WHY AND TO DIDLY REFORMAT.
interfaces / diagnostics / DNS resolution /clamav.net
no resolution problem (198.148.79.54)
Regards,
-
You don't need to capitalize anything, this wont motivate anyone to help ;)
The problem is that the plugin itself works, but the package (maintained by clamav self) has a problem somewhere.
When you browse to the ClamAV section, do you get the yellow bar that you haven't load the signatures yet and you have to do it or is this already gone?
-
I do believe freshclam is broken since it was heavily refactored in 0.102, but maybe that's just for BSD users or whatever. I don't see a lot of noise on their mailing list and I expect this to drag on for a while if users are not going to be directing their efforts to the maintainer of the software that has the actual issue.
Cheers,
Franco
-
Hi minugmail,
Yes it is because I get the yellow bar saying "No signature database found, please download it before use. The download will take several minutes and this message will disappear when finished."
and freshclam is unsuccessful.
Tue Jan 7 14:55:20 2020 -> ERROR: Update failed.
Tue Jan 7 14:55:20 2020 -> ERROR: Database update process failed: Connection failed (5)
Tue Jan 7 14:55:20 2020 -> WARNING: fc_update_databases: fc_update_database failed: Connection failed (5)
Tue Jan 7 14:55:20 2020 -> ERROR: Update failed for database: main
Tue Jan 7 14:55:20 2020 -> Giving up on https: //database.clamav.net ...
Tue Jan 7 14:55:20 2020 -> ERROR: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Jan 7 14:55:20 2020 -> ERROR: Download failed (28) Tue Jan 7 14:55:20 2020 -> ERROR: Message: Timeout was reached
The problem obviously comes from the CLAMAV.NET server.
Regards,
-
Hello,
Did you try some other 3rd Party ClamAV signatures ?
For example from sanesecurity (https://sanesecurity.com/usage/signatures/) with files located here:
http://ftp.swin.edu.au/sanesecurity/
Just to test if freshclam is broken.
As for me, it's ok, just rogue.ndb renamed to rogue.hdb, so obviously, file could not be updated. This issue solved, all official and 3rd party signatures just fine update.
Just an idea.
-
good evening bmail,
Thanks for the track, after creating in services / clamav / configuration / signatures "https://sanesecurity.com/usage/signatures/"
freshclam
Tue Jan 7 17:45:58 2020 -> ERROR: Update failed.
Tue Jan 7 17:45:58 2020 -> ERROR: Database update process failed: Connection failed (5)
Tue Jan 7 17:45:58 2020 -> WARNING: fc_update_databases: fc_update_database failed: Connection failed (5)
Tue Jan 7 17:45:58 2020 -> ERROR: Update failed for database: main
Tue Jan 7 17:45:58 2020 -> Giving up on https://database.clamav.net...
Tue Jan 7 17:45:58 2020 -> ERROR: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Jan 7 17:45:58 2020 -> ERROR: Download failed (28) Tue Jan 7 17:45:58 2020 -> ERROR: Message: Timeout was reached
Tue Jan 7 17:44:58 2020 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-c5fb5a4341957638e5b1395dfe5cc062.tmp
Tue Jan 7 17:44:58 2020 -> downloadFile: Download source: https://database.clamav.net/main.cvd
Tue Jan 7 17:44:58 2020 -> Retrieving https://database.clamav.net/main.cvd
Tue Jan 7 17:44:58 2020 -> main database available for download (remote version: 59)
Tue Jan 7 17:44:58 2020 -> query_remote_database_version: main.cvd version from DNS: 59
Tue Jan 7 17:44:58 2020 -> check_for_new_database_version: No local copy of "main" database.
Tue Jan 7 17:44:53 2020 -> Trying again in 5 secs...
Tue Jan 7 17:44:53 2020 -> WARNING: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Jan 7 17:44:53 2020 -> WARNING: Download failed (28) Tue Jan 7 17:44:53 2020 -> WARNING: Message: Timeout was reached
Tue Jan 7 17:44:48 2020 -> --------------------------------------
Tue Jan 7 17:44:48 2020 -> ERROR: Update failed.
Tue Jan 7 17:44:48 2020 -> ERROR: Database update process failed: Connection failed (5)
Tue Jan 7 17:44:48 2020 -> WARNING: fc_update_databases: fc_update_database failed: Connection failed (5)
Tue Jan 7 17:44:48 2020 -> ERROR: Update failed for database: main
Tue Jan 7 17:44:48 2020 -> Giving up on https://database.clamav.net...
Tue Jan 7 17:44:48 2020 -> ERROR: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Jan 7 17:44:48 2020 -> ERROR: Download failed (28) Tue Jan 7 17:44:48 2020 -> ERROR: Message: Timeout was reached
Tue Jan 7 17:43:53 2020 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-a3b281c6eda8a4edb1e1ce9e84ecfac1.tmp
Tue Jan 7 17:43:53 2020 -> downloadFile: Download source: https://database.clamav.net/main.cvd
Tue Jan 7 17:43:53 2020 -> Retrieving https://database.clamav.net/main.cvd
Tue Jan 7 17:43:53 2020 -> main database available for download (remote version: 59)
Tue Jan 7 17:43:53 2020 -> query_remote_database_version: main.cvd version from DNS: 59
Tue Jan 7 17:43:53 2020 -> check_for_new_database_version: No local copy of "main" database.
Tue Jan 7 17:43:48 2020 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-85977f5b64adbf6dec1f9e8bf8c5bed6.tmp
Tue Jan 7 17:43:48 2020 -> downloadFile: Download source: https://database.clamav.net/main.cvd
Tue Jan 7 17:43:48 2020 -> Retrieving https://database.clamav.net/main.cvd
Tue Jan 7 17:43:48 2020 -> main database available for download (remote version: 59)
Tue Jan 7 17:43:48 2020 -> query_remote_database_version: main.cvd version from DNS: 59
Tue Jan 7 17:43:48 2020 -> check_for_new_database_version: No local copy of "main" database.
Tue Jan 7 17:43:48 2020 -> Trying again in 5 secs...
Tue Jan 7 17:43:48 2020 -> WARNING: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Jan 7 17:43:48 2020 -> WARNING: Download failed (28) Tue Jan 7 17:43:48 2020 -> WARNING: Message: Timeout was reached
Tue Jan 7 17:43:43 2020 -> Trying again in 5 secs...
Tue Jan 7 17:43:43 2020 -> WARNING: getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Jan 7 17:43:43 2020 -> WARNING: Download failed (28) Tue Jan 7 17:43:43 2020 -> WARNING: Message: Timeout was reached
Tue Jan 7 17:42:48 2020 -> downloadFile: Download destination: /var/db/clamav/tmp/clamav-a81dd083f648d056076f81d5efe1dc2f.tmp
Tue Jan 7 17:42:48 2020 -> downloadFile: Download source: https://database.clamav.net/main.cvd
Tue Jan 7 17:42:48 2020 -> Retrieving https://database.clamav.net/main.cvd
Tue Jan 7 17:42:48 2020 -> main database available for download (remote version: 59)
Tue Jan 7 17:42:48 2020 -> query_remote_database_version: main.cvd version from DNS: 59
Tue Jan 7 17:42:48 2020 -> check_for_new_database_version: No local copy of "main" database.
Tue Jan 7 17:42:48 2020 -> Current working dir is /var/db/clamav/
Tue Jan 7 17:42:48 2020 -> fc_update_database: daily.cld already up-to-date.
no change
cordially
-
info CLI
Missing /var/db/clamav/*.cvd or *.cld files. You must run freshclam first
Starting clamav_freshclam.
-
I suppose you tried to copy the current main.cvd at this place and restart clamav ?
-
I had the same problem.
To fix this, I installed wget in the console and then downloaded the signatures manually.
The subsequent update via Freshclam has worked without restriction since then.
-
Hello Moestchen,
Ok for install wget in console mode:
pkg install wget
Y
But for the definition I screwed up (not to do)
wget http://database.clamav.net/main.cvd -o /var/db/clamav/main.cvd
Can someone correct me the line of instruction, friendly?
cordially
-
Complement,
In console mode after downloading:
wget http://database.clamav.net/main.cvd -o /var/db/clamav/main.cvd
wget http://database.clamav.net/daily.cvd -o /var/db/clamav/daily.cvd
wget http://database.clamav.net/bytecode.cvd -o /var/db/clamav/bytecode.cvd
I have the following error:
Starting clamav_clamd.
LibClamAV Error: cli_cvdparse: Not a CVD file
LibClamAV Error: Can't load /var/db/clamav/main.cvd: Broken or not a CVD file
LibClamAV Error: cli_loaddbdir (): error loading database /var/db/clamav/main.cvd
Wed Jan 8 13:19:05 2020 ->! Broken or not a CVD file
/usr/local/etc/rc.d/clamav-clamd: WARNING: failed to start clamav_clamd
Starting clamav_freshclam.
This is starting to elude me. Ok until wget but for the definition I'm bad.
Kind regards to the person who can correct me and bring me the explanatory correction of what I am not doing well.
cordially
-
Hm, on my systems everything works fine there.
Just to sum up:
You have 6 machines, all the same version, on 3 systems it works on the other 3 not, and you guess it is/was the other the plugins were installed, correct?
-
Hello minugmail,
Here is an overview of my equipment
P8B-X, Intel (R) Xeon (R) E3-1225V2, 8 GB RAM, 1 TB SATA, 2 Lan, OPNsense 20.1-amd64 OK, ClamAV 1.7 OK, Maltrail 1.3 OK, ntopng 1.2 OK, rspamd1.9 OK, Sensei 1.3.1 DB 1.3.1 elasticsearch OK (Production)
X2630G, Intel (R) I3 (C), 8 GB RAM, 500 GB SATA, 2 Lan, OPNsense 20.1-amd64 OK, ClamAV 1.7 OK, Maltrail 1.3 OK, ntopng 1.2 OK, rspamd1.9 OK, Sensei 1.3.1 DB 1.3.1 elasticsearch OK
X7SPA-HF, Intel (R) ATOM (TM) D525, 4GB RAM, 320GB SATA, 2 Lan, OPNsense 20.1-amd64 OK, ClamAV 1.7 OK, Maltrail 1.3 OK, ntopng 1.2 OK, rspamd1.9 OK, Sensei 1.3.1 DB 1.3.1 mongodb OK
AP3a, 2GB RAM, 60GB mATA, 3 Lan, OPNsense 20.1-amd64 OK, ClamAV 1.7 OK, Maltrail 1.3 OK, ntopng 1.2 OK, rspamd1.9 OK, Sensei 1.3.1 DB 1.3.1 mongodb OK
AP4c, 4GB RAM, 120GB mATA, 4 Lan, OPNsense 20.1-amd64 OK, ClamAV 1.7 OK, Maltrail 1.3 OK, ntopng 1.2 OK, rspamd1.9 OK, Sensei 1.3.1 DB 1.3.1 mongodb OK (Production)
ALL BIOS UP TO DATE.
Regards, my mother tongue is French
-
Re Hello minugmail,
I returned to service the
X7SPA-HF, Intel (R) ATOM (TM) D525, 4GB RAM, 320GB SATA, 2 Lan, OPNsense 19.7.8-amd64 OK, ClamAV 1.7 OUT, Sensei 1.2.5 DB 1.3.1 mongodb OK
Regards, my mother tongue is French
-
P8B-X and X2630G are in the same network as the others? Which device is the gateway for them all?
Whats the setting in "System : Settings : General"? (Screenshot would be best)
-
Hi minugmail,
the P8B-X and the X2630G are not in the same network.
Each utm has its wan link and its own network.
In system / settings / general
each with its own host name
each to his domain
time zone: europe / paris
French language
theme: tukan
prefer ipv4 to ipv6: deactivate
identical dns server on all
allow DNS replacement: enabled
do not use local dns: disabled
allow gateway failover: disabled
-
All right, all of them work.
I’m adding an instruction to use in console mode
# sudo clamd
For beginners all is in this thread, you just need to have knowledge in shell mode, know how to change direction and destroy files if necessary.
To have a spirit of analysis and understanding in what we read.
I would close when I have validated on another machine.
Regards,
-
A big thank you to all the speakers.
No problem, I can confirm that with less than ten command lines in console mode, Clamav works very well.
Therefore
X7SPA-HF, Intel (R) ATOM (TM) D525, 4 GB RAM, 320 GB SATA, 2 Lan, OPNsense 19.7.8-amd64 OK, ClamAV 1.7 OK, Sensei 1.2.5 DB 1.3 .1 mongodb OK
AP3a, 2 GB RAM, 60 GB mATA, 3 Lan, OPNsense 19.7.8-amd64 OK, ClamAV 1.7 OK, Sensei uninstalled because stopped for swap> 30%
Happy new year and see you next time.
-
# sudo clamd
To be fair, "#" would already indicate you are root so the sudo does nothing.
Lesson to be learned here: anything less than root on the console for administrative tasks such as service update, addition and removal is futile.
Cheers,
Franco
-
I do everything as described in this post. And unfortunately I get the answer as below. Does any of your colleagues have any advice
Thank you
LibClamAV Error: cli_cvdparse: Not a CVD file
LibClamAV Error: Can't load /var/db/clamav/main.cvd: Broken or not a CVD file
LibClamAV Error: cli_loaddbdir(): error loading database /var/db/clamav/main.cvd
Sat Feb 1 17:57:18 2020 -> !Broken or not a CVD file
-
this is obviously the log when trying to run clamav
Thank you
-
maybe a colleague of Darkopnsense give a description of the clamav configuration using ssh.
I will be very grateful
-
Hi,
Did you delete all cvd and cld files before downloading?
Sincerely, (French mother tongue)
-
I deleted, then downloaded and the message as below
root@OPNsense:/var/db/clamav # wget http://database.clamav.net/main.cvd -o /var/db/clamav/main.cvd
root@OPNsense:/var/db/clamav # wget http://database.clamav.net/daily.cvd -o /var/db/clamav/daily.cvd
root@OPNsense:/var/db/clamav # wget http://database.clamav.net/bytecode.cvd -o /var/db/clamav/bytecode.cvd
root@OPNsense:/var/db/clamav # sudo clamd
LibClamAV Error: cli_cvdparse: Not a CVD file
LibClamAV Error: cli_loaddbdir(): error parsing header of /var/db/clamav/daily.cvd
Sat Feb 1 22:18:00 2020 -> !Malformed database
root@OPNsense:/var/db/clamav #
root@OPNsense:/var/db/clamav # ls
bytecode.cvd bytecode.cvd.1 daily.cvd daily.cvd.1 main.cvd main.cvd.1 tmp
root@OPNsense:/var/db/clamav #
root@OPNsense:/var/db/clamav # rm bytecode.cvd.1
root@OPNsense:/var/db/clamav #
root@OPNsense:/var/db/clamav # rm daily.cvd.1
root@OPNsense:/var/db/clamav #
root@OPNsense:/var/db/clamav # rm main.cvd.1
root@OPNsense:/var/db/clamav # ls
bytecode.cvd daily.cvd main.cvd tmp
root@OPNsense:/var/db/clamav # sudo clamd
LibClamAV Error: cli_cvdparse: Not a CVD file
LibClamAV Error: cli_loaddbdir(): error parsing header of /var/db/clamav/daily.cvd
Sat Feb 1 22:19:45 2020 -> !Malformed database
root@OPNsense:/var/db/clamav #
-
after entering, freshclma downloads the files but does not finish the download. stops at around 97 mb etc
root@OPNsense:/var/db/clamav # freshclam
Sat Feb 1 22:22:18 2020 -> ClamAV update process started at Sat Feb 1 22:22:18 2020
Sat Feb 1 22:22:18 2020 -> ^[LibClamAV] cli_cvdparse: Not a CVD file
Sat Feb 1 22:22:18 2020 -> daily database available for download (remote version: 25713)
Time: 37.2s, ETA; 0.0s [=======================================>] 55.74MiB/55.74MiB
Sat Feb 1 22:22:57 2020 -> Testing database: '/var/db/clamav/tmp/clamav-61c0221544ffd174fbfaab7e1afce7d7.tmp-daily.cvd' ...
Sat Feb 1 22:23:03 2020 -> Database test passed.
Sat Feb 1 22:23:03 2020 -> daily.cvd updated (version: 25713, sigs: 2172237, f-level: 63, builder: raynman)
Sat Feb 1 22:23:03 2020 -> ^[LibClamAV] cli_cvdparse: Not a CVD file
Sat Feb 1 22:23:03 2020 -> main database available for download (remote version: 59)
Sat Feb 1 22:24:03 2020 -> ^Download failed (28) Sat Feb 1 22:24:03 2020 -> ^ Message: Timeout was reached
Sat Feb 1 22:24:03 2020 -> ^getcvd: Can't download main.cvd from http://database.clamav.net//main.cvd
Sat Feb 1 22:24:03 2020 -> Trying again in 5 secs...
Sat Feb 1 22:24:08 2020 -> ^[LibClamAV] cli_cvdparse: Not a CVD file
Sat Feb 1 22:24:08 2020 -> main database available for download (remote version: 59)
Sat Feb 1 22:25:08 2020 -> ^Download failed (28) Sat Feb 1 22:25:08 2020 -> ^ Message: Timeout was reached
Sat Feb 1 22:25:08 2020 -> ^getcvd: Can't download main.cvd from http://database.clamav.net//main.cvd
Sat Feb 1 22:25:08 2020 -> Trying again in 5 secs...
Sat Feb 1 22:25:13 2020 -> ^[LibClamAV] cli_cvdparse: Not a CVD file
Sat Feb 1 22:25:13 2020 -> main database available for download (remote version: 59)
^CSat Feb 1 22:25:19 2020 -> Update process terminated ] 9.05MiB/112.40MiB
-
maybe if you were so kind you would write a small tourtial as you started the anti-virus on your machine. As simple as for an amateur :)
-
Hi,
oops disappeared
Sincerely, (French mother tongue)
-
58/5000
Hello ,
I understand that I should download the signatures in the tmp directory?
-
hi,
no, result for command #ls
Sincerely, (French mother tongue)
-
ok I started clamav, :) now I have a problem setting clamav protection. doing a test on eicar does not display the warning page from clamav.
-
przy próbie pobrania pliku korzystając z http nie pobiera , czyli ochrona działa ale nie wyświetla strony ostrzegawczej natomiast prz https nie działa
-
when you try to download a file using http it does not download, i.e. protection works but does not display a warning page while https does not work
-
Hi,
I saw that you had to try. I unlocked the download * .CVD for you.
I hope you understood where you screwed up in your thinking.
Already, you need a very good basis for the structure of what you want to use. With efforts, and relevant leads and with the desire to understand, for example consult the product on the basis https://github.com/search?q=clamav
The more details there are of what we did in the call for help, the more the answer will be relevant.
We are all lacking in knowledge, and we are dependent on a mentor who is willing to respond in profane language.
Sincerely, (French mother tongue)
-
HI all,
I have the same problem on a fresh installation of Opnsense 20
how can i resolve ?
i follow this steps but some procedures are missing.
what are the steps after download (with wget) main cvd ?
-
Hi,
You run the daemon.
Regards,
-
I followed all the steps, from the uninstallation of clamav, to the deletion of the databases and the reinstallation of the package, but the creation of the main.cvd continues to fail and it never manages to download it all.
I tried to copy the clam av db that I have on the opnsense virtual machine and it seemed to be going, but today I have the service out of use again I don't know what to do.
-
Hi,
Publish the entire step-by-step procedure you enter in console mode.
We'll see where it gets stuck.
Regards,
-
Disable clamd and freshclam, then via CLI:
pkg remove os-clamav clamav
rm -rf /var/db/clamav
pkg install os-clamav
pkg install wget
wget main.cvd
mv main.db /var/db/clamav
chown clamav:clamav main.cvd
chmod 640 main.cvd (the same of daily.cvd)
freshclam
with these step working but the night when run the cron script for freshclam the db will corrupted.
root@OPNsense:~ # freshclam
Tue Feb 11 21:58:29 2020 -> ClamAV update process started at Tue Feb 11 21:58:29 2020
Tue Feb 11 21:58:30 2020 -> ^Your ClamAV installation is OUTDATED!
Tue Feb 11 21:58:30 2020 -> ^Local version: 0.102.1 Recommended version: 0.102.2
Tue Feb 11 21:58:30 2020 -> DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
Tue Feb 11 21:58:30 2020 -> daily.cvd database is up to date (version: 25720, sigs: 2181998, f-level: 63, builder: raynman)
Tue Feb 11 21:58:30 2020 -> main database available for download (remote version: 59)
Tue Feb 11 21:59:30 2020 -> ^Download failed (28) Tue Feb 11 21:59:30 2020 -> ^ Message: Timeout was reached
Tue Feb 11 21:59:30 2020 -> ^getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Feb 11 21:59:30 2020 -> Trying again in 5 secs...
Tue Feb 11 21:59:35 2020 -> main database available for download (remote version: 59)
Tue Feb 11 22:00:35 2020 -> ^Download failed (28) Tue Feb 11 22:00:35 2020 -> ^ Message: Timeout was reached
Tue Feb 11 22:00:35 2020 -> ^getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Feb 11 22:00:35 2020 -> Trying again in 5 secs...
Tue Feb 11 22:00:41 2020 -> main database available for download (remote version: 59)
Tue Feb 11 22:01:41 2020 -> !Download failed (28) Tue Feb 11 22:01:41 2020 -> ! Message: Timeout was reached
Tue Feb 11 22:01:41 2020 -> !getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Feb 11 22:01:41 2020 -> Giving up on https://database.clamav.net...
Tue Feb 11 22:01:41 2020 -> !Update failed for database: main
Tue Feb 11 22:01:41 2020 -> ^fc_update_databases: fc_update_database failed: Connection failed (5)
Tue Feb 11 22:01:41 2020 -> !Database update process failed: Connection failed (5)
Tue Feb 11 22:01:41 2020 -> !Update failed.
-
Hi,
oops disappeared
Cordialy, (French mother tongue)