Temp file folder full, but clearing it out doesn't seem to work

Posted by Vegar Westerlund on Server Fault See other posts from Server Fault or by Vegar Westerlund
Published on 2011-03-02T15:16:06Z Indexed on 2011/03/02 15:26 UTC
Read the original article Hit count: 1158

Filed under:
|

I got this error on our build server:

MSB6003: The specified task executable could not be run. MSB5003: Failed to create a temporary file. Temporary files folder is full or its path is incorrect. The directory name is invalid. [C:\Users\swdev_build\bamboo-agent-home\xml-data\build-dir\XXXX-ZZZZZZ-JOB1\build.xml]

This was when trying to run and msbuild task to run our test suite.

Using the power of google it seemed that this should be a problem with the %TEMP% folder running out of tmp file names apparently because a 4 digit hex name is used (for a total of 65535 temporary files).

The problem is that the error persist, even after going into the %TEMP% folder and deleting everything before rebooting the machine.

Does anyone know how to fix the issue and more importantly how to prevent it from happening again? What is the preferred way of cleaning up this temp files? Make it a part of the build process?

Update: Actually I cleared the TEMP folder of the only local user, but since the build server is running as the SYSTEM user, it probably has some temp folder somewhere else.

© Server Fault or respective owner

Related posts about windows-7

Related posts about filesystems