无法为TFS 2018安装远程代理

问题描述 投票:0回答:3

我已经安装了TFS 2018.现在我正在尝试安装远程代理(来自另一台机器)。我收到此错误:

enter image description here

我已经检查了这个,我找到了这个文档:https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/certificate?view=azure-devops-2019

我认为这个问题与机器不信任安装期间生成的认证TFS这一事实有关。我还检查了日志文件:

[2019-02-18 13:48:33Z ERR  VisualStudioServices] GET request to https://jbpatfssr005/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: A security error occurred at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

(...)

[2019-02-18 13:48:33Z ERR  AgentServer] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: A security error occurred

在我尝试访问TFS的浏览器中,我收到一条消息,说该网站不安全。 qazxsw poi

所以我猜这真的是因为证书。但是我该如何解决这个问题呢?

tfs tfs2018
3个回答
0
投票

在URL中,您需要指定完整的URL:

enter image description here

0
投票

根据您的错误信息和屏幕截图。

似乎您正在尝试使用版本2.1221安装代理

正如文件所述:

此错误可能表示您在TFS服务器上使用的服务器证书不受构建计算机的信任。确保将自签名ssl服务器证书安装到OS证书库中。

https://jbpatfssr005:8080/tfs

如果由于各种原因,您无法以某种方式成功将证书安装到计算机的证书存储区中。

代理版本2.125.0或更高版本能够忽略SSL服务器证书验证错误。

您可以尝试安装具有更高版本的构建代理。构建代理的来源,你可以下载https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/certificate?view=azure-devops-2019


0
投票

我的TFS运行在以下URL:here。当我安装它时,我尝试使用jbpatfssr005 / tfs,但是我遇到了错误,所以我把它留在了tfs。我阅读了文档,并在powershell中尝试了以下命令:

https://jbpatfssr005

我得到了这个结果:

PowerShell Invoke-WebRequest -Uri jbpatfssr005 -UseDefaultCredentials.

所以我猜TFS正确安装了证书吗?我将尝试安装更新的代理。 @ PatrickLu-MSFT我会报告结果。

© www.soinside.com 2019 - 2024. All rights reserved.