MSBuild error " MSB5003: Failed to create a temporary file. "

I'm setting up Bamboo for my first build. I have an MSBuild project that runs successfully when I run it from a windows command prompt. It fails with MSB5003 error when running it from Bamboo.

Bamboo Version 3.3.3 Build 2719 running on Windows Server 2008 R2 6.1 with Sun Java 1.6.0_29.

Bamboo Temporary Directory is C:\Windows/Temp (note mixed forward and back slashes).

Bamboo is running as windows service using local SYSTEM account.


4 answers

I resolved the issue by creating a new user account named "Bamboo" on the server. This account was given administrator priviledges. The Bamboo service was reconfigured to run under this user account rather than under the SYSTEM account.

From reading other questions/answers, I gather that this is necessary when running Bamboo on Windows Server 2008 R2.

Sure would be nice to have had this in the FAQ and/or installation manual...

Richard, sorry to hear that you had issues getting your msbuild build running when Bamboo is running as a Windows service. I've opened up an issue to change our recommendation for how this should be setup.

C:\Windows\Temp exists.

It is *not* full of tmp0000.tmp throu tmpFFFF.tmp files.

I changed wrapper.conf to read:\Temp

which resolves to C:\Windows\Temp (all backslashes),

but still no joy.

Deleted everything in C:\Windows\Temp - still no joy

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,789 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you