Symptoms
-
Builds hang in the queue
-
Thread dumps are required. They show that the thread is stuck on
"TC: <time> Resolving Maven dependencies for settings VCS root: <root_id>; <time> Running KotlinConfigGenerator.generate(…), generate options: GenOptions{mySettingsRootId='null', myIncrementalMode=false}; <time> Freeze settings for Build promotion {id=<id>, configuration={id=<id>}}, ; <time> Task: 'jetbrains.buildServer.serverSide.impl.QueuedBuildsSettingsFreezerImpl$$Lambda$4290/0x00007f52d0cce508@4150a628'; Queued builds settings freezer"
Cause
As the thread states, it gets stuck resolving dependencies for maven. This can happen under some circumstances if there is a connectivity issue that is not managed properly by the process. There is a timeout configured by default, but one of the specific operations relies on a different timeout, which is the one causing this delay.
Workaround
Set the environment variable TEAMCITY_SERVER_OPTS to "-Dmaven.wagon.rto=60000" (timeout of one minute) and restart the server. This will not fix the issue with the connectivity, but at least will time out the connection making it fail faster rather than appear as hanging.
Comments
0 comments
Please sign in to leave a comment.