Re: [Clamav-users] failed updates

2008-09-07 Thread Anthony Kamau
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:clamav-users-
 [EMAIL PROTECTED] On Behalf Of Chris
 Sent: Saturday, 6 September 2008 10:47 AM
 To: ClamAV users ML
 Subject: [Clamav-users] failed updates
 
 
 The next time freshclam is run there are no issues, then it may update a
 couple more times then fail again. Anyone have any ideas on this?
 

Yeah, delete /var/clamav/mirrors.dat.  That will force a rebuild of the file
on next update.  I've modified the /etc/cron.daily/freshclam and added the
following code after the line that reads
LOG_FILE=/var/log/clamav/freshclam.log:

x=`tail -1 $LOG_FILE|egrep '^Update failed.'|wc -l`
if [ $x = 1 ]; then
  rm -f /var/clamav/mirrors.dat
fi


When an update fails, the last line starts with Update failed...


HTH,
AK


___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] failed updates

2008-09-05 Thread Bill Randle
On Fri, 2008-09-05 at 19:47 -0500, Chris wrote:
 I've been seeing this quite a lot since I upgraded to .94 yesterday. The 
 entire log snip can be seen here:
 
 http://pastebin.com/m2e56e3bf
 
 but it starts out like this and continues. 
 
 Fri Sep  5 17:25:11 2008 - Retrieving 
 http://db.us.clamav.net/daily-8169.cdiff
 Fri Sep  5 17:25:11 2008 - Ignoring mirror 168.143.19.95 (due to previous 
 errors)
 Fri Sep  5 17:25:11 2008 - Ignoring mirror 207.57.106.31 (due to previous 
 errors)
 Fri Sep  5 17:25:11 2008 - Trying host db.us.clamav.net (209.170.150.7)...
 Fri Sep  5 17:25:41 2008 - nonblock_connect: connect timing out (30 secs)
 Fri Sep  5 17:25:41 2008 - Can't connect to port 80 of host db.us.clamav.net 
 (IP: 209.170.150.7)
 
 The next time freshclam is run there are no issues, then it may update a 
 couple more times then fail again. Anyone have any ideas on this?

Looks like a mirror problem. I get the same messages with 209.170.150.7,
207.57.106.31 and 168.143.19.95 but the server at 138.123.96.134 works
ok. It just takes it a few attempts until that IP comes up on the round
robin DNS for db.us.clamav.net. I see 64.246.134.219 is also working.

-Bill


___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml