TeamCity Agent falls into endless restart-upgrade

Good afternoon!

We have the mentioned problem.

After the upgrade of our TeamCity-server to the version `TeamCity Professional 2017.2.4 (build 51228)` I tried to install the default TeamCity Agent using a Docker on another server. I used the instructions from this source: https://hub.docker.com/r/jetbrains/teamcity-agent/.
When I try to build and start an agent (through the `docker run` command), the agent builds, starts, connects to our TC-server and then tries to upgrade.

What I have seen in agent logs:

INFO - jetbrains.buildServer.AGENT - Downloading http://teamcity.dev.knevod.com/update/plugins/JetBrains.dotCover.CommandLineTools.bundled.zip ==> /opt/buildagent/update/plugins/JetBrains.dotCover.CommandLineTools.bundled.zip
WARN - jetbrains.buildServer.AGENT - Downloaded file "/opt/buildagent/update/plugins/JetBrains.dotCover.CommandLineTools.bundled.zip" (size: 32443) has another hash. Will try to re-download the file.

After 3 tries agent restarts - and this process becomes endless.

Can you tell me, please, what's going wrong? What information do you need from me for help?

Best wishes,
Paul Burkov,
Ingipro Team

0
1 comment

Hi Paul,

Does it happen with only one agent or with any number of agents? It would make the most sense if it happens with more than one, it's likely that the file got corrupted on the server somehow and you might need to replace it server side. You should probably remove entirely the tool from the server and try to download it again.

If it only happens on one agent, this might be more problematic, as that should mean that the server has the right file but is not downloading it properly. As you can imagine, we have tested this scenario and it works, so this could mean hardware problems, third party software intercepting the transfer and modifying the file, etc.

0

Please sign in to leave a comment.