Long delay until starting build on agent
Answered
Hi,
there's a ~ 2-3 minute delay until build is started on agent. There's this message in build log:
"The build is removed from the queue to be prepared for the start"
Then couple minutes later it continues with the build:
"Starting the build on the agent "...""
The same same situation happens with all agents, both linux and windows, agents seem to be idle during that period. Any ideas how this can be improved?
Please sign in to leave a comment.
Hi,
Can you post more details of your build log? Generally speaking, there are some tasks that need to happen before the build can start. You should see some information between `The build is removed from the queue to be prepared for the start` and `Starting the build on the agent`, such as `Collecting changes in n VCS roots`.
Thanks,
Eric
You can download the full build log from the build results page. There may be some additional information found in that log, but not always. Click on the "Download Full Build Log" link as shown below:
It may also be worth looking in the teamcity-server.log for more information. This can be found at <teamcity home directory>/logs/teamcity-server.log. I have sometimes seen some third-party plugins slow down this process. If you're using any third-party plugins, you could try disabling them to see if there is any effect on build start time.
I have a similar problem. Here is an excerpt from my downloaded logs:
There is a ~ 10 minutes constant delay before collecting changes starts.
There is a similar delay at the end:
I can't find more helpful logs.
Found that the delays are caused by cleaning file system:
Issue was caused by plugins. Was not trivial to find. Logs were not in the agent's logs, but TeamCity's main logs.
Hi Claude
we have the same issue… i wonder ask if you finally resolved your issue…
Thank you!