Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Build fails on some agents but not on others.

Dear all,

we have some (linux) agents which are governed by puppet,

on one of those agents we get following exception:

Error occurred while running Task 'Delete integration and recreate it(2)' of type com.atlassian.bamboo.plugins.scripttask:task.builder.script.
error	25-Aug-2020 17:15:40	com.atlassian.bamboo.task.TaskException: Error while creating temporary file for script
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.plugins.script.task.ScriptBuildTask.createTemporaryScriptFile(ScriptBuildTask.java:87)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.plugins.script.task.ScriptBuildTask.execute(ScriptBuildTask.java:47)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:319)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:252)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:319)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:112)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:204)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:176)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:131)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:125)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:127)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
error	25-Aug-2020 17:15:40		at java.lang.Thread.run(Thread.java:748)
error	25-Aug-2020 17:15:40	Caused by: java.io.IOException: Permission denied
error	25-Aug-2020 17:15:40		at java.io.UnixFileSystem.createFileExclusively(Native Method)
error	25-Aug-2020 17:15:40		at java.io.File.createTempFile(File.java:2024)
error	25-Aug-2020 17:15:40		at com.atlassian.bamboo.plugins.script.task.ScriptBuildTask.createTemporaryScriptFile(ScriptBuildTask.java:79)
error	25-Aug-2020 17:15:40		... 17 more

...but not on others...

the /tmp folder is writable, by the process owner of the agent.

Can anyone give any pointers where to look or what to investigate?

This is the script we try to execute:

${bamboo.capability.system.git.executable} remote add vp ${bamboo.planRepository.repositoryUrl}
echo "Deleting integration"
${bamboo.capability.system.git.executable} branch -D integration
echo "Creating integration locally"
${bamboo.capability.system.git.executable} checkout -b integration
echo "Push origin integration. Repository url : ${bamboo.planRepository.repositoryUrl}"
${bamboo.capability.system.git.executable} push -f vp integration

 

1 answer

0 votes
Charlie Misonne Community Leader Sep 01, 2020

This is about Bamboo's temp direcotry in <bamboo-install>/temp and not about the java temporary directory which is /tmp by default.

<bamboo-install>/temp should be writable by the user running bamboo :-)

Suggest an answer

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

Bamboo 7.2 is here!

I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...

481 views 5 7
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