TFS2012 - Access Denied While Copying Diagnostic Activity Logs

I have a problem with TFS2012 assemblies that I cannot understand and cannot find a solution.

Setting:

Separate SQL server, separate TFS application server (TFSAT01 / WinSvr08R2) and separate build machine (TFSBLD01 / Win7x64).

Drop share created on TFSAT01 - R / W acess given to two computers in our domain: TFSAT01 $ and TFSBLD01 $ (as per # 8 http://msdn.microsoft.com/en-us/library/bb778394.aspx )

The build controller is configured in the TFS application. server TFSAT01.

Build agents run on build machine TFSBLD01.

Problem:

My CI build completes and copies all binaries to the share.

But I keep getting one error under "Other errors and warnings" in the build output window, which says, "An error occurred while copying the diagnostic activity logs to the" Drop "folder. Details: Accessing path" \ TFSAT01 \ Drops \ PRODUCT- CI \ PRODUCT-CI_20130211.16 \ Logs \ ActivityLog.xml 'is denied. "The ActivityLog.xml file is indeed written and I can access it.

Any ideas why I am getting this error even though the share seems to be configured with the correct permissions?

Note: I can work around this error by specifying a user account for the build agent to use (also with R / W access to the share), but I would prefer if I could use the default NetworkService credentials used by the build controller and agents.

+3


source to share


3 answers


Adding to resolution based on discussion in comments



The build controller account must have R / W permissions for the drop location. The account listed here was TFSAT01 $, while the build controller was configured as a network service. Since this is not the same account granting R / W permissions for NT AUTHORITY \ NETWORK SERVICE, this is a required fix.

+4


source


The build controller must be running under the same account that has R / W permissions at the upload location. I recommend using the same user account for build agents and build controller.



0


source


In TFS Build Controller, right click on XAML Build Configuration> [your build service]

Click "Stop Service"

Click the "Edit" button in the "Run" menu as: section

Use a user who has access to both the TFS repository and the deletion location.

ps using TFS 2015

0


source







All Articles