TeamCity plugin and floating license - Advanced Installer Community
binzer
Posts: 2
Joined: Wed Apr 20, 2016 8:26 am

TeamCity plugin and floating license

Problem description -
TeamCity build agent acquires floating license when making any build (even ones that do not have any AI build steps) and prevents other AI builds from running.

We have acquired a floating point license in order to use AI on TeamCity, but basically we cannot use the plugin since it behaves as described above.
We are trying to follow your license guidelines but it is very tricky when the floating license does not work well with TeamCity.
We also have two developers licenses - we would very much like to use them with TC if that is ok, that would solve all our problems.

How to reproduce ?
1) Install AI on dedicated TeamCity build agent server and point to license server on TeamCity build server having AI plugin.
2) Run any build on agent - AI license is acquired.
3) Run any build on another agent using AI plugin - AI build step fails

Environment -

Windows server 2012
TeamCity 9.1
TeamCity AI plugin 1.1.1

Log Running Advanced Installer
[17:01:57][Step 3/4] Starting: "C:\Program Files (x86)\Caphyon\Advanced Installer\bin\x86\AdvancedInstaller.com" /execute C:\BuildAgent-2\work\c0e04995252494e5\****.aip C:\BuildAgent-2\temp\globalTmp\aic1647489041216944819.tmp
[17:01:57][Step 3/4] in directory: C:\BuildAgent-2\work\c0e04995252494e5
[17:02:01][Step 3/4] Build
[17:02:01][Step 3/4] Failed to acquire floating license.
[17:02:01][Step 3/4] Process exited with code -536805267
[17:02:02][Step 3/4] Step ***** (Advanced Installer) failed

.ai build project not attached since it does not seem relevant.

Thanks for your help
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: TeamCity plugin and floating license

Hello and welcome to our forums,

Please give us some time to test and investigate the scenario and we'll get back to you as soon as we have a resolution. Until then, as a workaround, you can register and use one of your per-developer licenses on your TeamCity server too.

Thank you for your patience and understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: TeamCity plugin and floating license

Hello,

Can you also please check if any "advinst.exe" process is running on the TeamCity machine (where the TeamCity build, which doesn't include any AI setup project build, runs) when this error occurs?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
binzer
Posts: 2
Joined: Wed Apr 20, 2016 8:26 am

Re: TeamCity plugin and floating license

Hello Daniel,

Thank you for your quick reply.
You are right - a user was running AI on the build agent and had acquired the license.
I am sorry, I should have checked that as the first thing.
I was tricked a bit by the "TL" time indicator on the license server which I though would indicate the time for which the license was held which seems to reset even though AI was running continuously on the server. I could probably have found the info somewhere here what it really means.

Best regards,
Sune

PS: If you know of an easy way to let TeamCity build wait for a free license instead of failing, that would be great,
otherwise we will probably do some command line script to invoke AI until a free license is ready.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: TeamCity plugin and floating license

Hello Sune,

I'm glad you sorted things out.
I was tricked a bit by the "TL" time indicator on the license server which I though would indicate the time for which the license was held which seems to reset even though AI was running continuously on the server. I could probably have found the info somewhere here what it really means.
The TL attribute indicates how much time has elapsed since the license is in use.
PS: If you know of an easy way to let TeamCity build wait for a free license instead of failing, that would be great,
otherwise we will probably do some command line script to invoke AI until a free license is ready.
I'm afraid we don't have any support for this. You can try indeed to write your own script which will invoke AI until a free license slot is available.

If there is anything we can assist you with just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”