Jump to: navigation, search
MithiWiki Home > ConnectXf Home > ConnectXf Administration > Configuration > Error while downloading updates for Virus signature


Troubleshooting Icon.png
Troubleshooting
Product ConnectXf
Version All
Applies to Administrators
Level Advanced




Problem while downloading virus updates

Problem symptom

  • There was a problem while downloading the virus updates and the following errors were encountered.
ClamAV update process started at Tue May 16 14:00:36 2006
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.87.1 Recommended version: 0.88.2
DON'T PANIC! Read http://www.clamav.net/faq.html
ERROR: Verification: Broken or not a CVD file
Giving up on db.local.clamav.net...
ERROR: Update failed. Your network may be down or none of the mirrors listed in freshclam.conf is 
working.
ERROR: Update failed. Your network may be down or none of the mirrors listed in freshclam.conf is 
working

Resolution

  • Looks like a firewall issue, see error message got from ClamAV site. It is possible that hack prevention rules in the firewall are not allowing this through. Please ask your Network Administrator to check the firewall event log.
  • Check on freshclam.conf can be made by executing the following command:
freshclam --debug
  • The output looks like the lines below:
ClamAV update process started at Thu Mar 10 11:27:10 2005
main.cvd is up to date (version: 30, sigs: 31086, f-level: 4, builder: tkojm)
Downloading daily.cvd [*]
LibClamAV debug: Can't read CVD head from stream
ERROR: Verification: Broken or not a CVD file
  • Freshclam errors like the following indicate some sort of HTTP problem.
  • There seems to be a problem with the update file, resolve using the following Update files. The issue should be resolved after you download and apply the below mentioned updates.
wget http://db.local.clamav.net/daily.cvd
OR
wget http://db.in.clamav.net/daily.cvd


Problem symptom

  • There was a problem while downloading the virus updates and the following errors were encountered.
ClamAV update process started at Tue Sep 18 12:50:22 2007
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.88.6 Recommended version: 0.91.2
DON'T PANIC! Read http://www.clamav.net/faq.html
ERROR: Can't get information about db.XY.clamav.net: Host not found
Giving up on db.XY.clamav.net...
ERROR: Update failed. Your network may be down or none of the mirrors listed in freshclam.conf is working.
ERROR: Update failed. Your network may be down or none of the mirrors listed in freshclam.conf is working.


Resolution

  • Solved by using the following commands from the server
  /mithi/mcs/bin/setantivirus.sh -mirror_site db.in.clamav.net



Problem Symtom

  • [root@MEM root]# /mithi/mcs/bin/freshclamavnow.sh

Result=ERROR!!! Message=Failed to update the virus database.

The /var/temp/daily.cvd database seems to be corrupt :OK

OK

ClamAV 0.91.2/5803/Thu Feb 14 01:55:54 2008!!!


Resolution The freshclamavnow.sh is reporting the database currupt despite the database (cvd) files having been downloaded successfully. This is due to a bug in the script when it verifies the cvd files using sigtool. It greps for OK but it finds OK also in the signature dump from the cvd file (rare). Fixed by grepping for the last line and then looking for ok.

Applying the patch


cp /mithi/mcs/components/mithi-av-clamav/bin/freshclamavnow.sh /mithi/mcs/components/mithi-av-clamav/bin/freshclamavnow.sh.old

cp freshclamavnow.sh /mithi/mcs/components/mithi-av-clamav/bin/freshclamavnow.sh

dos2unix /mithi/mcs/components/mithi-av-clamav/bin/freshclamavnow.sh

chmod +x /mithi/mcs/components/mithi-av-clamav/bin/freshclamavnow.sh