TeamCity gets timeout when cloning large size project

Answered

I've set up team city (9.x) im my Windows computer.

I started to build project (Visual studio, with size ~6.5 GB) from stashit remote repository. After ~10 hours it failed and threw timeout exception.

The build log contains

VCS problem: master
Error collecting changes for VCS repository '"master" {instance id=17, parent internal id=4, parent id=LendO_Master, description: "https://NghiaN@stashit.assistdirect.com/scm/~nghian/lendo.git#refs/heads/master"}'
'git fetch' command failed.
exception: Timeout exception: the process did not produce output longer than 1800 seconds; Process: D:\TeamCity-9.1.7-installer\TeamCity\jre\bin\java -Xmx1024M -cp D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/lib/common-api.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/plugins/.unpacked/jetbrains.git/server/commons-logging-1.1.3.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/lib/server-api.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/lib/log4j-1.2.12.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/plugins/.unpacked/jetbrains.git/server/jsch-0.1.51.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/plugins/.unpacked/jetbrains.git/server/org.eclipse.jgit.http.apache-3.7.0.201502260915-r.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/plugins/.unpacked/jetbrains.git/server/httpclient-4.3.4.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/plugins/.unpacked/jetbrains.git/server/commons-codec-1.6.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/plugins/.unpacked/jetbrains.git/server/git-common.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/plugins/.unpacked/jetbrains.git/server/httpcore-4.3.2.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/lib/jdom.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/lib/slf4j-log4j12-1.7.5.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/plugins/.unpacked/jetbrains.git/server/JavaEWAH-0.7.9.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/plugins/.unpacked/jetbrains.git/server/org.eclipse.jgit-3.7.0.201502260915-r.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/lib/openapi.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/lib/trove4j.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/plugins/.unpacked/jetbrains.git/server/git-server.jar;D:/TeamCity-9.1.7-installer/TeamCity/webapps/ROOT/WEB-INF/lib/slf4j-api-1.7.5.jar jetbrains.buildServer.buildTriggers.vcs.git.Fetcher https://nghian@stashit.assistdirect.com/scm/~nghian/lendo.git
stdout: remote: Counting objects: 62329
remote: Counting objects: 109571
remote: Counting objects: 149774
remote: Counting objects: 189552
remote: Counting objects: 227699
remote: Counting objects: 266129
remote: Counting objects: 312038

remote: Compressing objects: 1%
remote: Compressing objects: 2%
remote: Compressing objects: 3%
remote: Compressing objects: 4%
remote: Compressing objects: 5%
remote: Compressing objects: 6%
remote: Compressing objects: 7%
remote: Compressing objects: 8%
remote: Compressing objects: 9%
remote: Compressing objects: 10%
remote: Compressing objects: 11%
remote: Compressing objects: 12%
remote: Compressing objects: 13%
remote: Compressing objects: 14%
remote: Compressing objects: 15%
remote: Compressing objects: 16%
remote: Compressing objects: 17%
remote: Compressing objects: 18%
remote: Compressing objects: 19%
remote: Compressing objects: 20%
remote: Compressing objects: 21%
remote: Compressing objects: 22%
remote: Compressing objects: 23%
remote: Compressing objects: 24%
remote: Compressing objects: 25%
remote: Compressing objects: 26%
remote: Compressing objects: 27%
remote: Compressing objects: 28%
remote: Compressing objects: 29%
remote: Compressing objects: 30%
remote: Compressing objects: 31%
remote: Compressing objects: 32%
remote: Compressing objects: 33%
remote: Compressing objects: 34%
remote: Compressing objects: 35%
remote: Compressing objects: 36%
remote: Compressing objects: 37%
remote: Compressing objects: 38%
remote: Compressing objects: 39%
remote: Compressing objects: 40%
remote: Compressing objects: 41%
remote: Compressing objects: 42%
remote: Compressing objects: 43%
remote: Compressing objects: 44%
remote: Compressing objects: 45%
remote: Compressing objects: 46%
remote: Compressing objects: 47%
remote: Compressing objects: 48%
remote: Compressing objects: 49%
remote: Compressing objects: 50%
remote: Compressing objects: 51%
remote: Compressing objects: 52%
remote: Compressing objects: 53%
remote: Compressing objects: 54%
remote: Compressing objects: 55%
remote: Compressing objects: 56%
remote: Compressing objects: 57%
remote: Compressing objects: 58%
remote: Compressing objects: 59%
remote: Compressing objects: 60%
remote: Compressing objects: 61%
remote: Compressing objects: 62%
remote: Compressing objects: 63%
remote: Compressing objects: 64%
remote: Compressing objects: 65%
remote: Compressing objects: 66%
remote: Compressing objects: 67%
remote: Compressing objects: 68%
remote: Compressing objects: 69%
remote: Compressing objects: 70%
remote: Compressing objects: 71%
remote: Compressing objects: 72%
remote: Compressing objects: 73%
remote: Compressing objects: 74%
remote: Compressing objects: 75%
remote: Compressing objects: 76%
remote: Compressing objects: 77%
remote: Compressing objects: 78%
remote: Compressing objects: 79%
remote: Compressing objects: 80%
remote: Compressing objects: 81%
remote: Compressing objects: 82%
remote: Compressing objects: 83%
remote: Compressing objects: 84%
remote: Compressing objects: 85%
remote: Compressing objects: 86%
remote: Compressing objects: 87%
remote: Compressing objects: 88%
remote: Compressing objects: 89%
remote: Compressing objects: 90%
remote: Compressing objects: 91%
remote: Compressing objects: 92%
remote: Compressing objects: 93%
remote: Compressing objects: 94%
remote: Compressing objects: 95%
remote: Compressing objects: 96%
remote: Compressing objects: 97%
remote: Compressing objects: 98%
remote: Compressing objects: 99%
remote: Compressing objects: 100%
remote: Compressing objects: 100%

Receiving objects: 1%
Receiving objects: 2%
Receiving objects: 3%
Receiving objects: 4%
Receiving objects: 5%
Receiving objects: 6%
Receiving objects: 7%
Receiving objects: 8%
Receiving objects: 9%
Receiving objects: 10%
Receiving objects: 11%
Receiving objects: 12%
Receiving objects: 13%
Receiving objects: 14%
Receiving objects: 15%
Receiving objects: 16%
Receiving objects: 17%
Receiving objects: 18%
Receiving objects: 19%
Receiving objects: 20%
Receiving objects: 21%
Receiving objects: 22%
Receiving objects: 23%
Receiving objects: 24%
Receiving objects: 25%
Receiving objects: 26%
Receiving objects: 27%
Receiving objects: 28%
Receiving objects: 29%
Receiving objects: 30%
Receiving objects: 31%
Receiving objects: 32%
Receiving objects: 33%
Receiving objects: 34%
Receiving objects: 35%
Receiving objects: 36%
Receiving objects: 37%
Receiving objects: 38%
Receiving objects: 39%
Receiving objects: 40%
Receiving objects: 41%
Receiving objects: 42%
Receiving objects: 43%
exit code: -1

I've tried creating new project and changed checkout path into local git (that was cloned successfully) but it got the same error.

Could anyone help me with this issue ?

3 comments

It seems like a "git fetch" failure. Either you have a really slow network connection, something wrong with your windows agent or your git repo is too huge. Hope this helps.

1

Thanks for your comment,

If my git repo is too huge, Is there any way to clone it or clone it from my local repo then change repo location to stashit ?

0

The process seems to hang not producing any output for 3 hours. This timeout can be increased via teamcity.git.idle.timeout.seconds internal server property, but I'd rather figure out why featch can hang for so long without any output. 

> Is there any way to clone it or clone it from my local repo then change repo location to stashit ?

You can log on to the TeamCity server and check the directory the git fetch process runs in, then stop TeamCity server and clone the repository there using git command line.

0

Please sign in to leave a comment.