tech·nic·al·ly agile

How to deal with a stuck or infinitely queued build

Learn how to troubleshoot stuck or infinitely queued builds in Team Foundation Server. Optimize your build process and ensure timely completions with expert tips!

Published on
3 minute read
Image
https://nkdagility.com/resources/gfvOPIZKbEI

How to deal with a stuck or infinitely queued build

Team Foundation Build can be a difficult beast, but not usually because of itself. Although people do experience problems when adding solutions that have been around for a while with no build run, it really does do a fantastic job.

On occasion I have seen what I call a “Stuck Build” which is a build that never completes, this tends to only happen on builds setup on large codebases that have never been built before. It also usually also occurs at the point in the build after everything has been built and Team Foundation Build is trying to upload the data it has collected to Team Foundation Server.


Developers should always make sure that any builds they queue complete in a timely fashion.

I queued a build at 3:51. It is still there at 4:21. It seems stuck.

_ How to deal with a stuck or infinitely queued build _

-George Gong, SSW

If you see a Queued build that never completes then there is probably a stuck build somewhere. George;s build has not even run yet, it is still waiting in the queue.

I created a new build for SSW.Website and now it stays in the queue for over 30 minutes.

How to deal with a stuck or infinitely queued build

But the TFS  build controller is ok.

How to deal with a stuck or infinitely queued build

How to deal with a stuck or infinitely queued build

I have just installed the VS2010 RTM and Team Explorer. Did I miss something?

-Brite Cheng, SSW

Again, this build is queued, it never started. It is queued as there is another build running. Evan though we now have more than one build server queues will always exist. All it takes is for one more build than we have capacity for to be sent to the controller at the same time. Someone will always have to wait. But they should not have to wait for long. We should probably have something line http://buildmonitor.codeplex.com/  setup so we can quickly look and see what builds are running J but in the mean time you can run the “Build Notifications” application to see what builds are running.

How to deal with a stuck or infinitely queued build

Figure: Where to find the build monitor on the Start menu

Sometimes a build can get Stuck. They usually get stuck when they are uploading assets into TFS. This could be a communication problem or purely a size problem, or a little of both. One thing to look at is how many data collectors you have running during the build and maybe reduce them to get a consistent pass.

You can log onto the server and kill the running build, but make sure it is stuck first… No build should take longer than 30 minutes (Unless it always does).

I would expect any developer to follow the process that comes next:

How to Debug a stuck build:

In this case there is a stuck build of SSW.Framework running:

How to deal with a stuck or infinitely queued build

Figure: Build list

I can tell that it is stuck by looking at the running time:

How to deal with a stuck or infinitely queued build

Figure: A very stuck build

After cancelling the build, it did not free up the Build Service (stuck) so I need to restart the build service.

Launch the Admin Console on the build server and restart the build service

How to deal with a stuck or infinitely queued build

Figure: Restart the build service

Then we need to queue another build.

How to deal with a stuck or infinitely queued build

Figure: build is now successful

Done

Technorati Tags: TFBS  , TFS 2010 

Software Development Troubleshooting Azure Pipelines Practical Techniques and Tooling Azure DevOps Install and Configuration Continuous Integration Windows
Comments

Related blog posts

No related videos found.

Connect with Martin Hinshelwood

If you've made it this far, it's worth connecting with our principal consultant and coach, Martin Hinshelwood, for a 30-minute 'ask me anything' call.

Our Happy Clients​

We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.​

Flowmaster (a Mentor Graphics Company) Logo
Teleplan Logo
Philips Logo
Kongsberg Maritime Logo
Lean SA Logo
Freadom Logo
Jack Links Logo
Microsoft Logo
Ericson Logo
Epic Games Logo
Cognizant Microsoft Business Group (MBG) Logo
Genus Breeding Ltd Logo
Brandes Investment Partners L.P. Logo
Sage Logo
Workday Logo
Trayport Logo

NIT A/S

Capita Secure Information Solutions Ltd Logo
Washington Department of Enterprise Services Logo
Royal Air Force Logo
Ghana Police Service Logo
Washington Department of Transport Logo
Department of Work and Pensions (UK) Logo
Nottingham County Council Logo
Graham & Brown Logo
Lockheed Martin Logo
Deliotte Logo
Hubtel Ghana Logo

CR2

Brandes Investment Partners L.P. Logo