So, I just installed Mailborder v5 on the client. Mailborder using ClamAV for detecting viruses and the accuracy is very good. ClamAV on Mailborder has been customized and ready to use. So, when you install Mailborder, ClamAV will be included.
Unfortunately, when configuring ClamAV, the internet is not very good. So that, i found an error when the system configuring ClamAV:
Tue Jun 23 14:13:46 2020 -> ClamAV update process started at Tue Jun 23 14:13:46 2020 Tue Jun 23 14:13:46 2020 -> daily database available for download (remote version: 25851) Tue Jun 23 14:14:16 2020 -> ^Download failed (28) Tue Jun 23 14:14:16 2020 -> ^ Message: Timeout was reached Tue Jun 23 14:14:16 2020 -> ^getcvd: Can't download daily.cvd from https://database.clamav.net/daily.cvd Tue Jun 23 14:14:16 2020 -> Trying again in 5 secs...
Actions
This problem can be happened cause ClamAV database failed to download and it’s also happened depend on your internet connection.
So that, i stop the ClamAV services using systemctl stop clamav-freshclam
. And run freshclam
manually. But also found the same error.
To solve this, we have many different ways.
- Download the database manually, using wget or curl and place it on /var/lib/clamav/.
- Increase ClamAV timeout
Download the database manually is not good because ClamAV has many databases for viruses. you have to download it manually, it’s not good, trust me.
Best solution is number 2, increase ClamAV Timeout. Edit /etc/clamav/freshclam.conf and change this:
ReceiveTimeout 30
To this:
ReceiveTimeout 300
Make sure you stop ClamAV
systemctl stop clamav-freshclam
Then run freshclam manually
freshclam
Wait it, until download finished and start ClamAV.
systemctl start clamav-freshclam
Now, your ClamAV will not error again. Hope this help, Thank you!
If you are interesting to Mailborder 5, feel free to contact sales@excellent.co.id, our team will give you the best price!
6 Comments
Fraz · November 24, 2020 at 8:56 am
Thankyou! This helped
cthulu666 · December 21, 2020 at 10:42 am
Easy fix thanks! ..how bout finding a way to report this to the Clamav team? I checked them out and found a fancy big corp. website, a github link, but no issue page. Many people will have issues with downloading 108mb in 30seconds.or less.
Dhenandi Putra · December 21, 2020 at 2:25 pm
Hi,
You can report this to the ClamAV on https://bugzilla.clamav.net
See how to report a bug on https://www.clamav.net/documents/how-to-report-a-bug
Jasper Brannigan · January 9, 2022 at 11:18 am
The advice about using using wget or curl to manually download the Clamav data is obsolete and will no longer work.
QUOTE
April 29, 2021
programs like wget have been blocked entirely (error code 403) and the whole database files like daily.cvd, main.cvd, and bytecode.cvd are being rate limited (error code 429).
UNQUOTE
So you must change the timeout value in the config file and also ensure that you are not trying to do downloads more than once an hour or so or you will be blocked for several hours.
Dhenandi Putra · April 5, 2022 at 6:24 am
Hi Jasper,
Thank you!, yes clamav have been blocked using wget. but you can also download it through your browser.
ClamAV update timeout – Download failed (28) WARNING: Message: Timeout was reached « My Blog · February 8, 2022 at 2:05 pm
[…] ReceiveTimeout 30 To this: ReceiveTimeout 180 dhenandi.com/solved-clamav-download-failed-message-timeout-was-reached/ […]