Failed to start build: Cannot notify server that agent is ready to apply patch, will try again
I am using Teamcity 6.0.1 and I am starting to notice more frequent build failures with the following errors "Failed to start build: Cannot notify server that agent is ready to apply patch, will try again"
[12:44:04]: Will repeat attempt when server will be available, number of attempts left: 1
[13:05:02]:
Failed to notify server that agent is ready to apply patch: Call http://ci.capital.ge.com/TeamCity/RPC2 buildServer.markCheckoutDirDirty: java.net.SocketTimeoutException: Read timed out jetbrains.buildServer.agent.impl.patch.PatchServerStatusTrackerImpl$1: Cannot notify server that agent is ready to apply patch, will try again at jetbrains.buildServer.agent.impl.patch.PatchServerStatusTrackerImpl.setDirty(PatchServerStatusTrackerImpl.java:31) at jetbrains.buildServer.agent.impl.patch.UpdateSourcesFromServer.updateSources(UpdateSourcesFromServer.java:64) at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doSourceUpdate(UpdateSourcesBuildStageBase.java:90) at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doRecoverableStage(UpdateSourcesBuildStageBase.java:58) at jetbrains.buildServer.agent.impl.buildStages.startStages.RecoverableBuildStage.doLastAttempt(RecoverableBuildStage.java:112) at jetbrains.buildServer.agent.impl.buildStages.startStages.RecoverableBuildStage.doBuildStage(RecoverableBuildStage.java:70) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:29) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:68) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:31) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24) at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:65) at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:48) at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:250) at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:48) at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:223)
I am checking out code from Starteam and also from Subversion and the error occurs for both VCS systems, there are no specific pattern.
Please sign in to leave a comment.
Paul,
There can be two reasons for the error:
- network communications between the agent and the server is unreliable
- TeamCity server is overloaded and slow, could not process requests in timely manner
If the first one is not the case, please:
- attach teamcity-server.log from the server and teamcity-agent.log from the agent
- take server thread dumps while the build is retrying the attempts and submit them to us
If you do not want to make the data public, please create an issue in our issue tracker and attach the files visible to teamcity-developers only.
Thanks I enter an issue (TW-19401) and attached 2 thread dump files