Builds take too long to Update sources

Hi,

We are experiencing big delays lately in Teamcity. We haven't been able to find the problem, somehow the build hangs on retrieving the patches.

[10:04:19]Checking for changes
[10:04:19]Collecting changes in 5 VCS roots (1s)
[10:04:19][Collecting changes in 5 VCS roots] VCS Root details
[10:04:19][VCS Root details] "Web Core" {instance id=789, parent internal id=276, parent id=Main_WebCore, description: "tfs: https://tfs.xxxxx.xxxx.org/tfs/DefaultCollection $/xxxxxxxx/xxxx/xxxxxxxxxx"}
[10:04:19][VCS Root details] "Service Core" {instance id=788, parent internal id=277, parent id=Main_ServiceCore, description: "tfs: https://tfs.xxxxx.xxxx.org/tfs/DefaultCollection $/xxxxxxxx/xxxxxxxx/xxxxx"}
[10:04:19][VCS Root details] "build specifics" {instance id=787, parent internal id=278, parent id=Main_BuildSpecifics, description: "tfs: https://tfs.xxxxx.xxxx.org/tfs/DefaultCollection $/xxxxxxxx/xxxxxxxx/xxxxx"}
[10:04:19][VCS Root details] "Service Contracts" {instance id=785, parent internal id=275, parent id=Main_ServiceContracts, description: "tfs: https://tfs.xxxxx.xxxx.org/tfs/DefaultCollection $/xxxxxxxx/xxxxxxxx/xxxxx"}
[10:04:19][VCS Root details] "CommonDependencies" {instance id=784, parent internal id=274, parent id=Main_CommonDependencies, description: "tfs: https://tfs.xxxxx.xxxx.org/tfs/DefaultCollection $/xxxxxxxx/xxxxxxxx/xxxxx"}
[10:04:22]Waiting for the previous build post-processing tasks to finish
[10:04:26]Clearing temporary directory: D:\tc\ba1\temp\buildTmp
[10:04:26]Publishing internal artifacts
[10:04:26][Publishing internal artifacts] Sending using ArtifactsCachePublisher
[10:04:26][Publishing internal artifacts] Sending using WebPublisher
[10:04:26]Checkout directory: D:\tc\ba1\work\d66db81fbb1b9ddd
[10:04:26]Updating sources: server side checkout (2h:22m:56s)
[10:04:26][Updating sources] Using vcs information from server. Reason: no revision information for build configuration "WebCert" and checkout directory D:\tc\ba1\work\d66db81fbb1b9ddd on agent
[10:04:27][Updating sources] Will perform clean checkout
[10:04:27][Updating sources] Clean checkout reasons
[10:04:27][Clean checkout reasons] Agent doesn't have any version of the project sources
[10:04:27][Clean checkout reasons] Checkout directory is empty or doesn't exist
[10:04:27][Updating sources] Transferring cached clean patch for VCS root: CommonDependencies
[10:04:51][Updating sources] Transferring cached clean patch for VCS root: Service Contracts
[10:04:51][Updating sources] Transferring cached clean patch for VCS root: CommonDependencies
[10:04:51][Updating sources] Transferring cached clean patch for VCS root: build specifics
[10:04:51][Updating sources] Transferring cached clean patch for VCS root: Service Contracts
[10:04:51][Updating sources] Transferring cached clean patch for VCS root: build specifics
[10:04:51][Updating sources] Transferring cached clean patch for VCS root: Service Contracts
[10:04:51][Updating sources] Transferring cached clean patch for VCS root: CommonDependencies
[10:04:51][Updating sources] Transferring cached clean patch for VCS root: Service Contracts
[10:04:51][Updating sources] Building and caching clean patch for VCS root: build specifics
[10:04:52][Updating sources] Transferring cached clean patch for VCS root: build specifics
[10:04:52][Updating sources] Transferring cached clean patch for VCS root: Web Core
[10:04:53][Updating sources] Building and caching clean patch for VCS root: build specifics
[10:04:55][Updating sources] Transferring cached clean patch for VCS root: build specifics
[10:04:55][Updating sources] Transferring cached clean patch for VCS root: Web Core
[10:04:55][Updating sources] Transferring cached clean patch for VCS root: build specifics
[12:27:23][Updating sources] Build canceled

This build usully tok 3 min. now it takes several hours. Other thing that catches my attention is this line in the teamcity-server.log that appears constantly

[2015-02-20 10:04:22,031]   WARN - erSide.impl.BuildPromotionImpl - The checkout rules in build configuration "WebCert" is too long and will be truncated to 2000 characters. Rules before truncating:

Our builds usuhally have 3-4 common VCS Roots, plus one specific VCS Root for the build. All these VCS Root have together 80-90 checkou rules.

I appreciate any kind of help :)

Regards,
Jose.

1 comment
Comment actions Permalink

Hi Jose,

Please take thread dump from the agent while it hang state. Also please attach teamcity-server.log and teamcity-agent.log files.

0

Please sign in to leave a comment.