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

Bamboo source code checkout task failing


Cannot fetch branch '(unresolved) HashAndSource{refName=[null], branch=[release/February], hash=[commitid]}' from 'bitbucket url' to source directory 'bambooagentlinuxpath/bamboo_home/xml-data/build-dir/_git-repositories-cache/'. java.lang.RuntimeException: java.nio.file.FileSystemException: /tmp/bamboo-ssh.: Operation not permitted

Bamboo agents are running in Linux machines .This error occurs specifically to a particular agent

1 answer

1 accepted

0 votes
Answer accepted

Hi @sangeetha

I would check a few things first:

  1. Do you have a native GIT installation in this remote agent? If not Bamboo may be using JGIT which is more error-prone.
  2. The OS on this agent does not allow running scripts at the /tmp directory.
  3. The git cache is corrupted.

1 -
 Will require installing git and adding it as a capability.

2 -
 Will involve editing the agent configuration so it has a different temp directory that can run scripts.
For this you need:

  1. Stop the agent
  2. Edit the <Bamboo_Agent_Home>/conf/wrapper.conf to add an additional java parameter like the following line:
    ⚠️ In case the number 3 is used you will need to change it to a different number available.
  3. Start the agent again

3 - Just a removing the folder caches folder will force the agent to create a new one

  1. Stop the agent
  2. Remove the bambooagentlinuxpath/bamboo_home/xml-data/build-dir/_git-repositories-cache folder
  3. Start the agent


I hope that helps you to move forward.

Thanks Daniel. Removing the cache folder as mentioned inn step 3 worked

Like Daniel Santos likes this

That is great! I'm glad to help.

Suggest an answer

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

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

67 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