Bug report: updater finding updates when port is closed - Advanced Installer Community
clemensm
Posts: 3
Joined: Tue Jan 06, 2015 3:41 pm

Bug report: updater finding updates when port is closed

Hello,

we are using the updater.exe in one of our products. Just now we have found a small problem: When we run the updater with /checknow against an address where the port is closed the updater.exe hangs and does not return. If we then do not kill this first instance and run a second instance of the updater, it does return with a value of 0, indicating that there are updates available (which cannot be, the port is still closed).

The version of the updater we are using is 3.0.0.0.

\
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Bug report: updater finding updates when port is closed

Hello and welcome to Advanced Installer forums,

I've tested your scenario but I cannot replicate it.
If the port is blocked and the updater cannot establish a connection to the server, there will be a timeout connection prompt.
Also, while the updater is searching for updates, another instance of the updater cannot be launched.

So, can you please test this on a different machine and see if the behavior still persist? If it does, can you please give us a detailed test case scenario so we can further investigate?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
clemensm
Posts: 3
Joined: Tue Jan 06, 2015 3:41 pm

Re: Bug report: updater finding updates when port is closed

Hello Dan,

I've played around with the updater a bit more and can now reliably reproduce the problem. What you need to do is to run the updater as

updater.exe /checknow -minuseractions

where the server is not reachable, and then start a second instance with the same command.

I've included a small example with config and all. To run it just unzip it to E:\temp\updater (or anywhere and change the necessary entries in the config file). Then run cscript.exe runupdater.vbs from the command line, which will block the call. Then open another command line and run cscript.exe runupdater.vbs as well. Now the call will not block and 0 will be returned.

Thenks for your help
Clemens
Attachments
updater.zip
Example
(166.4 KiB) Downloaded 200 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Bug report: updater finding updates when port is closed

Hello,

First of all we apologize for such a delayed answer.

I've tested the scenario and I've partially replicated the behavior.

Firstly, after I've launched the Updater the first time, it took about 4 minutes until the Updater replied with an exit code. The exit code is 12029 and means "A connection with the server could not been established.". I think it takes so long (about 4 minutes) because the API we use to establish a connection with the server try several time to redo the connection in case of a failure.

Secondly, after the updater was launched the first time and was running, I've launched another instance of it and indeed it has returned a 0 (zero) exit code. This seems to be an Advanced Installer issue, thank you for bringing it to our attention. A fix will be available in a future version of Advanced Installer. We'll update this thread as soon as the fix will be out.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
clemensm
Posts: 3
Joined: Tue Jan 06, 2015 3:41 pm

Re: Bug report: updater finding updates when port is closed

Hello Daniel,

no problem, the matter is not that urgent. And thanks for fixing it!

All the best

Clemens
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Bug report: updater finding updates when port is closed

You're welcome Clemens. We'll update this thread as soon as a fix will be out.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Bug report: updater finding updates when port is closed

Hello,

This was fixed in version 12.0 of Advanced Installer released on April 2nd, 2015 .

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”