离线构建代理(VS30063:您无权访问http://xx.xx.xx.xx:8080) [英] Build Agents offline ( VS30063: You are not authorized to access http://xx.xx.xx.xx:8080)

查看:128
本文介绍了离线构建代理(VS30063:您无权访问http://xx.xx.xx.xx:8080)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在与我们的TFS 2015 Server不同的域上运行的Windows 7计算机上安装构建代理。从powershell发出ConfigureAgent.cmd时,收到错误TF14045:找不到类型为'System.Security.Principal.WindowsIdentity'
的标识。 检查TFP门户时,代理似乎已注册,但仍保持脱机状态。当查看_diag文件夹下的日志时,我发现错误VS30063:您无权访问http://xx.xx。 xx.xx:8080)

I am attempting to install a build agent on a windows 7 machine that runs on a different domain than our TFS 2015 Server. When issuing the ConfigureAgent.cmd from powershell, I receive error TF14045: The identity with type 'System.Security.Principal.WindowsIdentity' could not be found.  When checking the TFP portal, the agent does appear to have been registered, however remains offline. When looking the the logs under _diag folder, I find the error VS30063: You are not authorized to access http://xx.xx.xx.xx:8080)

我已经阅读过很多相同问题的帐户,并尝试了所有建议的补救措施,但没有运气。 由于这两个域不受信任,我使用的是影子帐户,其中两个域中的用户名和密码都相同。 
本地用户具有管理员权限,powershell由该用户以admin身份运行。我尝试通过IIS启用Windows授权,并确保删除凭据管理器中的所有保存凭据。我已确保TFS
端的用户获得了代理池管理员权限,具有高级访问权限,并且几乎是所有默认项目级别组以及Windows域管理员组的成员。 用户帐户也已添加到管理员组
for windows中,但似乎没有显示在那里。

I have read many accounts of this same issue and have tried all of the suggested remedied but have had no luck.  Because the two domains are not trusted, I am using shadow accounts where the username and password being identical in both domains.  The local user has admin permissions and the powershell was run by this user as admin. I have tried enabling windows authorization through IIS and made sure to delete all save credentials in the Credentials Manager. I have ensured that the user on the TFS side was given Agent Pool Administrator permission, has advanced level access and is a member of virtually all of our default project level groups as well as the windows domain admin group.  The user account as also been added to the administrators group for windows as well however does not seem to show up there.

以下是_diag文件夹中的输出(ip地址替换为xx)。我们非常感谢您提供的任何建议的帮助。

Below is the output found in the _diag folder ( ip address replaced with xx). Any help of suggestions you could offer would be greatly appreciated.

谢谢

Sandy

0: 55:23.470646将跟踪输出发送到日志文件:C:\ temp \BuildAgent \agent\_diag

20:55:23.470646使用以下命令行运行VsoAgent.exe: />
" C:\ temp \ BuildAgent\agent\agent\vsoagent.exe"  / runningAsService

20:55:23.517447 SettingsFileHelper.Load - settings [AutoUpdate] = True

20:55:23.517447 SettingsFileHelper.Load - settings [RootFolder] = C:\\ \\ temp\BuildAgent\agent

20:55:23.517447 SettingsFileHelper.Load - settings [WorkFolder] = C:\ temp\BuildAgent\agent\_work

20:55:23.517447 SettingsFileHelper.Load - settings [ServerUrl] = http://xx.xx.xx.xx:8080 / tfs /

20:55:23.517447 SettingsFileHelper.Load - settings [AgentName] = New-Agent

20:55:23.517447 SettingsFileHelper.Load - settings [PoolId] = 16

20:55:23.517447 SettingsFileHelper.Load - settings [PoolName ] = NewPool

20:55:23.517447 SettingsFileHelper.Load - settings [AgentId] = 9

20:55:23.517447 SettingsFileHelper.Load - settings [RunAsWindowsService] = True

20:55:23.517447 SettingsFileHelper.Load - settings [WindowsServiceName] = vsoagent.10.New-Agent

20:55:23.517447 SettingsFileHelper.Load - settings [WindowsSe rviceDisplayName] = VSO代理(10.New-Agent)

20:55:23.533047 BaseLogger.LogStatus(scope.JobId = 00000000-0000-0000-0000-000000000000,scope.TimelineRecordId = 00000000-0000 -0000-0000-000000000000,record.Name = Agent)

20:55:23.548647 BaseLogger.LogConsoleMessage(scope.JobId = 00000000-0000-0000-0000-000000000000,message =对服务器进行身份验证http://xx.xx.xx.xx:8080 / tfs /)

20:55:23.548647执行位置散列= 35729501ce0e2f8d5f58610abb70cf0b

20:55:23.548647执行位置hash = 6448e5099a216737aebdfcdfc77a0e8f

20:55:23.548647 Exe location hash = 2e87ff5acedc1dcbc0ab59adc3eefe3c

20:55:23.720248 ---------------- -------------------------------------------------- ---------
$
20:55:23.720248 Microsoft.VisualStudio.Services.Common.VssUnauthorizedException:VS30063:您无权访问http://xx.xx.xx。 xx:8080。



20:55:23.720248   在Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler。< SendAsyncImpl> d__20.MoveNext()



20:55:23.720248 ---来自之前的堆栈跟踪结束抛出异常的地点---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler。< SendAsync> d__17.MoveNext()



20:55:23.720248 ---来自之前的堆栈跟踪结束抛出异常的地点---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler。< SendAsync> d__3.MoveNext()



20:55:23.720248 ---来自之前的堆栈跟踪结束抛出异常的地点---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase。< SendAsync> d__79.MoveNext()



20:55:23.720248 ---来自之前的堆栈跟踪结束抛出异常的地点---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase。< SendAsync> d__76`1.MoveNext()



20:55:23.720248 ---堆栈跟踪结束从之前抛出异常的位置开始---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient。< GetConnectionDataAsync> d__6.MoveNext()



20:55:23.720248 ---堆栈跟踪结束从之前抛出异常的位置开始---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.VisualStudio.Services.Client.VssServerDataProvider。< ConnectAsync> d__39.MoveNext()



20:55:23.720248 ---来自之前的堆栈跟踪结束抛出异常的地点---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.TeamFoundation.DistributedTask.Agent.Common.ConnectionHelper.GetConnection(Uri serverUri,VssCredentials凭证)



20:55:23.720248   在Microsoft.TeamFoundation.DistributedTask.Agent.Common.ConnectionHelper.GetConnection(String serverUrl)



20:55:23.720248   在VsoAgent.Program.Main(String [] args)

20:55:23.720248   在Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler。< SendAsyncImpl> d__20.MoveNext()



20:55:23.720248 ---来自之前的堆栈跟踪结束抛出异常的地点---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler。< SendAsync> d__17.MoveNext()



20:55:23.720248 ---来自之前的堆栈跟踪结束抛出异常的地点---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler。< SendAsync> d__3.MoveNext()



20:55:23.720248 ---来自之前的堆栈跟踪结束抛出异常的地点---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase。< SendAsync> d__79.MoveNext()



20:55:23.720248 ---来自之前的堆栈跟踪结束抛出异常的地点---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase。< SendAsync> d__76`1.MoveNext()



20:55:23.720248 ---堆栈跟踪结束从之前抛出异常的位置开始---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient。< GetConnectionDataAsync> d__6.MoveNext()



20:55:23.720248 ---堆栈跟踪结束从之前抛出异常的位置开始---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.VisualStudio.Services.Client.VssServerDataProvider。< ConnectAsync> d__39.MoveNext()



20:55:23.720248 ---来自之前的堆栈跟踪结束抛出异常的地点---



20:55:23.720248   在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)



20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)
$


20:55:23.720248   在Microsoft.TeamFoundation.DistributedTask.Agent.Common.ConnectionHelper.GetConnection(Uri serverUri,VssCredentials凭证)



20:55:23.720248   在Microsoft.TeamFoundation.DistributedTask.Agent.Common.ConnectionHelper.GetConnection(String serverUrl)



20:55:23.720248   在VsoAgent.Program.Main(String [] args)

20:55:23.720248 ------------------------- --------------------------------------------------

0:55:23.470646 Sending trace output to log files: C:\temp\BuildAgent\agent\_diag
20:55:23.470646 VsoAgent.exe was run with the following command line:
"C:\temp\BuildAgent\agent\agent\vsoagent.exe"  /runningAsService
20:55:23.517447 SettingsFileHelper.Load - settings[AutoUpdate]=True
20:55:23.517447 SettingsFileHelper.Load - settings[RootFolder]=C:\temp\BuildAgent\agent
20:55:23.517447 SettingsFileHelper.Load - settings[WorkFolder]=C:\temp\BuildAgent\agent\_work
20:55:23.517447 SettingsFileHelper.Load - settings[ServerUrl]=http://xx.xx.xx.xx:8080/tfs/
20:55:23.517447 SettingsFileHelper.Load - settings[AgentName]=New-Agent
20:55:23.517447 SettingsFileHelper.Load - settings[PoolId]=16
20:55:23.517447 SettingsFileHelper.Load - settings[PoolName]=NewPool
20:55:23.517447 SettingsFileHelper.Load - settings[AgentId]=9
20:55:23.517447 SettingsFileHelper.Load - settings[RunAsWindowsService]=True
20:55:23.517447 SettingsFileHelper.Load - settings[WindowsServiceName]=vsoagent.10.New-Agent
20:55:23.517447 SettingsFileHelper.Load - settings[WindowsServiceDisplayName]=VSO Agent (10.New-Agent)
20:55:23.533047 BaseLogger.LogStatus(scope.JobId = 00000000-0000-0000-0000-000000000000, scope.TimelineRecordId = 00000000-0000-0000-0000-000000000000, record.Name = Agent)
20:55:23.548647 BaseLogger.LogConsoleMessage(scope.JobId = 00000000-0000-0000-0000-000000000000, message = Authenticating to the server http://xx.xx.xx.xx:8080/tfs/)
20:55:23.548647 Exe location hash = 35729501ce0e2f8d5f58610abb70cf0b
20:55:23.548647 Exe location hash = 6448e5099a216737aebdfcdfc77a0e8f
20:55:23.548647 Exe location hash = 2e87ff5acedc1dcbc0ab59adc3eefe3c
20:55:23.720248 ---------------------------------------------------------------------------
20:55:23.720248 Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: VS30063: You are not authorized to access http://xx.xx.xx.xx:8080.

20:55:23.720248    at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsyncImpl>d__20.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>d__17.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d__3.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__79.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__76`1.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.<GetConnectionDataAsync>d__6.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.VisualStudio.Services.Client.VssServerDataProvider.<ConnectAsync>d__39.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.TeamFoundation.DistributedTask.Agent.Common.ConnectionHelper.GetConnection(Uri serverUri, VssCredentials credentials)

20:55:23.720248    at Microsoft.TeamFoundation.DistributedTask.Agent.Common.ConnectionHelper.GetConnection(String serverUrl)

20:55:23.720248    at VsoAgent.Program.Main(String[] args)
20:55:23.720248    at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsyncImpl>d__20.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>d__17.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d__3.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__79.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__76`1.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.<GetConnectionDataAsync>d__6.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.VisualStudio.Services.Client.VssServerDataProvider.<ConnectAsync>d__39.MoveNext()

20:55:23.720248 --- End of stack trace from previous location where exception was thrown ---

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

20:55:23.720248    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

20:55:23.720248    at Microsoft.TeamFoundation.DistributedTask.Agent.Common.ConnectionHelper.GetConnection(Uri serverUri, VssCredentials credentials)

20:55:23.720248    at Microsoft.TeamFoundation.DistributedTask.Agent.Common.ConnectionHelper.GetConnection(String serverUrl)

20:55:23.720248    at VsoAgent.Program.Main(String[] args)
20:55:23.720248 ---------------------------------------------------------------------------

推荐答案

您好,

感谢您与Microsoft论坛联系。我们很乐意回答您的问题。

Thank you for contacting Microsoft forums. We are pleased to answer your query.

您发布的查询尚未到达正确的论坛。为了最好地协助您的查询,我将查询移动到正确的论坛。

The query posted by you has not reached the right forum. In order to assist best on your query, I am moving the query to the right forum.

这将帮助您更快地回复查询。

This will assist you with a faster reply to your query.

问候,


这篇关于离线构建代理(VS30063:您无权访问http://xx.xx.xx.xx:8080)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆