Search This Blog

Tuesday, 27 November 2012

TFS Build error TF215097 : The file exists

I had a weird problem with a failed build in TFS2010 today:

TF215097: An error occurred while initializing a build for build definition \xxxx\xxxx: The file exists.


This appears to be caused by the build server not being able to manage more than ~65k files in its temp folder.  On quiet day the server seems able to manage its own file garbage collection but when the teams are hitting the server hard the files build up without being cleared down quickly enough and the error occurs.

The simple solution is to simply delete the contents of the following path on the server:

C:\Users\TFSSERVICE\AppData\Local\Temp

No comments:

Post a Comment