Troubleshooting Build Server connection issues

Published 16 December 05 03:20 PM | kishormn 

There are 2 error messages that show up when the build server is not able to start a build. Here are ways to trouble shoot these cases.

 

Pre – checks to ensure that the setup is correct

  1. Ensure that the Build component is installed on the build server. Ensure that “Team Build service” is running in the services controller.
  2. Ensure that the account running the “Team Build Service” on the build server is a member of the “Build Services” group for that team project. This is required to give the account the required permissions across the various components of the Team foundation server.
  3. If the build server has firewall enabled, ensure that the “tfsbuildservice.exe” is in the exceptions list.
  4. Check that the Build machine name provided for the build type is correct. You can see this in the file TFSBuild.proj or the Build <Teamproject> Dialog.
  5. Ensure that the version of the team foundation server and the build server are same.

 

 

Error: The build service could not validate the caller.  Please ensure that the network connection between Build machine and Team foundation server is proper, and the caller is valid.

 

The build server is configured to bind to one TF Server only. The caller to the build server has to be the service account from the TF Server. 

This error appears in 2 scenarios –

1. If the account is not in the build services group, and does not have the right permissions. The first error can be checked by ensuring that the prechecks are okay.

2. The server urls are different.  One user might be connected to the Team foundation server using a short name say like MyMachine – the server url would translate to http://MyMachine:8080. The second user might be connected using a fully qualified string like “MyMachine.domain.com” and the server url would be http://MyMachine.domain.com:8080, or one could use an IP address which would result in the server url like http://127.x.x.x:8080 .  In Beta3, these names were not resolved, so the tf server url’s have to match exactly for the build server to honor a request. The fix here is to use the type that works. This is an issue in beta3, and fixed post for RTM.

 

 

Error:  TF42046: The build service used in the build process is not reachable. This error occurs when either the build machine is off-line, the required service is not running, Team Build is not installed on the build machine, Team Build is configured for a different Team Foundation Server or the network is not available. Please contact your Team Foundation Server administrator to verify that Team Build is correctly installed and running.

 

This error is seen in many scenario’s.

  1. The build machine does not have the Build component installed.
  2. The build machine is off the network
  3. The firewall on the build machine does not exclude the TeambuildService component.
  4. There is a mismatch on the port between the ports used by the Team foundation server and the build machine.
  5. The build machine is configured for another Team foundation server.
  6. In a workgroup setup, where all the machines belong to a workgroup, the build server is required to be on the Team foundation server for Beta3. If the build server is on a different machine, this error is seen.
  7. there is a problem with the domain server – DNS is not configured – in these cases the secure connection between the build machine and the TF server cannot be established.
  8. Password of the build service account has changed, and the service has not been restarted.

 

 Most of these errors can be avoided by the pre-checks. Item 5 occurs in the case where an build machine which was used with another TF Server ( say beta2 TF server ), is now set to being used for the new Team foundation server.  In these cases, the “AllowedTeamServer” key in the registry at HKCU\Software\microsoft\visualstudio\8.0\teambuild for the Build service account, or the “AllowedTeamServer” key in the TFSBuildService.exe.config contain the allowed team server. If this is no longer in use, delete the registry entry.

 

 

 

Additional debugging

If none of the above work – you can enable tracing on the TF Server by setting the “tracewriter” value to true in the web.config, and setting the switches values to 3. Please send the exception trace in the log file to the Visual Studio Team System forum.

Comments

No Comments
Anonymous comments are disabled

Search

Go

This Blog

Tags

No tags have been created or used yet.

Syndication

Page view tracker