代理可以连接到控制器,但控制器无法连接到代理:写操作失败 [英] Agent can connect to the controller but the controller cannot connect to the agent: write operation failed

查看:73
本文介绍了代理可以连接到控制器,但控制器无法连接到代理:写操作失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在实验室管理中执行自动化测试,但部署会保持计时。  以下是我的tfs事件日志:


 


(QTController.exe,PID 2340,Thread 34)ControllerConfiguration:Agent'实验室管理代理尝试连接但失败:Microsoft.VisualStudio.TestTools.Exceptions.EqtException:代理可以连接到控制器,但控制器无法将
连接到代理,原因如下:写操作失败,请参阅内部异常。


现有连接被远程主机强行关闭


  在Microsoft.VisualStudio.TestTools.Controller.AgentMachine.VerifyAgentConnection(Int32 timeout)


  在Microsoft.VisualStudio.TestTools.Controller.AgentManager.BeforeConnectAgent(String agentName,String machineName,Boolean canPerformUITesting,IAgentService agentService,WindowsIdentity remoteIdentity)


  在Microsoft.VisualStudio.TestTools.Controller.ControllerConfiguration.ConnectAgent(String agentName,String machineName,Boolean canPerformUITesting,IAgentService agentService,WindowsIdentity remoteIdentity)


/ * Edit * /


--------------------------------------------- ------------------------------------


经过进一步分析看起来这个异常首先抛出:


 


(QTAgentService.exe,PID 1808,Thread 10)AgentService:调用时异常代理对象上的Hello:Microsoft.VisualStudio.TestTools.Exceptions.EqtException:代理服务正在关闭。


  在Microsoft.VisualStudio.TestTools.Agent.AgentService.GetAgentObject()


  在Microsoft.VisualStudio.TestTools.Agent.AgentService.Microsoft.VisualStudio.TestTools.Agent.IAgentObject.Hello()


导致代理关闭


------------------------------------------------ ---------------------------------


/ *结束编辑* /


 


 


 


 


关于可能导致此问题的任何想法?

解决方案

Mike,


此错误通常表示控制器尝试连接到代理的凭据无效。您可以在我们的问题排查指南中找到更多可能的原因@  http://blogs.msdn.com/b/lab_management/archive/2009/10/26/troubleshooting.aspx#e3_1


谢谢


- 阿伦


I'm trying to execute automated tests in lab management but deployment keeps timing out.  The following is in my tfs event log:

 

(QTController.exe, PID 2340, Thread 34) ControllerConfiguration: Agent 'Lab Management Agent' attempted to connect but failed: Microsoft.VisualStudio.TestTools.Exceptions.EqtException: The agent can connect to the controller but the controller cannot connect to the agent because of following reason: The write operation failed, see inner exception.

An existing connection was forcibly closed by the remote host

   at Microsoft.VisualStudio.TestTools.Controller.AgentMachine.VerifyAgentConnection(Int32 timeout)

   at Microsoft.VisualStudio.TestTools.Controller.AgentManager.BeforeConnectAgent(String agentName, String machineName, Boolean canPerformUITesting, IAgentService agentService, WindowsIdentity remoteIdentity)

   at Microsoft.VisualStudio.TestTools.Controller.ControllerConfiguration.ConnectAgent(String agentName, String machineName, Boolean canPerformUITesting, IAgentService agentService, WindowsIdentity remoteIdentity)

/* Edit */

---------------------------------------------------------------------------------

After further analysis it looks like this exception is being thrown first:

 

(QTAgentService.exe, PID 1808, Thread 10) AgentService: Exception while calling Hello on agent object: Microsoft.VisualStudio.TestTools.Exceptions.EqtException: Agent service is shutting down.

   at Microsoft.VisualStudio.TestTools.Agent.AgentService.GetAgentObject()

   at Microsoft.VisualStudio.TestTools.Agent.AgentService.Microsoft.VisualStudio.TestTools.Agent.IAgentObject.Hello()

causing the agent to shut down

---------------------------------------------------------------------------------

/* End edit */

 

 

 

 

Any ideas as to what may be causing this?

解决方案

Hi Mike,

This error usually indicates that the credentials under which the controller is attempting to connect to the agent are invalid. You can find some more possible causes on our troubleshooting guide @ http://blogs.msdn.com/b/lab_management/archive/2009/10/26/troubleshooting.aspx#e3_1

Thanks

-Allen


这篇关于代理可以连接到控制器,但控制器无法连接到代理:写操作失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆