tfs - 为 TFS 2017 安装构建代理的问题

标签 tfs tfsbuild azure-pipelines

我在 SQL Express 上安装了独立的单服务器 TFS 2017 RTM。它不在任何域中,而是在我的笔记本电脑上。已经提出供我自己使用(也用于学习)。将其设置为在 SSL 的自签名证书上运行。

想在同一台机器上设置 vNext 构建代理。我记得在我脑子里的某个地方,构建机器不应该在 TFS 应用程序层,以减少表面攻击。好吧,我现在并不关心表面攻击。但我还需要一个带有build设置的工作 TFS。

输入 URL (https URL) 后进行配置时,系统提示我输入身份验证类型。我输入了谈判。输入凭据后,出现以下错误。

TF400813: Resource not available for anonymous access. Client authentication required.

使用 Integrated 作为身份验证类型时,出现以下错误。
An error occurred while sending the request.
Failed to connect.  Try again or ctrl-c to quit

当我使用 http 站点作为 URL 时,两种身份验证类型都出现以下错误。
Connecting to server ...
Found
Failed to connect.  Try again or ctrl-c to quit

我可以 ping 到我的 URL。

以下是 _diag 文件夹中的错误日志。
[2016-11-23 19:53:40Z INFO CredentialManager] Creating type Integrated
[2016-11-23 19:53:40Z INFO CredentialManager] Creating credential type: Integrated
[2016-11-23 19:53:40Z INFO IntegratedCredential] GetVssCredentials
[2016-11-23 19:53:40Z INFO ConfigurationManager] cred retrieved
[2016-11-23 19:53:40Z INFO Terminal] WRITE LINE: Connecting to server ...
[2016-11-23 19:53:41Z INFO CommandSettings] Flag 'unattended': 'False'
[2016-11-23 19:53:41Z ERR  Terminal] WRITE ERROR (exception):
[2016-11-23 19:53:41Z ERR  Terminal] Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: Found
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__42`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.<GetConnectionDataAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>d__41.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Services.Agent.AgentServer.<ConnectAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.<TestConnectAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.<ConfigureAsync>d__7.MoveNext()

最佳答案

尝试禁用匿名身份验证并为您的 TFS 启用 Windows 身份验证。

由于您设置了 TFS 供您自己使用,您可以考虑使用 Visual Studio Team Service而不是本地 TFS。 VSTS 对 5 个用户免费。

关于tfs - 为 TFS 2017 安装构建代理的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40773281/

相关文章:

visual-studio-2012 - 使用数据库项目在tfsbuild中生成错误

tfs - 仅当 TFS 中的程序集版本发生更改时,如何增加它们?

azure-devops - Azure Pipelines - 并行步骤 (YAML)

tfs - TFS 服务器的 Web 界面定义?

调用批处理文件时TFS构建部分成功,但日志中没有错误

TFS 服务器用错误消息填充事件日志

tfsbuild - 删除构建记录时是否应该删除与构建记录关联的工件?

macos - 如何在 Azure Devops 中安装 Mac 预配配置文件?

Azure DevOps Pipeline 创建空 zip

git - TFS/ Visual Studio 2015 : how to compare file changes between 2 commits