TFS2010 Hangs “Waiting for Build Agent”

Posted by Qpirate on Server Fault See other posts from Server Fault or by Qpirate
Published on 2012-09-26T15:14:19Z Indexed on 2012/09/26 15:39 UTC
Read the original article Hit count: 298

I have asked this question over on SO the link to the question is here but i am hoping this is a better place to ask it.

I have 3 VM's each running the TFS Build Host Service

  • 1 has 1 controller and 1 agent
  • 2 have 2 Build Agents each.

Most of the time (7\10 builds) it comes back with the following error message

TF215097: An error occurred while initializing a build for build definition BUILD_DEFINITION: There was no endpoint listening at http://MACHINE1:9191/Build/v3.0/Services/Controller/14 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

and there is no errors when i do get this message. the following is the config file that i have created

<configuration>
    <appSettings>
    <add key="traceWriter" value="true"/>
    </appSettings>
    <system.diagnostics>
        <switches>
            <add name="BuildServiceTraceLevel" value="4"/>
            <add name="API" value="4"/>
            <add name="Authentication" value="4"/>
            <add name="Authorization" value="4"/>
            <add name="Database" value="4"/>
            <add name="General" value="4"/>
            <add name="traceLevel" value="4"/>
        </switches>
        <trace autoflush="true" indentsize="4">
            <listeners>
                <add name="myListener" type="Microsoft.TeamFoundation.TeamFoundationTextWriterTraceListener,Microsoft.TeamFoundation.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" initializeData="c:\logs\TFSBuildServiceHost.exe.log" />
         <remove name="Default" />
            </listeners>
        </trace>
    </system.diagnostics>
</configuration>

I do have my own custom activities in my build process but this does not seem to be a problem as sometimes the build actually does go. I have tried refreshing the template as some sites suggest.

Has anyone come across a solution for this problem? or can anyone tell me how to catch these errors when they happen?

© Server Fault or respective owner

Related posts about team-foundation-server

Related posts about tfs2010