gpt4 book ai didi

在 TFS2012 上构建永远不会开始

转载 作者:行者123 更新时间:2023-12-02 17:17:16 27 4
gpt4 key购买 nike

我正在尝试在我们的 TFS 基础设施中设置一些构建 Controller 和代理。我们的 TFS 服务器设置为构建 Controller ,我还设置了一些构建代理。

当我在系统上排队新版本时,一切似乎都很好。没有出现错误消息,并且构建出现在我的系统上的队列中。然而,这就是所发生的一切。当我转到 Visual Studio 中的构建页面时,它指出它已“运行 0 秒”。查看 TFS 服务器上的管理控制台, Controller 表明它已“就绪”,但仅此而已。所有代理都同样被列为“就绪”。

我不知道有任何日志可以用来诊断此问题。我已将“日志记录详细程度”设置为“诊断”,但“诊断”下拉列表中的选项呈灰色。该事件也完全是空白的。

查看构建 Controller 上的数据库,dbo.tbl_BuildController 表确实列出了构建。但我觉得奇怪的是 StartTime 是 NULL。如果我在 VS 中停止构建,则开始时间和结束时间将设置为数据库中的相同内容。

所以,我知道构建正在向构建 Controller 注册,并且不存在通信问题;构建永远不会开始,也不会给出错误。我该如何解决这个问题? (或者,至少得到一个我可以追查的错误)。

编辑:该问题似乎与 TFS 服务器有关。以下是我在事件日志中发现的内容:

WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/10411892
Exception: System.ServiceModel.ServiceActivationException: The service '/tfs/queue/GPA/Services/v4.0/MessageQueueService2.svc' cannot be activated due to an exception during compilation. The exception message is: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'.
Parameter name: item. ---> System.ArgumentException: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'.
Parameter name: item
at System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item)
at System.Collections.Generic.SynchronizedCollection1.Add(T item)
at System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses)
at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)
at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
--- End of inner exception stack trace ---
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
Process Name: w3wp
Process ID: 3756

最佳答案

我会开始查看事件日志。

  1. 控制面板 -> 管理工具
  2. 事件查看器

我假设那里会出现某种排序或错误。如果您的构建代理位于不同的计算机上,请确保也查看那里的事件日志。

根据原始发帖者评论进行更新

事件日志中有一个异常,它向我们指出了这里:TFS2012 Build Service offline

关于在 TFS2012 上构建永远不会开始,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15387652/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com