Connect BuildAgent to TeamCity IPv6 Server
I'm trying to connect a Teamcity agent on windows to a server using a hostname with AAAA record.
The server is working fine and responding as expected on IPv6 only
Are there any known issues (didnt find much info when searching) or maybe other minimum requirements?
I have tried setting ownAddress but no difference
And also
java.net.preferIPv6Stack=true
java.net.preferIPv6Addresses=true
[2024-12-18 13:23:04,457] INFO - buildServer.AGENT.registration - Registering on server via URL "http://tcserver:9999": AgentDetails{Name='agent3', AgentId=null, BuildId=null, AgentOwnAddress='2001:db8:1:f0:90cf:f8fe:1eb2:f005', AlternativeAddresses=[], Port=9090, Version='174331', PluginsVersion='174331-md5-b7105be7a4940c82e49acd6661429108', AvailableRunners=[Ant, cargo-deploy-runner, csharpScript, DockerCommand, dotcover, dotnet, dotnet-tools-dupfinder, dotnet-tools-inspectcode, Duplicator, ftp-deploy-runner, FxCop, gradle-runner, Inspection, jb.nuget.installer, jb.nuget.pack, jb.nuget.publish, jetbrains.dotNetGenericRunner, jetbrains.mspec, jetbrains_powershell, JPS, kotlinScript, Maven2, MSBuild, NAnt, nodejs-runner, NUnit, nunit-console, python-runner, Qodana, rake-runner, SBT, simpleRunner, sln2003, smb-deploy-runner, ssh-deploy-runner, ssh-exec-runner, VS.Solution], AvailableVcs=[tfs, jetbrains.git, mercurial, svn, perforce], AuthorizationToken='xxxx', PingCode='xxxx'}
[2024-12-18 13:24:28,644] WARN - buildServer.AGENT.registration - Error while asking server for the communication protocols via URL http://tcserver:9999/app/agents/protocols. Will try later: java.net.ConnectException: Connection timed out: connect (enable debug to see stacktrace)
[2024-12-18 13:24:28,644] WARN - buildServer.AGENT.registration - Error registering on the server via URL http://tcserver:9999. Will continue repeating connection attempts.
Using Version 2024.12 (build 174331)
Please sign in to leave a comment.
Ok literally found it seconds after posting
The Agent was running on OpenJDK 11, it seems that agent updates does not upgrade to new JRE versions?
Yes, the automatic update doesn't update Java. Did you install the new Java version and it resolved the issue?
Best regards,
Anton
Essentially i stopped the service, emptied the JRE directory and updated contents from the TeamCity server, which does seem to be updated? and that resolved the issue.
A feature request here is to have the agents show which version of JRE they are running under, and maybe even show a warning if it is older or even different from the server, option to silence the warning would probably be nice to have.
Currently, it seems that the most convenient way to find out the JRE version the build agent is using is from the Build Agent page > Logs > launcher.log.
I agree that this information is important, so I've created a feature request to display it on the build agent's summary page: https://youtrack.jetbrains.com/issue/TW-91498. I'm not sure about the warnings, as using different or even older JRE versions may be intentional in many cases, but please feel free to comment on the issue with any details and additional requests.
Best regards,
Anton