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

cannot exec /tmp/bamboo-ssh

The /tmp directory in my production environment has been marked as noexec by IS and is not negotiable. Is there another way around this error?

Here is the full error:

 

Cannot fetch branch '(unresolved) master' from 'ssh://git@hidden' to source directory '/data/bamboo-agent-home/agents/bamboo-agent-1/xml-data/build-dir/OCUAT-OSCICD-JOB1/hidden'. com.atlassian.bamboo.plugins.git.GitCommandException: command /bin/git ls-remote ssh://eb3096ff-cf78-449c-9b5d-10c3d39c70e8@127.0.0.1:45581/hidden/hidden.git failed with code 128. Working directory was [/data/bamboo-agent-home/agents/bamboo-agent-1/xml-data/build-dir/OCUAT-OSCICD-JOB1/hidden]., stderr:[fatal: cannot exec '/tmp/bamboo-ssh.9900a68e.sh': Permission denied, fatal: unable to fork]

2 answers

You can get around this by setting the java.io.tmpdir system property, as that is where Bamboo is pulling it from.  On the server, you can add -Djava.io.tmpdir=/new/location that to your JVM options.  For remote agents, you can modify conf/wrapper.conf in the agent home directory to add this VM option.  

Find the spot in your wrapper.conf file where additional JVM options are set and add it.

# The Bamboo Agent home configuration file
wrapper.java.additional.1=-Dbamboo.home=/g/g21/gamblin2/bamboo/agent-home
wrapper.java.additional.2=-Djava.io.tmpdir=/new/location

Here I had one option and added the 2nd, so I suffixed with .2.  You may need to use a different suffix depending on how many args are already there.

I guess Atlassian never answered this? I have a similar issue.

Suggest an answer

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

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

918 views 4 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