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.

Suggestions?

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. https://jira.atlassian.com/browse/BAM-11440

C:\Windows\Temp exists.

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

I changed wrapper.conf to read:

wrapper.java.additional.4=-Djava.io.tmpdir=%SystemRoot%\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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
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,492 views 0 5
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