我们刚刚在一台带有服务器2008 r2的全新服务器上安装了TFS2013 Update 2。在某个时刻,我能够为我的项目运行构建,但现在我无法知道为什么或甚至改变了什么。探索会有点啰嗦,很抱歉。这是我每次都看到的完整例外。我的所有项目都使用CMMI流程,因此出于好奇,我创建了一个名为Hello World Test的新项目,该项目使用了Agile模板。做了一个新的构建,提交了我的代码,并且就像我所有其他项目一样,我得到了这个错误。我们的TFS服务器中有3个帐户,2个是admin,1个是贡献者。我是2个管理员中的一个,但我们俩都有同样的问题。我甚至以系统管理员的身份登录并尝试启动构建并获得相同的错误。
TF215097: An error occurred while initializing a build for build definition \Hello World Test\WpfApplication1:
Exception Message: One or more errors occurred. (type AggregateException)
Exception Stack Trace: at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFile(TfsTeamProjectCollection projectCollection, String itemPath, Stream outputStream)
at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFileAsString(TfsTeamProjectCollection projectCollection, String itemPath)
at Microsoft.TeamFoundation.Build.Client.ProcessTemplate.Download(String sourceGetVersion)
at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.PrepareRequestForBuild(WorkflowManagerActivity activity, IBuildDetail build, WorkflowRequest request, IDictionary`2 dataContext)
at Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager.TryStartWorkflow(WorkflowRequest request, WorkflowManagerActivity activity, BuildWorkflowInstance& workflowInstance, Exception& error, Boolean& syncLockTaken)
Inner Exception Details:
Exception Message: VS30063: You are not authorized to access http://foo.bar.com:8050. (type VssUnauthorizedException)
Exception Stack Trace: at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>d__0.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.VssHttpRetryMessageHandler.<SendAsync>d__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.WebApi.HttpClientExtensions.<DownloadFileFromTfsAsync>d__2.MoveNext()
在收到大约100x的错误后,我检查了应用程序日志以查看是否可以收集任何类型的信息,我唯一能看到的是在创建构建服务器期间Failed to add the build service account 'CORP\Administrator' to Windows Group 'IIS_IUSRS'. Details: Group does not exist.
我尝试更改构建服务器用户,每次我在事件日志中获得相同的警告消息。我几乎100%确定这是问题所在。现在,我发现这个特殊错误的奇怪之处在于我可以在活动目录中看到IIS_IUSRS,但我一直收到该错误。任何人都有任何线索,为什么我会收到此错误?哪些信息可以让任何人帮忙解决这个问题?