使用TF270016/TF270002的本地Build Server上的TFS在线构建失败 [英] TFS Online Build Fails on local Build Server with TF270016 / TF270002

查看:65
本文介绍了使用TF270016/TF270002的本地Build Server上的TFS在线构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Visual Studio Online,但是我们有本地的Build Controller和Build Agent.在过去六个月左右的时间里,它一直运行良好,但是就在本周,构建一直失败.

We're using Visual Studio Online, but we have local Build Controller and Build agent. This has been running fine for the past 6 months or so, but just this week the builds have consistently failed.

该软件本身似乎可以成功构建,并且似乎也可以通过测试,但是由于在日志文件的发布过程中出现错误而导致失败(请参见下面的错误).

The software itself appears to build successfully, and the tests also seem to pass, but it fails due to an error during the publication of the log files (see error below).

该构建使用未经修改的默认模板,并且已进行设置,以使其不将输出文件复制到放置文件夹中"(在构建定义的构建默认值"中).

The build uses an unmodified Default Template, and is setup so that it "does not copy output files to a drop folder" (in the Build Defaults of the build definition).

经过几个小时的猛烈抨击,这听起来像是某种权限,但是我不知道如何进行调试或验证这一假设.

After a few hours of head-banging this feels like some sort of permissions thing, but I have no idea how to go about debugging, or verifying this assumption.

任何人都可以提供任何建议,或者更好的解决方案! :-)

Can anyone offer any suggestions, or better yet, a solution! :-)

要注意的另一件事是,我们一直在与Visual Studio Online中的用户混为一谈,以将某些帐户从基本"帐户更改为利益相关者"帐户,以降低成本.我想知道我们是否还设法删除了导致此问题的关键帐户或权限??

One other thing to note is that we have been mucking about with our users in Visual Studio Online to change some accounts from Basic to Stakeholder accounts in order to reduce costs. I'm wondering if we've also managed to remove a critical account or permission that has caused this...?

错误

An error occurred while copying diagnostic activity logs to the drop location. 
Details: TF270002: 
    An error occurred copying files from 
    'C:\Users\tfs\AppData\Local\Temp\BuildAgent\5498\Logs\2853\LogsToCopy\ActivityLog.AgentScope.5498.xml' 
    to 
    'ActivityLog.AgentScope.5498.xml'. 
Details: BadRequest: Bad Request

An error occurred while copying diagnostic activity logs to the drop location. 
Details: TF270002: 
    An error occurred copying files from 
    'C:\Users\tfs\AppData\Local\Temp\BuildController\4592\Logs\2853\LogsToCopy\ActivityLog.xml' 
    to
    'ActivityLog.xml'. 
    Details: BadRequest: Bad Request

修改 需要注意的一件事是,对于通过同一构建控制器执行的不同C#项目的所有构建,此错误都是一致的.我尝试删除并重新注册控制器,重新启动构建服务和构建服务器本身.

Edit One thing to note is that this error is consistent across all builds for different C# projects that are executed through the same build controller. I've tried removing and re-registering the controller, restarting the build service and the build server itself.

推荐答案

因此(无论如何,对于我来说)的解决方案是将构建控制器软件升级到v12(TFS 2013).

So the solution to this (in my case anyway) was to upgrade the Build controller software to v12 (TFS 2013).

这篇关于使用TF270016/TF270002的本地Build Server上的TFS在线构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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