Installing new build agent doesn't create new service on windows

Completed

When a new agent is installed the previous/existing ones are overwritten. Also a new service is not created and there is no new entry in the registry. The path to the agent in the existing registry entry (HKLM\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment\\TCBuildAgent) is just overwritten.

I have tried reinstalling TeamCity from backup but this doesn't resolve the problem. Please advice

Teamcity 2019.2, windows server 2008, postgresql db 12

 

3 comments
Comment actions Permalink

Ok after reinstalling team city a few times I have to conlcude that somehow the host os is messed up. As workaround only 1 agent will be run as service for now. It is still unclear how the connection is made between an agent and the windows service/registry entry.

0
Comment actions Permalink

When installing more than one agent on the same Windows installation, you'll need to set the service name to be unique in the wrapper.conf file and then run the service.install.bat file. Please see our documentation on the subject, https://www.jetbrains.com/help/teamcity/setting-up-and-running-additional-build-agents.html#Build-Agent-as-a-Windows-Service.

Let me know if you have any more questions, I'm happy to help and I can clarify the documentation if necessary.

0
Comment actions Permalink

I found we do have a related request on our YouTrack site, https://youtrack.jetbrains.com/issue/TW-4962.

Feel free to check it out and vote for it, if you're interested in seeing this in a future release!

0

Please sign in to leave a comment.