Temp file folder full, but clearing it out doesn't seem to work
- by Vegar Westerlund
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.