gpt4 book ai didi

TFS 2015 - 现场构建失败

转载 作者:行者123 更新时间:2023-12-02 04:41:19 25 4
gpt4 key购买 nike

背景:在过去的三个月中,构建工作正常。然后,在失败之后,我发现许可证对于我们内部构建服务器上的 Visual Studio 安装无效。

纠正步骤:修复了许可证问题。连同安装所有 VS 更新和 TFS 更新 2。

为纠正问题而采取的其他步骤:构建仍然失败,所以我删除了代理和构建池。重新创建了一个新池并下载了代理。在服务器上安装代理,使用我的网络凭据,因为我是盒子上的管理员,也是代理池管理员和代理池服务帐户的一部分。使用我的帐户尝试消除与权限相关的问题。

注意:其他一切都适用于 TFS。可以 checkin 更改,可以使用具有完全管理员权限的门户。这是日志中的最后一个条目

19:39:28.762991 Failed to start the job, could not create the http client with the given credentials.

构建在一分钟内失败,tfs http 接口(interface)上没有日志或原因。

这是构建服务器日志中唯一的异常(exception)情况。

19:39:18.411788 Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: Bad Request

19:39:18.411788 at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response)

19:39:18.411788 at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d__79.MoveNext()

19:39:18.411788 --- End of stack trace from previous location where exception was thrown ---

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

19:39:18.411788 at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d__76`1.MoveNext()

19:39:18.411788 --- End of stack trace from previous location where exception was thrown ---

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

19:39:18.411788 at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.d__6.MoveNext()

19:39:18.411788 --- End of stack trace from previous location where exception was thrown ---

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

19:39:18.411788 at Microsoft.VisualStudio.Services.Client.VssServerDataProvider.d__39.MoveNext()

19:39:18.411788 --- End of stack trace from previous location where exception was thrown ---

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

19:39:18.411788 at Microsoft.TeamFoundation.DistributedTask.Agent.Common.ConnectionHelper.GetConnection(Uri serverUri, VssCredentials credentials)

19:39:18.411788 at Microsoft.TeamFoundation.DistributedTask.Agent.JobWriter.StartJob()19:39:18.411788 at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response)

19:39:18.411788 at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d__79.MoveNext()

19:39:18.411788 --- End of stack trace from previous location where exception was thrown ---

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

19:39:18.411788 at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d__76`1.MoveNext()

19:39:18.411788 --- End of stack trace from previous location where exception was thrown ---

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

19:39:18.411788 at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.d__6.MoveNext()

19:39:18.411788 --- End of stack trace from previous location where exception was thrown ---

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

19:39:18.411788 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

19:39:18.427410 at Microsoft.VisualStudio.Services.Client.VssServerDataProvider.d__39.MoveNext()

19:39:18.427410 --- End of stack trace from previous location where exception was thrown ---

19:39:18.427410 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

19:39:18.427410 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

19:39:18.427410 at Microsoft.TeamFoundation.DistributedTask.Agent.Common.ConnectionHelper.GetConnection(Uri serverUri, VssCredentials credentials)

19:39:18.427410 at Microsoft.TeamFoundation.DistributedTask.Agent.JobWriter.StartJob()19:39:18.427410 ---------------------------------------------------------------------------

最佳答案

  1. 确保运行代理的帐户属于“代理池服务帐户”角色。
  2. 确保队列已在集合中提供 (https://your-tfs-server:8080/tfs/your-collection/_admin/_AgentQueue)。如果不是 - 选择“新队列..”并选择现有队列。
  3. 确保完全按照 this article 部署 Windows 构建代理.
  4. 尝试更改属于“代理池服务帐户”角色的构建代理服务帐户组成员的域帐户,以查看代理是否可以工作。
  5. 检查防火墙入站规则,检查vNext build on TFS 2015 hangs on MSBuild step and produces no log files

关于TFS 2015 - 现场构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37195858/

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