ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
'Fail to update' nag when offline.
Grumpyrain


Joined: 15 Jan 2007
Posts: 0
Reply with quote
Hello,

I use a Laptop, and when in transit I am often not online. When the scheduled time for update passes, I get a balloon popup telling me the update failed (for obvious reasons). I do not recall the exact text at the moment, but I will note it down next time it happens if that would be a help. Given that my definitions are seldom over a day or two old, and the risk of virus is significantly mitigated when offline, is there a way to set the balloon to only show if you haven't updated for a significant time (a day or two) to reduce the number of popups? I know it is not the highest priority, and may seem trivial, but it does get annoying.

TIA,
Adam
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
Yes that is a sensible option. In the meanwhile you can disable popups in the clamwin configuration
View user's profileSend private message
Add option to delay download on login
Grumpyrain


Joined: 15 Jan 2007
Posts: 0
Reply with quote
Hello again,

One related item I have noticed is that I have 'update Virus database on Log on' set. The main problem I have noticed is that my wireless card takes about 20 seconds to authenticate before I have net access.

This causes the following message:

Code:
freshclam 0.91.2 (OS: win32, ARCH: x86, CPU: i686)
ClamAV update process started at Fri Sep 14 08:18:19 2007
WARNING: Invalid DNS reply. Falling back to HTTP mode.
Reading CVD header (main.cvd): ERROR: Can't get information about database.clamav.net: No IP address
WARNING: Can't read main.cvd header from database.clamav.net (IP: )
Trying again in 5 secs...
ClamAV update process started at Fri Sep 14 08:18:20 2007
WARNING: Invalid DNS reply. Falling back to HTTP mode.
Reading CVD header (main.cvd): ERROR: Can't get information about database.clamav.net: No IP address
WARNING: Can't read main.cvd header from database.clamav.net (IP: )
Trying again in 5 secs...
ClamAV update process started at Fri Sep 14 08:18:20 2007
WARNING: Invalid DNS reply. Falling back to HTTP mode.
Reading CVD header (main.cvd): ERROR: Can't get information about database.clamav.net: No IP address
WARNING: Can't read main.cvd header from database.clamav.net (IP: )
Giving up on database.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.


Interestingly even though it says it waits 5 seconds, the timestamp seems to show these events all happening within a second. It would be much better if it waited until an IP address was aquired before attempting an update. Even a setting to say update x minutes after log on would solve this problem.
View user's profileSend private message
sherpya


Joined: 22 Mar 2006
Posts: 0
Location: Italy
Reply with quote
you may have a firewall blocking freshclam.exe, pls allow freshclam connections
View user's profileSend private message
Grumpyrain


Joined: 15 Jan 2007
Posts: 0
Reply with quote
sherpya wrote:
you may have a firewall blocking freshclam.exe, pls allow freshclam connections

No, this is happens even if the firewall is disabled. In any case, my firewall is configured
freshclam.exe -> Dest=[Any],Port=[Any],Protocol=[TCP/UDP Out],Permission=[Allow]
so this can not be the case. I can also manually run freshclam with success.

I believe this occurs because freshclam.exe is trying to run before the WLAN connection is ready. The message in the log states that it waits for 5 seconds twice (10 seconds in total), but the timestamps in the log indicate that all these events occur within a second.
View user's profileSend private message
sherpya


Joined: 22 Mar 2006
Posts: 0
Location: Italy
Reply with quote
can you try this?
open command prompt

the call nslookup
at the prompt enter
set querytype=txt
then
current.cvd.clamav.net

the output should be like
Code:

Non-authoritative answer:
current.cvd.clamav.net  text =

        "0.91.2:44:4376:1190615341:1"

cvd.clamav.net  nameserver = ns7.clamav.net
cvd.clamav.net  nameserver = ns1.clamav.net
cvd.clamav.net  nameserver = ns2.clamav.net
cvd.clamav.net  nameserver = ns3.clamav.net
cvd.clamav.net  nameserver = ns4.clamav.net
cvd.clamav.net  nameserver = ns5.clamav.net
cvd.clamav.net  nameserver = ns6.clamav.net
ns7.clamav.net  internet address = 209.204.159.15
ns1.clamav.net  internet address = 216.15.159.94
ns2.clamav.net  internet address = 63.166.28.2
ns3.clamav.net  internet address = 195.70.36.141
ns4.clamav.net  internet address = 209.9.232.3
ns5.clamav.net  internet address = 213.92.8.2
ns6.clamav.net  internet address = 208.201.249.238
ns5.clamav.net  AAAA IPv6 address = 2001:1418:13:1::1


where "0.91.2:44:4376:1190615341:1" is the data freshclam needs

can you also try nslookup, then:
database.clamav.net

you should have something like:
Code:

Non-authoritative answer:
database.clamav.net     canonical name = db.local.clamav.net
db.local.clamav.net     canonical name = db.it.clamav.net

clamav.net
        primary name server = ns1.clamav.net
        responsible mail addr = hostmaster.clamav.net
        serial  = 2007091501
        refresh = 3600 (1 hour)
        retry   = 900 (15 mins)
        expire  = 604800 (7 days)
        default TTL = 7200 (2 hours)

where the alias is geolocalized db.it.clamav.net -> Italy

additional info in the freshclam code,
they added a workaround disabled by default, for an alcatel modem

Code:

The DNS server in the SpeedTouch Alcatel 510 modem can't
handle a TXT-query, but it can resolve an ANY-query to a
TXT-record, so we try an ANY-query now.  The thing we try
to resolve normally only has a TXT-record anyway.


or more simple when freshclam starts your network is not yet initialized, so you can update manually or don't use update at logon,
currently freshclam doesn't wait for the connection to came up and anyway an update at logon would never work
if the network is not ready
View user's profileSend private message
'Fail to update' nag when offline.
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic