Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

MSBuild Error while creating temporary file for script

Hello everyone,

I am trying to build a azure function on bamboo by using MSbuild, but I am receiving this error:

error 26-Oct-2020 03:41:05 Error occurred while running Task 'Building(3)' of type com.atlassian.bamboo.plugin.dotnet:msbuild.
error 26-Oct-2020 03:41:05 com.atlassian.bamboo.task.TaskException: Error while creating temporary file for script
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildTaskType.createResponseFile(MsBuildTaskType.java:157)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildTaskType.execute(MsBuildTaskType.java:72)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:323)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:258)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:323)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:118)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:190)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:162)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:131)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:125)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:110)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
error 26-Oct-2020 03:41:05 at java.lang.Thread.run(Unknown Source)
error 26-Oct-2020 03:41:05 Caused by: java.io.IOException: Toegang geweigerd
error 26-Oct-2020 03:41:05 at java.io.WinNTFileSystem.createFileExclusively(Native Method)
error 26-Oct-2020 03:41:05 at java.io.File.createTempFile(Unknown Source)
error 26-Oct-2020 03:41:05 at java.io.File.createTempFile(Unknown Source)
error 26-Oct-2020 03:41:05 at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildTaskType.createResponseFile(MsBuildTaskType.java:150)
error 26-Oct-2020 03:41:05 ... 17 more

 

Any solution for this?

1 answer

0 votes
Jimmy Seddon Community Leader Oct 26, 2020

Hi @Wayl,

Welcome to the Community!

Looking at the error message: "error 26-Oct-2020 03:41:05 Caused by: java.io.IOException: Toegang geweigerd"

This line here indicates that it got an access denied while trying to create the temp file.  If this is a local agent, I would be checking which user account is running the Bamboo server, if this is a remote agent same thing only I'd be checking the user account running the remote agent, and ensuring that the account running either the server or the agent has privileges to access the location that it's trying to create the temp file in.

I hope that helps!

-Jimmy

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

197 views 0 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you