Avast 6: "Cannot connect to server" when updating

Hello,

Today I have started getting the message “Cannot connect to server” when attempting to update via the Avast user interface. However if I go to Control Panel, Add/Remove Programs and select the Update option in Avast, it updates without a problem. I have tried the Repair option, which runs but does not fix the problem.

I have tried performing the Avast User Interface update with my firewall (Zone Alarm) turned off, and still get the same error message. I have tried changing the Proxy Settings between Direct Connection and Auto Detect, as suggested elsewhere in the forum, and that has not made a difference.
Can you suggest any reason why this is happening? And how I can fix it?

To assist, please find below the version of Windows and Avast I have installed -

Avast Program Version: 6.0.1091
Virus Definitions Version: 110426-0

OS Name: Microsoft Windows XP Professional
Version: 5.1.2600 Service Pack 3 Build 2600

Many thanks

I have the same problem in 2 different pc: one connects in a LAN, another connects with a “internet key”.
This problem starts many month ago!!!

A pc have windows 7 starter edition , another win xp pro sp3.
Avast Program Version: 6.0.1000
Virus Definitions Version: 110422-0

I have downloaded ,from avast website, the new definition virus package and I have update so.

How can fix??

Also in “control panel”->“add/remove application”->ecc

I have tried now and this is the log returned:
(the forum not parmits more than 1000 characters, then I can cut)


27.04.2011 09:15:56 general: Cmdline: /uninstwiz
27.04.2011 09:15:56 general: Old version: 3e8 (1000)
27.04.2011 09:15:56 registry: Deleted registry: Software\AVAST Software\Avast\UpdateReady
27.04.2011 09:15:56 system: Using temp: C:\DOCUME~1\andrea\IMPOST~1\Temp_asw_aisI.tm~a03452 (14723M free)
27.04.2011 09:15:56 general: SGW32AIS::CheckIfInstalled set m_bAlreadyInstalled to 1
27.04.2011 09:15:56 general: DldSrc set to inet
27.04.2011 09:15:56 internet: SYNCER: Agent=Syncer/5.00 (ais-1000;p)
27.04.2011 09:15:56 system: Computer DnsName: topolinia
27.04.2011 09:15:56 system: Computer Ip Addr: 192.168.148.3
27.04.2011 09:15:56 system: Installed in: C:\Programmi\Alwil Software\Avast5 (14723M free)
27.04.2011 09:15:56 internet: SYNCER: Type: use IE settings
27.04.2011 09:15:56 internet: SYNCER: Auth: another authentication, use WinInet
27.04.2011 09:15:56 package: Part prg_ais-3e8 is installed
27.04.2011 09:15:56 package: Part vps_win32-11042200 is installed
27.04.2011 09:15:56 package: Part setup_ais-3e8 is installed
27.04.2011 09:15:56 package: Part jrog-a7 is installed
27.04.2011 09:15:56 package: Part jrog2-1d2 is installed
27.04.2011 09:15:56 general: LoadState: Edition=1
27.04.2011 09:15:56 general: Old version: 3e8 (1000)
27.04.2011 09:15:57 file: SetExistingFilesBitmap: 811->241->241
27.04.2011 09:15:57 general: GUID: 632b9045-fc05-4745-a4f8-dd6e41bb2a02
27.04.2011 09:15:57 general: Server definition(s) loaded for ‘main’: 297 (maintenance:0)
27.04.2011 09:15:57 general: SelectCurrent: selected server ‘Download815 AVAST5 Server’ from ‘main’
27.04.2011 09:15:57 internet: SYNCER: Type: use IE settings
27.04.2011 09:15:57 internet: SYNCER: Auth: another authentication, use WinInet
27.04.2011 09:16:04 general: progress thread start
27.04.2011 09:16:04 internet: ERROR:HttpGetWininet, catch returned 0x00002EE7 (12007)
27.04.2011 09:16:04 general: InvalidateCurrent: invalidated server ‘Download815 AVAST5 Server’ from ‘main’
27.04.2011 09:16:04 general: SelectCurrent: selected server ‘Download312 AVAST5 Server’ from ‘main’
27.04.2011 09:16:04 internet: SYNCER: Type: use IE settings
27.04.2011 09:16:04 internet: SYNCER: Auth: another authentication, use WinInet
27.04.2011 09:16:04 internet: while trying to get file ‘servers.def.vpx’, error 0x20000004 has occured, try 1
27.04.2011 09:16:04 internet: ERROR:HttpGetWininet, catch returned 0x00002EE7 (12007)
27.04.2011 09:16:04 general: InvalidateCurrent: invalidated server ‘Download312 AVAST5 Server’ from ‘main’
27.04.2011 09:16:04 general: SelectCurrent: selected server ‘Download333 AVAST5 Server’ from ‘main’
27.04.2011 09:16:04 internet: SYNCER: Type: use IE settings
27.04.2011 09:16:04 internet: SYNCER: Auth: another authentication, use WinInet
27.04.2011 09:16:04 internet: while trying to get file ‘servers.def.vpx’, error 0x20000004 has occured, try 2
27.04.2011 09:16:06 internet: ERROR:HttpGetWininet, catch returned 0x00002EE7 (12007)
27.04.2011 09:16:06 general: InvalidateCurrent: invalidated server ‘Download333 AVAST5 Server’ from ‘main’
27.04.2011 09:16:06 general: SelectCurrent: selected server ‘Download764 AVAST5 Server’ from ‘main’
27.04.2011 09:16:06 internet: SYNCER: Type: use IE settings
27.04.2011 09:16:06 internet: SYNCER: Auth: another authentication, use WinInet
27.04.2011 09:16:06 internet: while trying to get file ‘servers.def.vpx’, error 0x20000004 has occured, try 3
27.04.2011 09:16:08 internet: ERROR:HttpGetWininet, catch returned 0x00002EE7 (12007)
27.04.2011 09:16:08 general: InvalidateCurrent: invalidated server ‘Download764 AVAST5 Server’ from ‘main’
27.04.2011 09:16:08 general: SelectCurrent: selected server ‘Download958 AVAST5 Server’

with no proxy or also with autmatic detect.

@ Andrea74,

You are using an outdated version of Avast. Please update to the latest version of 6.0.1091. You can either do it via the Avast GUI and click “update” or do a clean install. If you do a clean install, make sure you use the Avast Uninstaller Tool http://files.avast.com/files/eng/aswclear6.exe and reboot after prior to installing the new version. I would try the upgrade first, then if you still have problems do the uninstall/clean install.

Version 6.0.1091:
Free: http://files.avast.com/iavs5x/setup_av_free.exe
Pro: http://files.avast.com/iavs5x/setup_av_pro.exe
AIS: http://files.avast.com/iavs5x/setup_ais.exe

Let us know if this fixes your problems.

@ MoonBrain,

Is your version of 6.0.1091 an upgrade from a previous version or a clean install? If it was from a previous version, what version was it from? What other security software do you have on your machine now and in the past? How did you remove them in the past? Is your firewall blocking anything related to Avast?

Andrea74,

Do the uninstall and clean install based on your log.

  1. Save a copy of Avast and save it to your HDD (see files posted above).
  2. Download the Avast Uninstall Utility http://files.avast.com/files/eng/aswclear6.exe and save it to your HDD.
  3. Disconnect from the Internet at this time.
  4. Go to Control Panel and uninstall Avast through Add/Remove Programs if possible and reboot.
  5. If Step 4 fails, boot into Safe Mode (hit F8 repeatedly) and run the Avast Uninstall Tool. Uninstall ALL previous versions and products of Avast one at a time and reboot until you are done.
  6. Reboot.
  7. Install the newest version of Avast and reboot.
  8. Get Internet access and register your copy or add the license key for Free, Pro, or AIS.
  9. Update the Avast definitions.

@SafeSurf

It now appears to be working: I uninstalled and reinstalled Avast twice then rebooted after each time, the second time the Update function worked. Not sure what the cause was; it wasn’t the firewall as I tried an Update with it turned off and still got the same problem.

Many thanks for your help.

No problem. Glad everything is working fine for you now. :smiley:

I have made NO OPERATION, for now.
But this evening, while I was doing something else, suddenly it is updated automatically!!

Then I went immediately to see if also manually update works and… everything worked!
now I have the vesion 6.0.1091.

In all honesty :-, I think it’s the server that works and does not work…

AAAAAAAAAAAAh!!! NO!!! Excuse-me!!!
In that pc I have the ethernet not right configured!!! ;D ;D ;D
Automatic update is happaned using the wireless connection :-[

In any case, I must analize the problem on the other pc (netbook with win 7 starter edition): the connect is only one, with “internet key”.

OK guys,

This is a hard one. I have read each and every forum, but to no avail… So I hope you can help!

Problem:
Avast update (auto & manual) does not work (hangs & ‘cannot connect to server’)

Tech:
Avast Free 6.0.1091 (latest version), registered, Sandbox disabled
Comodo Firewall 5.3 (latest version), Firewall enabled, Defense+ enabled, Sandbox disabled
Sandboxie 3.52
Win 7 Ultimate, 32 bit, SP1, Dutch, English MUI

Relevant info/everything I tried w/o success:

  1. Problems seem to have started with updating to Avast 6.0, before my combo Avast/Comodo/Sandboxie worked w/o problems (on old HD)
  2. NEW WD Scorpio Black hard drive, low level formatted TWO days ago
  3. Clean install of firewall, then Avast
  4. Clean Install of Avast, then firewall
  5. Removal of Avast always w/ dedicated tool (aswclear.exe)
  6. Avast installed in safe mode & normal mode
  7. Once BSOD when installing Avast in normal Win7 mode (aswSNx.sys = Avast sandbox driver)
  8. Update sometimes works with Defense+ disabled & enabled, but not consistent
  9. Update sometimes works with Firewall disabled & enabled, but not consistent
  10. Update NEVER works with Defense+ & Firewall enabled
  11. Update ALWAYS works with Defense+ & Firewall disabled
  12. Avast Update settings ‘My computer is permanently…’ checked & unchecked
  13. Avast Update settings ‘Direct connection (no proxy)’ checked & unchecked
  14. All combinations of 12 & 13
  15. Add/Remove Programs, repair unsuccessful (i.e. problem not solved)
  16. Never any other security software installed apart from the one mentioned (no Norton, no Ashampoo, no nada)
  17. Ethernet and WiFi fully functional (incl. latest drivers from Broadcom and Intel, resp.)
  18. Win7: Internet properties > Connections > LAN Settings → no proxy
  19. Firefox: Tools > Options > Advanced > Network > Settings → no proxy
  20. Hosts file OK

From 10 & 11 I would think it has to do with Comodo (and my gutfeeling says it may be the Defense+), but why only now and never before? Does it really have to do with the update to Avast 6? But if this would be the case one would expect the I-net to be plastered with posts on this problem, and it isn’t. Also, I have all the settings in Comodo that are required and on top of that one would expect Comodo to recognise Avast by default, right?
So, frankly, I am clueless…

Needless to say that any help will be much appreciated. Thanks a lot in advance!
Xander.

PS: Didn’t want to hijack anybody’s thread, but since my problem fits the topic very well and it is a recent thread I thought it may be nice to have it all together. Hope that’s OK…

do you have a firewall and defense + rule for avast.setup ? thats the updater, if you use the “purge” function frequently to get rid of old rules, then this may be your problem. do you have “create rules for safe applications” checked in comodo? also, check to see if avast.setup has been sandboxed by comodo(i know its disabled, but look anyway lol)

In addition to the good suggestions given to you by ArtemisF0wl, I would also add your firewall to Avast’s exclusions and vs. since both are security software.

ArtemisF0wl and SafeSurf thanks a lot for your input!

And guess what, I think I got things sorted! It must have been the firewall (and not D+ as I thought). Artemis’ post poked me into reviewing my Comodo settings one last time very carefully and I noticed that I did have a rule for avast.setup in D+, but not in the firewall - presumably because I never saw any ‘Firewall Events’ or maybe because it was 4 in the morning ::slight_smile:

Anyway for future reference - My Comodo settings for Avast 6 and how to get them:

  1. Comodo Firewall
    A. Avast > Maintenance > Update > Update engine and virus definitions → this activates the avast.setup process
    B. Keep the Avast update running (it will hang, if all is ‘well’)
    C. Comodo > Firewall > Define a New Trusted Application > Select > Running processes → select avast.setup and apply
    D. This should result in C:\Program Files\AVAST Software\Avast\Setup\avast.setup under ‘Network Security Policy’ → Make sure the policy is ‘Allow All Requests’ (if not, Edit > Use a Custom Policy > Edit)
    E. Comodo > Firewall > Firewall Bahavior Settings > General Settings, check ‘Create rules for safe applications’

  2. Defense+
    A. Avast > Maintenance > Update > Update engine and virus definitions → this activates the avast.setup process
    B. Keep the Avast update running (it will hang, if all is ‘well’)
    C. Comodo > Defense+ > Trusted Files > Add > Browse Running Processes → select avast.setup and apply
    D. This should result in C:\Program Files\AVAST Software\Avast\Setup\avast.setup under ‘Computer Security Policy > Defense+ Rules’ → Make sure policy is ‘Installer or Updater’ or ‘Trusted application’ (if not, Edit > Use a Predefined Policy)
    E. Still under Computer Security Policy, make sure none of the Avast files is listed under ‘Blocked Files’ and that ALWIL Software (the company providing Avast) is listed under ‘Trusted Software Vendors’
    F. Comodo > Defense+ > Defense+ Settings > General Settings, check ‘Create rules for safe applications’

Notes:
a. The file avast.setup cannot simply be selected from a directory since it is created on the fly, hence steps 1C & 2C
b. Because avast.setup is only created when needed, it may advertedly be discarded when purging Network or Computer Security Policies (FW and D+, resp.). So pay attention not to remove your rule for avast.setup when asked to confirm removal of policies.

Hope this may help someone else, one day…

Thanks again for the quick and helpful replies - this sure is a great forum!
Xander.