Agent needs upgrading

Hi

I have baked an AWS AMI and have configured the Cloud Agent to use that AMI. It works fine except that every time a new instance of the Cloud Agent is created based on that image, TeamCity will spend a good ten minutes to upgrade it (although it was installed by TC just a day before)!

This has an impact on the time that it takes for a build agent to be operational and increases the build queue. Is there a way to upgrade the agent manually? So I can bake an image which includes the up-to-date agenty?

0
2 comments

Hi Aref,

 

what happens if you manually spin up an image, instead of just using the cloud profile? Does the agent also try to upgrade?

 

From the symptoms, it would seem like either the agent was installed but not properly connected to the server, or the server was modified (plugins added, server upgrade, etc), so the agents aren't properly synced and need to pull extra changes.

 

Usually you would spin up an image, let it upgrade and do everything it needs, then create the image from that state. More details here: https://www.jetbrains.com/help/teamcity/teamcity-integration-with-cloud-solutions.html#TeamCityIntegrationwithCloudSolutions-Capturinganimagefromavirtualmachine

0
Avatar
Permanently deleted user

Hi Denis

If I spin a new instance and authorize it in TeamCity, it will work fine.

 

What I did was that I let TeamCity server update the cloud agent, then I created an Amazon Image of that instance and used it as a template for future cloud agents! That works fine now!

0

Please sign in to leave a comment.