Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 22458

Summary: clamav's freshclam fails to update
Product: Gentoo Linux Reporter: Eric Olinger <EvvL>
Component: Current packagesAssignee: Antivirus Team <antivirus>
Status: RESOLVED FIXED    
Severity: major CC: andy, lordvan, prez
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 30493    
Bug Blocks:    

Description Eric Olinger 2003-06-08 14:49:18 UTC
The freshclam component of the clamav package fails to update  the virus database
if the main mirror is down, since the hostname is hard coded into the binary.
There is a new version that switches between the different mirrors at
http://clamav.ozforces.com/clamav-20030605.tar.gz

Reproducible: Always
Steps to Reproduce:
1. Install calmav
2. Run freshcalm


Actual Results:  
can't connect to port 80 of calmav.elektrapro.com.

Expected Results:  
updates clamav's virus database.

the whole webserver server for elektrapro.com seems to be offline and 
unforutinatly all of the mailing lists for clamav are hosted on or with
elektrapro.com
Comment 1 Preston A. Elder (RETIRED) gentoo-dev 2003-06-22 13:31:55 UTC
This has been resolved with the advent of 0.60 - which needs testing before it is unmasked.
Comment 2 Norberto Bensa 2003-06-25 22:06:50 UTC
Preston, while you are at it, could please move /usr/share/clamav to 
/var/something/clamav??? My /usr ir RO and freshclam fails. 
 
Thank you, 
Norberto 
 
Comment 3 Andrew Glen-Young 2003-07-11 03:16:26 UTC
Clamav-0.60 seems to have one or two issues:
--------------------------------------------
1) clamd when started drops from the root user to clamav and then tries to write
the pid file to /var/run/clamd.pid. This is easily remedied by creating a
/var/run/clamav directory and changing the perms so that clamav can write to it.
The /etc/init.d/clamd stop() function needs to be changed to reflect this move.
The /etc/clamav.conf file needs to be changed to reflect this move too.
2) Shouldn't the virus dbs be kept in /usr/lib/clamav as opposed to
/usr/share/clamav? The permissions on /usr/lib/clamav are not correct. Freshclam drop to a compile time specified user (clamav) when it runs. This user needs permission to write to this directory in order for it to download antivirus updates. 
Comment 4 Norberto Bensa 2003-08-14 09:57:32 UTC
Any progress on this one? The host used by freshclam (clamav.linux-sxs.org) is 
out of date and it seems freshclam (0.60) doesn't switch to other mirrors... 
 
 
Comment 5 Andrew Glen-Young 2003-08-15 01:16:07 UTC
In connection with Norberto Bensa's comment:
The new virus db URL is: http://clamav.sourceforge.net/database/
Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2003-12-29 06:34:32 UTC
> Shouldn't the virus dbs be kept in /usr/lib/clamav as opposed to /usr/share/clamav?
it should be /var/lib/clamav
Comment 7 Hanno Böck gentoo-dev 2004-01-20 11:03:29 UTC
Update to 0.65 should help.
I also changed the location of the virus-db to /var to be compliant to the FHS.