locked
Unable to configure Controller RRS feed

  • Question

  • I  am trying to install the Test Controller on my local machine, and register it with the TFS server.  I am listed as in the Admin group for my computer and for TFS.  I am in all the Test Controller groups on my machine and in the Admin for the TFS.   I think there may be a permission problem with the server that the TFS is located on.  I get the same error listed below. 

    (Note: for company security issues the computer name, the TFS Server and my user name have been changed.)

     

    V, 2012/01/19, 14:02:57.562, Created Nt account <Computer Name>\LanceM for userName <Computer Name>\<User>
    V, 2012/01/19, 14:02:57.562, Found Sid S-1-5-21-235762673-3339830373-115209224-1011 for userName <Computer Name>\<User>
    I, 2012/01/19, 14:02:57.562, DetermineDomain:: User: <Computer Name>\<User>
    I, 2012/01/19, 14:02:57.562, Domain: <Computer Name>
    I, 2012/01/19, 14:02:57.562, Machine Name: <Computer Name>
    I, 2012/01/19, 14:02:57.562, Final Domain: .  Final username: <User>
    I, 2012/01/19, 14:02:57.562, Found that account <Computer Name>\<User> is a local account.
    I, 2012/01/19, 14:02:57.562, Checking whether account <Computer Name>\<User> exists on Tfs machine fhu-tfs.titan.epg.
    I, 2012/01/19, 14:03:02.406, Account <Computer Name>\<User> already exist on Tfs machine fhu-tfs.titan.epg.
    I, 2012/01/19, 14:03:02.421, Checking whether account <User> exists on Tfs
    I, 2012/01/19, 14:03:02.421, Checking whether account <User> is a member of test service accounts group on Tfs
    I, 2012/01/19, 14:03:02.421, Checking whether user <Computer Name>\<User> has permission to add accounts to group
    I, 2012/01/19, 14:03:02.437, Failed to grant permission to controller service account on Tfs http://<TFS Server>:8080/tfs/<Development site>. Microsoft.VisualStudio.TestTools.ConfigCore.ConfigToolException: User account <Computer Name>\LanceM not found
       at Microsoft.VisualStudio.TestTools.ConfigCore.TeamFoundationServerHelper.CheckIfAccountCanWriteToGroup(String account, String teamFoundationServerUrl)
       at Microsoft.VisualStudio.TestTools.ConfigCore.ControllerConfiguration.AttemptToAddServiceAccountToGroup(String teamFoundationCollectionUrl, ServiceAccount serviceAccount, DelegateStatusUpdate statusListener)
       at Microsoft.VisualStudio.TestTools.ConfigCore.ControllerConfiguration.ChangeTfsRegistration(ControllerConfigurationUpdatePack updatePack, DelegateStatusUpdate statusListener)
    E, 2012/01/19, 14:03:02.437, Failed to update TFS Team Project Collection http://<TFS Server>:8080/tfs/<Development site> as the test controller service account could not be granted required permission. To fix this error, run this tool with an account that has "Project Collection Administrator" rights and try again.
    I, 2012/01/19, 14:03:02.437, Removing load test database configuration...
    I, 2012/01/19, 14:03:02.453, Removing LoadTest Database settings.
    I, 2012/01/19, 14:03:02.453, Checking whether loadTest database configurations are present.
    I, 2012/01/19, 14:03:02.453, Getting information about controller: <Computer Name>:6901.
    I, 2012/01/19, 14:03:02.453, Creating Channel
    I, 2012/01/19, 14:03:02.453, CreateControllerObject: attempt 0, System.IO.IOException: The write operation failed, see inner exception. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
       at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
       at System.Runtime.Remoting.Channels.SocketStream.Write(Byte[] buffer, Int32 offset, Int32 count)
       at System.Net.Security.NegotiateStream.StartWriting(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.NegotiateStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       --- End of inner exception stack trace ---

    Server stack trace:
       at System.Net.Security.NegotiateStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.NegotiateStream.Write(Byte[] buffer, Int32 offset, Int32 count)
       at System.Runtime.Remoting.Channels.ChunkedMemoryStream.WriteTo(Stream stream)
       at System.Runtime.Remoting.Channels.Tcp.TcpClientSocketHandler.GetRequestStream(IMessage msg, Int32 contentLength, ITransportHeaders headers)
       at System.Runtime.Remoting.Channels.Tcp.TcpClientSocketHandler.SendRequest(IMessage msg, ITransportHeaders headers, Stream contentStream)
       at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
       at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
       at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.VisualStudio.TestTools.Execution.IControllerAccessManager.GetControllerObject()
       at Microsoft.VisualStudio.TestTools.ConfigCore.TestControllerHelper.CreateControllerObject(String controllerUri)
    I, 2012/01/19, 14:03:02.578, CreateControllerObject: attempt 1, System.IO.IOException: The write operation failed, see inner exception. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
       at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
       at System.Runtime.Remoting.Channels.SocketStream.Write(Byte[] buffer, Int32 offset, Int32 count)
       at System.Net.Security.NegotiateStream.StartWriting(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.NegotiateStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       --- End of inner exception stack trace ---

    Server stack trace:
       at System.Net.Security.NegotiateStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.NegotiateStream.Write(Byte[] buffer, Int32 offset, Int32 count)
       at System.Runtime.Remoting.Channels.ChunkedMemoryStream.WriteTo(Stream stream)
       at System.Runtime.Remoting.Channels.Tcp.TcpClientSocketHandler.GetRequestStream(IMessage msg, Int32 contentLength, ITransportHeaders headers)
       at System.Runtime.Remoting.Channels.Tcp.TcpClientSocketHandler.SendRequest(IMessage msg, ITransportHeaders headers, Stream contentStream)
       at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
       at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
       at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.VisualStudio.TestTools.Controller.ControllerObject.Hello()
       at Microsoft.VisualStudio.TestTools.ConfigCore.TestControllerHelper.CreateControllerObject(String controllerUri)

     

    Is there a known fix for this issue?

     

    Lance

    • Moved by niveditabawa_MSFT Thursday, February 2, 2012 1:55 PM moving this to a more appropriate forum. Thanks (From:Testing with Visual Studio Test Manager (MTM))
    Thursday, January 19, 2012 9:14 PM

Answers

  • Also, the error message has the suggested fix:

     To fix this error, run this tool with an account that has "Project Collection Administrator" rights and try again.

    Thanks,

    Anuj


    http://www.anujchaudhary.com
    • Marked as answer by Lance from AZ Monday, February 6, 2012 9:42 PM
    Friday, February 3, 2012 2:37 AM

All replies

  • Two important things,

    Required Permissions

    To install a test controller, you must be a member of theAdministratorssecurity group on the computer.

    Important note Important

    If you want to register your test controller with your Team Foundation Server project collection, the account that you use for the test controller service must be a member of the [Project Collection]\Project Collection Test Service Accounts group, or the account that you use to run the test controller configuration tool must be a member of the Project Collection Administrator group.

    Third important thing, you might have UAC set above par, so i would recommend right clicking mtm controller configuration icon and choosing run as admin, just to ensure that you don't accidently end up running the configuration wizard in a non elevated mode. 

    Also worth following the step by step instructions here on msdn on how to configure a test controller/agent http://msdn.microsoft.com/en-us/library/dd648127.aspx


    Please remember to mark the replies as answers if they help.

    Tarun Arora

    Blog: http://geekswithblogs.net/TarunArora  Subscribe in a reader

    Thursday, January 19, 2012 11:16 PM
  • Also, the error message has the suggested fix:

     To fix this error, run this tool with an account that has "Project Collection Administrator" rights and try again.

    Thanks,

    Anuj


    http://www.anujchaudhary.com
    • Marked as answer by Lance from AZ Monday, February 6, 2012 9:42 PM
    Friday, February 3, 2012 2:37 AM