ERROR: The account running the TFS build service (***\TFSBuildServices) needs to be added as a system user in the Release Management Server

StackOverflow https://stackoverflow.com/questions/20901507

Question

I am getting an error as mentioned below, when triggering the build from TFS to deploy through Release Management aka In Release.

*ERROR *

The account running the TFS build service (TFSBuildServices) needs to be added as a system user in the Release Management Server.
    at Microsoft.TeamFoundation.Release.Workflow.Services.ReleaseWorkflowService.InitiateFromBuild(String teamFoundationServerUrl, String teamProject, String buildDefinition, String buildNumber, String targetStageName)
    at Microsoft.TeamFoundation.Release.Build.Program.Release()
    at Microsoft.TeamFoundation.Release.Build.Program.Main()**

The Template which i m using is ReleaseDefaultTemplate.11.1.xaml

Any help would be much appreciated.

Thanks!!

--Update--

Below is the log Generated on Build Server under

"C:\Users\TFSBuildServices\AppData\Local\Temp\Microsoft\ReleaseManagement\12.0\Logs\ReleaseManagementBuild.log"

1/7/2014 3:04:14 PM - Error - Error loading profile for current user: ***\tfsbuildservices

1/7/2014 3:04:14 PM - Error - Unable to connect to the remote server: \r\n\r\n   at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
   at System.Net.HttpWebRequest.GetRequestStream()
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Microsoft.TeamFoundation.Release.Data.ConfigurationServiceRef.ConfigurationService.GetUserByUserName(String userName)
   at Microsoft.TeamFoundation.Release.Data.Model.CurrentUser.get_Profile()

   1/7/2014 3:04:14 PM - Error - No connection could be made because the target machine actively refused it 127.0.0.1:29622: \r\n\r\n   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

@Update With Solution

Thanks everyone for your help to troubleshoot this issue.

The proxy in Buildserver was the culprit. And this was enable for the service account tfsbuildservices. Due to which it was always hitting the wrong RM server(local address with wrong port).

After disabling the Proxy in Build server for account tfsbuildservices, it’s started working as expected. Thanks!!

Was it helpful?

Solution

In the Release Management client, add a new user matching the account TFSBuildServices. Set the 'Is Service User?' field to Yes.

UPDATE

Based on the additional log you have added, the problem seems to be related to the configuration of your RM client installed on your Build Server box.

Open the client installed on the Build Server box and you should get a popup to configure the URL pointing to the RM Server. Once you are able to open the client, try triggering a new build.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top