Issue building with team city

I am trying to use team city to build a project that is hosted on visual studio online (git). I have setup the project with team city such that via the website it can see that there are new checkins going to the main branch, the problem that i am having is that the agent is not able to clone the reponsitory, the error logs are:

TeamCity server version is 8.1.4 (build 30168)
[12:07:42]Checking for changes
[12:07:42]Will collect changes in 1 VCS roots
[12:07:42]Loading current repository state for VCS root 'https://aacore.visualstudio.com/DefaultCollection/_git/aa#refs/heads/master'
[12:07:42]Waiting for completion of current operations for the VCS root 'https://aacore.visualstudio.com/DefaultCollection/_git/aa#refs/heads/master'
[12:07:42]Detecting changes in VCS root 'https://aacore.visualstudio.com/DefaultCollection/_git/aa#refs/heads/master' (used in Build)
[12:07:42]Agent time zone: America/Los_Angeles
[12:07:42]Agent is running under JRE: 1.7.0_51-b13
[12:07:43]Publishing internal artifacts
[12:07:43][Publishing internal artifacts] Sending using WebPublisher
[12:07:43][Publishing internal artifacts] Sending using ArtifactsCachePublisher
[12:07:43]Clearing temporary directory: C:\BuildAgent\temp\buildTmp
[12:07:43]Checkout directory: C:\BuildAgent\work\327aa5ed8fef42b3
[12:07:43]Updating sources: server side checkout (12h:0m:01s)
[12:07:43][Updating sources] Using vcs information from server. Reason: no revision information for buildtype Build and checkout directory C:\BuildAgent\work\327aa5ed8fef42b3 on agent
[12:07:43][Updating sources] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources
[00:07:44][Updating sources] Problem while loading patch data stream: Read timed out
[00:07:44]Will repeat attempt when server will be available, number of attempts left: 2
[00:07:54]Updating sources: server side checkout (12h:0m)
[00:07:54][Updating sources] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources
[12:07:55][Updating sources] Problem while loading patch data stream: Read timed out
[12:07:55]Will repeat attempt when server will be available, number of attempts left: 1
[12:08:05]Updating sources: server side checkout (12h:0m)
[12:08:05][Updating sources] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources
[12:08:05][Updating sources] Building and caching clean patch for VCS root: https://aacore.visualstudio.com/DefaultCollection/_git/aa#refs/heads/master
[00:08:05][Updating sources] Problem while loading patch data stream: Read timed out
[00:08:05]Problem while loading patch data stream: Read timed out
[00:08:05]
java.net.SocketTimeoutException: Read timed out
 at java.net.SocketInputStream.socketRead0(Native Method)
 at java.net.SocketInputStream.read(SocketInputStream.java:152)
 at java.net.SocketInputStream.read(SocketInputStream.java:122)
 at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
 at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
 at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
 at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
 at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
 at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
 at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
 at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
 at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
 at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
 at jetbrains.buildServer.http.ServerStreamProvider.getStream(ServerStreamProvider.java:112)
 at jetbrains.buildServer.agent.impl.patch.PatchStreamProviderImpl.getServerStream(PatchStreamProviderImpl.java:63)
 at jetbrains.buildServer.agent.impl.patch.PatchStreamProviderImpl.getPatchesStream(PatchStreamProviderImpl.java:37)
 at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.downloadPatch(PatchDownloaderImpl.java:144)
 at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.copyPatchAndCheck(PatchDownloaderImpl.java:59)
 at jetbrains.buildServer.agent.impl.patch.UpdateSourcesPatcherBase.copyPatchToTempFile(UpdateSourcesPatcherBase.java:71)
 at jetbrains.buildServer.agent.impl.patch.UpdateSourcesFromServer.updateSources(UpdateSourcesFromServer.java:60)
 at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doSourceUpdate(UpdateSourcesBuildStageBase.java:91)
 at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doRecoverableStage(UpdateSourcesBuildStageBase.java:59)
 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:24)
 at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78)
 at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37)
 at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24)
 at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:70)
 at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:50)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:265)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:52)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:231)
 at java.lang.Thread.run(Thread.java:744)
[00:08:05]Problem while loading patch data stream
[00:08:05]
jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl$3: Problem while loading patch data stream
 at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.downloadPatch(PatchDownloaderImpl.java:153)
 at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.copyPatchAndCheck(PatchDownloaderImpl.java:59)
 at jetbrains.buildServer.agent.impl.patch.UpdateSourcesPatcherBase.copyPatchToTempFile(UpdateSourcesPatcherBase.java:71)
 at jetbrains.buildServer.agent.impl.patch.UpdateSourcesFromServer.updateSources(UpdateSourcesFromServer.java:60)
 at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doSourceUpdate(UpdateSourcesBuildStageBase.java:91)
 at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doRecoverableStage(UpdateSourcesBuildStageBase.java:59)
 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:24)
 at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78)
 at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37)
 at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24)
 at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:70)
 at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:50)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:265)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:52)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:231)
 at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.SocketTimeoutException: Read timed out
 at java.net.SocketInputStream.socketRead0(Native Method)
 at java.net.SocketInputStream.read(SocketInputStream.java:152)
 at java.net.SocketInputStream.read(SocketInputStream.java:122)
 at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
 at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
 at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
 at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
 at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
 at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
 at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
 at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
 at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
 at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
 at jetbrains.buildServer.http.ServerStreamProvider.getStream(ServerStreamProvider.java:112)
 at jetbrains.buildServer.agent.impl.patch.PatchStreamProviderImpl.getServerStream(PatchStreamProviderImpl.java:63)
 at jetbrains.buildServer.agent.impl.patch.PatchStreamProviderImpl.getPatchesStream(PatchStreamProviderImpl.java:37)
 at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.downloadPatch(PatchDownloaderImpl.java:144)
 ... 18 more
[00:08:06]##teamcity[buildStatisticValue key='buildStageDuration:buildFinishing' value='1.29623032E8']
[00:08:06]Publishing internal artifacts
[00:08:06][Publishing internal artifacts] Sending using WebPublisher
[00:08:06][Publishing internal artifacts] Sending using ArtifactsCachePublisher
[00:08:06]Build failed to start. Artifacts will not be published for this build
[00:08:06]##teamcity[buildStatisticValue key='buildStageDuration:artifactsPublishing' value='109.0']
[00:08:06]Build finished


Does anyone know what the issue is? and if so how to do i resolve this?
1 comment
Comment actions Permalink

Hi,

Do you set up TeamCity server behind proxy/firewall? If yes, please check if there is a limit of transfer size per connection or connection timeout. Also please check that there is no antivirus or other software that can interfere with the network operations.
As workaround you can use agent-side checkout.

0

Please sign in to leave a comment.