我们的代码库是在2017年TFS上。我们正在尝试在不同的机器上设置内部测试代理,以便他们可以在运行测试时共享负载。不幸的是,在运行./config命令时,我们遇到以下错误消息。
[2018-04-30 07:35:21Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\agent\.credentials_rsaparams
[2018-04-30 07:35:22Z ERR VisualStudioServices] POST request to https://tfs-dev.cebglobal.com/tfs/_apis/oauth2/token failed. HTTP Status: MethodNotAllowed
[2018-04-30 07:35:22Z ERR VisualStudioServices] OAuth issued token provider instance 16345490 failed to retrieve a token.
Reason: Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: {"count":1,"value":{"Message":"The requested resource does not support http method 'GET'."}}
at Microsoft.VisualStudio.Services.OAuth.VssOAuthTokenHttpClient.<GetTokenAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.OAuth.VssOAuthTokenProvider.<OnGetTokenAsync>d__14.MoveNext()
[2018-04-30 07:35:22Z WARN VisualStudioServices] Authentication failed with status code 401.
Date: Mon, 30 Apr 2018 07:35:22 GMT
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Server: Microsoft-IIS/8.5
WWW-Authenticate: Bearer, Basic realm="tfs-dev.cebglobal.com", Negotiate, NTLM
X-TFS-ProcessId: 6ff0ab0f-5bc4-4756-bf8b-f1e2d9aec72d
ActivityId: cc1dfe13-8178-4102-984c-dc5587ffe193
X-TFS-Session: 2fbb527d-d145-4ffd-934b-44ab2bf4a0c9
X-VSS-E2EID: 22cf0b80-4ec5-4f2d-8730-aaaa26fe96fa
X-FRAME-OPTIONS: SAMEORIGIN
X-TFS-SoapException: %3c%3fxml+version%3d%221.0%22+encoding%3d%22utf-8%22%3f%3e%3csoap%3aEnvelope+xmlns%3asoap%3d%22http%3a%2f%2fwww.w3.org%2f2003%2f05%2fsoap-envelope%22%3e%3csoap%3aBody%3e%3csoap%3aFault%3e%3csoap%3aCode%3e%3csoap%3aValue%3esoap%3aReceiver%3c%2fsoap%3aValue%3e%3csoap%3aSubcode%3e%3csoap%3aValue%3eUnauthorizedRequestException%3c%2fsoap%3aValue%3e%3c%2fsoap%3aSubcode%3e%3c%2fsoap%3aCode%3e%3csoap%3aReason%3e%3csoap%3aText+xml%3alang%3d%22en%22%3eTF400813%3a+Resource+not+available+for+anonymous+access.+Client+authentication+required.%3c%2fsoap%3aText%3e%3c%2fsoap%3aReason%3e%3c%2fsoap%3aFault%3e%3c%2fsoap%3aBody%3e%3c%2fsoap%3aEnvelope%3e
X-TFS-ServiceError: TF400813%3a+Resource+not+available+for+anonymous+access.+Client+authentication+required.
X-Powered-By: ASP.NET
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
我阅读了很多文章并遵循了之前建议的所有更改 1.在TFS IIS级别启用Windows和基本身份验证
非常感谢任何帮助。
答案 0 :(得分:0)
首先确保目标计算机位于同一个域中,并与您的TFS服务器保持良好的连接。
根据错误消息“while read -u3 line; do
: do stuff here that needs to read from stdin
done 3< <(
command 1 of the pipeline |
command 2 |
command 3
)
”,通常应该是当Web服务器不允许HTTP方法请求的URL时引起的HTTP Status: MethodNotAllowed
。当为特定动词定义了特定处理程序时,通常会出现这种情况,并且该处理程序将覆盖您希望处理请求的处理程序,或者该URL有错误。
因此,请尝试检查您的TFS服务器设置并解决以下文章中的问题:
其他相关主题供您参考: