Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users

Upgraded freshclam not updating

 

 

ClamAV users RSS feed   Index | Next | Previous | View Threaded


bbebeau at trustwave

May 8, 2008, 6:13 AM

Post #1 of 4 (212 views)
Permalink
Upgraded freshclam not updating

We have a test box that is a local update server (that our other
boxes get the dbs from) that I just upgraded to 0.93. The upgrade
works well on my personal workstation, but fails on this box. Any
pointers on getting this updating will be appreciated. It was
updating ok before the upgrade. Trying to retrieve the daily db
via wget resolves the host but hangs before returning any data.

Running freshclam -v, I get the following:

# freshclam -v
Current working dir is /var/lib/clamav
Max retries == 3
ClamAV update process started at Wed May 7 15:20:29 2008
Querying current.cvd.clamav.net
TTL: 300
Software version from DNS: 0.93
Retrieving http://db.us.clamav.net/main.cvd
Trying to download http://db.us.clamav.net/main.cvd (IP: 64.246.44.108)
WARNING: getfile: main.cvd not found on remote server (IP: 64.246.44.108)
WARNING: Can't download main.cvd from db.us.clamav.net
Trying again in 5 secs...
ClamAV update process started at Wed May 7 15:20:35 2008
Querying current.cvd.clamav.net
TTL: 295
Software version from DNS: 0.93
Retrieving http://db.us.clamav.net/main.cvd
Trying to download http://db.us.clamav.net/main.cvd (IP: 128.121.60.235)
nonblock_recv: recv timing out (30 secs)
WARNING: getfile: Error while reading database from db.us.clamav.net
(IP: 128.121.60.235)
WARNING: Can't download main.cvd from db.us.clamav.net
Trying again in 5 secs...
ClamAV update process started at Wed May 7 15:21:10 2008
Querying current.cvd.clamav.net
TTL: 260
Software version from DNS: 0.93
Retrieving http://db.us.clamav.net/main.cvd
nonblock_connect: connect timing out (30 secs)
Can't connect to port 80 of host db.us.clamav.net (IP: 209.170.150.7)
Trying host db.us.clamav.net (64.142.100.50)...
Trying to download http://db.us.clamav.net/main.cvd (IP: 64.142.100.50)
nonblock_recv: recv timing out (30 secs)
Downloading main.cvd [0%]
LibClamAV Error: cli_cvdverify: Can't read CVD header
ERROR: Verification: Broken or not a CVD file
Giving up on db.us.clamav.net...
Update failed. Your network may be down or none of the mirrors listed in
freshclam.conf is working. Check
http://www.clamav.net/support/mirror-problem for possible reasons.

I had blown away all files in /var/lib/clamav prior to running
freshclam. It doesn't seem like a DNS problem, since I can do:

# host db.us.clamav.net
db.us.clamav.net is an alias for db.us.rr.clamav.net.
db.us.rr.clamav.net has address 209.170.150.7
db.us.rr.clamav.net has address 64.142.100.50
db.us.rr.clamav.net has address 64.246.44.108
db.us.rr.clamav.net has address 128.121.60.235
db.us.rr.clamav.net has address 194.47.250.218

Running clamconf gives me:

# clamconf
/etc/freshclam.conf: freshclam directives
------------------------------
LogFileMaxSize = 1048576
LogTime = no
LogVerbose = no
LogSyslog = no
LogFacility = "LOG_LOCAL6"
PidFile = "/var/run/clamav/freshclam.pid"
DatabaseDirectory = "/var/lib/clamav"
Foreground = no
Debug = no
AllowSupplementaryGroups = no
DatabaseOwner = "clamav"
Checks = 12
UpdateLogFile not set
DNSDatabaseInfo = "current.cvd.clamav.net"
DatabaseMirror = "db.us.clamav.net"
MaxAttempts = 3
ScriptedUpdates = yes
CompressLocalDatabase = no
HTTPProxyServer not set
HTTPProxyPort not set
HTTPProxyUsername not set
HTTPProxyPassword not set
HTTPUserAgent not set
NotifyClamd not set
OnUpdateExecute not set
OnErrorExecute not set
OnOutdatedExecute not set
LocalIPAddress not set
ConnectTimeout = 30
ReceiveTimeout = 30

Engine and signature databases
------------------------------
Engine version: 0.93
Database directory: /var/lib/clamav
main db: Not found
daily db: Not found

BTW, on my box that's working okay, clamconf returns the
last line as saying daily db is also not found, when it
really is there. Does clamconf need to be updated to
recognize .cld files?

--
Brian Bebeau
Trustwave
http://www.trustwave.com


--
Brian Bebeau
Trustwave
http://www.trustwave.com

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


jimlinux at commspeed

May 8, 2008, 7:19 AM

Post #2 of 4 (200 views)
Permalink
Re: Upgraded freshclam not updating [In reply to]

Brian Bebeau wrote:
> We have a test box that is a local update server (that our other
> boxes get the dbs from) that I just upgraded to 0.93. The upgrade
> works well on my personal workstation, but fails on this box. Any
> pointers on getting this updating will be appreciated. It was
> updating ok before the upgrade. Trying to retrieve the daily db
> via wget resolves the host but hangs before returning any data.
>
>
> Trying to download http://db.us.clamav.net/main.cvd (IP: 64.142.100.50)
>
>
> BTW, on my box that's working okay, clamconf returns the
> last line as saying daily db is also not found, when it
> really is there. Does clamconf need to be updated to
> recognize .cld files
Hi Brian,

What happens if you put http://db.us.clamav.net/main.cvd into browser
addressbar? It should download the file.
Are you running Freshclam? As daemon or from cron? If from cron, what
time are you checking?

Jim

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


bbebeau at trustwave

May 9, 2008, 2:55 PM

Post #3 of 4 (186 views)
Permalink
Re: Upgraded freshclam not updating [In reply to]

Jim Preston wrote:
> Brian Bebeau wrote:
>> We have a test box that is a local update server (that our other
>> boxes get the dbs from) that I just upgraded to 0.93. The upgrade
>> works well on my personal workstation, but fails on this box. Any
>> pointers on getting this updating will be appreciated. It was
>> updating ok before the upgrade. Trying to retrieve the daily db
>> via wget resolves the host but hangs before returning any data.
>>
>>
>> Trying to download http://db.us.clamav.net/main.cvd (IP: 64.142.100.50)

> Hi Brian,
>
> What happens if you put http://db.us.clamav.net/main.cvd into browser
> addressbar? It should download the file.
> Are you running Freshclam? As daemon or from cron? If from cron, what
> time are you checking?

This box doesn't have a browser, it's a server. That's why I was trying
to use wget. If I do that, I get:

# wget http://db.us.clamav.net/main.cvd
--16:52:08-- http://db.us.clamav.net/main.cvd
=> `main.cvd.2'
Resolving db.us.clamav.net... 64.142.100.50, 64.246.44.108,
128.121.60.235, ...
Connecting to db.us.clamav.net|64.142.100.50|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13,050,207 (12M) [text/plain]

0% [ ] 0 --.--K/s

and it hangs there, never downloading anything.

--
Brian Bebeau
Trustwave
http://www.trustwave.com

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


jimlinux at commspeed

May 10, 2008, 8:53 AM

Post #4 of 4 (184 views)
Permalink
Re: Upgraded freshclam not updating [In reply to]

> This box doesn't have a browser, it's a server. That's why I was trying
> to use wget. If I do that, I get:
>
> # wget http://db.us.clamav.net/main.cvd
> --16:52:08-- http://db.us.clamav.net/main.cvd
> => `main.cvd.2'
> Resolving db.us.clamav.net... 64.142.100.50, 64.246.44.108,
> 128.121.60.235, ...
> Connecting to db.us.clamav.net|64.142.100.50|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 13,050,207 (12M) [text/plain]
>
> 0% [ ] 0 --.--K/s
>
> and it hangs there, never downloading anything.
>
>
OK. The wget command indicates that you are establishing a connection
but the download just is not happening.
Some of the next questions are:
Are you able to wget any files on this server?
What directory were you in when running wget command?
What OS?

Jim

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.