Sunday, June 19, 2011

TFS 2010 - Unable to stop build

I came across an issue where a build was stuck for days with the message:
There was no endpoint listening at http://machinename:9191/Build/v3.0/Services/Agent/282 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

When I tried to stop the build, I was shown the error:
TF215104: Failed to stop build: it did not respond to a workflow cancellation request." When I went to the build agent and tried to delete the agent, I was shown the error:
Cannot remove build agent from build controller because it is currently reserved for a build

I unregistered the build service, tried to stop the build, registered the build service again and kept repeating the steps multiple times. I finally had luck and the build was stopped.
I registered the build service again and everything was smooth.

If you have write access to the TFS Warehouse, you can delete the build agent by following the steps at http://sleepcanwait.blogspot.com/2010/07/cannot-remove-build-agent-from-build.html 

2 comments:

  1. Hi. Need your advice. Sorry if this is not the correct place to post my question.

    I would like to schedule and automate the testing by compiling the test project into library and run it using mstest.exe, the I will create scheduled task in Window task scheduler. The idea is to run the test in schedule basis, without having to install vs2010.

    The test using database to store the result, and I already created the LoadTest2010 database. However, I can only modify the connection string to the DB in VS2010 (from menu, Test -> Manage Test Controllers -> Load test results store).

    Can that connection string be stored in an external setting file, which we can modify easily using notepad, and not through VS2010?

    Thanks in advance.

    Wai Foong

    ReplyDelete
  2. Hi. Sorry if this is not the correct location to post my question,and I might mistakenly post it twice. I need your advice.

    I have a test project and compile it into library. I would like schedule and automate the test using mstest.exe, and create a schedule tast in Window Task Scheduler to run the run on schedule basis.

    The idea is to schedule and automate the test without having to intall VS2010.
    I'm using database to store the load test result.

    However, I can only modify the connection string to LoadTest2010 db in VS2010 (from menu, Test -> Manage Test Controllers -> Load test result store).

    Is there anyway to store the connection string in an external setting file, so that we can modify the connection string easily, without having through VS2010.

    Thanks in advance.

    Wai Foong

    ReplyDelete