index > Team Foundation Server - Build Automation > Cannot execute a Build - TF42045

Cannot execute a Build - TF42045


I am getting "TF42045: A build for the team project: xxx is in progress on build machine: yyy. On each build machine, only one build can be active for each team project. Use a different build machine or try again later." and I can no longer execute any builds for the Team project.

I have restarted the TFSBuildService and the build server, enabled tracing on the application server, which again logs the above message and there are no alerts in the event viewer.

Can anyone suggest where I can look for this phantom build that is running??

I have also called the DeleteBuild web method in the BuildController to clean up previous build it that makes any difference.

thanks in advance.


alan_b

It shouldn't be possible to get this exception if you restarted the "Team Build Service" (TfsBuildService.exe) - are you sure you restarted the service on the correct build machine?

-Aaron




http://blogs.msdn.com/aaronhallberg
Aaron Hallberg
Server and service restart was the last option that I tried, I assumed that it would work myself but alas no!!
alan_b

That message comes from the application tier. The AT believes that there is a build running on that machine. You should be able to fix the issue by either stopping the build, if you know the build number, or restarting TFS on the AT (iisreset should do it).

Buck




http://blogs.msdn.com/buckh
Buck Hodges
Thanks Buck, I'll give it a go when I can get sometime to reset the app server.
alan_b
reply 5

You can use google to search for other answers

 

More Articles

Interaction with Visual Studio Team Builds screen
Building MSI in Team Build... (once more)
ClickOnce Version Number as Team Build number
Team Build with Multiple Projects fails to build.
Continuous Integration builds not wanted in WorkItems Details
Adding copyfiles task to build script does not work
Team Build and Test Config Deployment Item Issue
Independent builds
Each build does an entire get latest
protecting the team build machines over the network
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Problem in running build -error MSB3073
Time Log for Customized Tasks
Environment variables passed through nun…
Partitioning Team Build Type
Build errors
why does it create wrong tmp files?
RTM: Using MSBUILD in batch file Build a…
Config to run all unit tests without tes…
Team Build unable to Run Auto Builds now
Team Build: SQL Error 512
How to rebuild the TeamProject based on …
To Get the Labeled Version
READONLY for System.IterationPath field
0 error(s), 47 warning(s) --> Failed …
Publishing web-sites and applications du…

Hot Articles

Assembly Versioning in Web Deployment Pr…
Setting Build Status
Unable to determine the workspace
Automated Build, have trouble building …
Publishing a web-site after build
How do I exclude a database project from…
TFS labels don't match AssemblyInfoTask …
Stopping Build After First Error For Des…
So why build creation wizard doesn't let…
help link - nightly builds
Setting Build options
Custom task for Getting Latest only VS S…
TFS to do Builds and Test vs Manual proc…
Team Build extensions
Overridding Get task in Team Build

Recommend Articles

Code Analysis in Team Build giving error…
Infopath Integration
Branch awareness in Team Build
Fetching Source Code from Multiple TFS m…
NUnit and MSBuild on VS2005 Team Build S…
Team Build Failure
Error with TFS build, but not when I man…
Custom task for Getting Latest only VS S…
GetLocalWorkspace Exception
Copying Files for Team Foundation Build
Skipping the get and compile tasks in a …
Forcing a testrunconfig for Team Build?
Using CustomTask To Generate BuildNumber
TfsBuild on buildserver fails after upgr…
TFS Build and web deployment project pro…