TFS生成代理已停止

问题描述:

我正在运行的生成计算机出现问题,代理程序突然不想启动。如果启动了本地控制器,它就是遥控器的一部分,并且可以解决此问题。症状是,代理初始化正确(说'准备'),但有停止的图标,并在状态区域中说'BuildController尚未在1分钟内启动。运行构建服务的AD帐户在另一个构建机器上运行(单独控制器+构建代理)。我试过以下TFS生成代理已停止

  • 重新构建服务
  • 与机器名称,完全合格的域名和IP地址的端点地址
  • 非重新注册建造服务
  • 重启
  • 运行
  • 清理与script

生成代理注册如果我更改运行BU的服务帐户ild服务到我自己的AD帐户,它的作品。但是,在我们的专用构建用户下运行在这台特定的机器上失败,而不是另一台。有什么建议做什么?以下是来自事件日志的错误:

Service 'Default Agent - tfs2010build1' had an exception: 
Exception Message: There was no endpoint listening at http://tfs2010build1:9191/Build/v3.0/Services/Controller/31 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. (type EndpointNotFoundException) 

Exception Stack Trace: 
Server stack trace: 
    at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream() 
    at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout) 
    at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.SendRequest(Message message, TimeSpan timeout) 
    at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) 
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) 
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) 
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) 

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.TeamFoundation.Build.Machine.IBuildControllerService.TestConnectionFromController(String agentUri) 
    at Microsoft.TeamFoundation.Build.Machine.ServiceProxies.ServiceProxy`1.<>c__DisplayClass3.<Do>b__2(T channel) 
    at Microsoft.TeamFoundation.Build.Machine.ServiceProxies.ServiceProxy`1.Do[TResult](Func`2 action) 
    at Microsoft.TeamFoundation.Build.Machine.BuildAgentService.<>c__DisplayClass12.<TestConnection>b__11(Object) 

Inner Exception Details: 

Exception Message: Unable to connect to the remote server (type WebException) 
Exception Stack Trace: at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) 
    at System.Net.HttpWebRequest.GetRequestStream() 
    at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream() 

Inner Exception Details: 

Exception Message: No connection could be made because the target machine actively refused it 127.0.0.1:38742 (type SocketException) 

Exception Stack Trace: 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, Int32 timeout, Exception& exception) 
+1

有一个“详细信息”超链接,你可能会错过在TFS Admi的构建服务配置页面注册控制台。当出现错误时显示。它说什么? – 2012-04-10 13:28:18

+0

说'BuildController尚未在1分钟内启动' – jaspernygaard 2012-04-10 13:44:59

发现问题。代理服务器在IE选项下启用。不知道为什么构建服务在我的AD用户帐户下工作,而不是专用构建用户,但它解决了问题。

---- >>>>>更新!

所以我们有2台机器(B1 & B2),每台机器有2个代理商。 B1有最初的问题,并通过禁用IE下的代理设置解决。昨天B2突然开始显示2位代理的相同症状和错误消息。代理设置未启用。虽然它确实修复了B1,但它不是这个特定问题的通用解决方案。 保持这些构建代理运行很困难:( - Miss TeamCity ...

---- >>>>再次更新! 因此,昨天当我看着代理配置,它没有设置。很奇怪的行为!不知道如果Windows更改更改这些设置...

我经常遇到同样的问题与代理,当我*手动停止我还没有找到任何像样的解决方案

+0

这很奇怪 - 你是否在你的服务器上启用了Windows Update?我怀疑这是原因,但还没有确认。 – jaspernygaard 2012-04-26 07:44:41

+0

我们的服务器上启用了Windows Update,是的。我们有一个更新管理器服务正在运行,通过Windows Update将更新推送到服务器。 – 2012-05-01 16:16:41