Bamboo unable to get changes from Git: permission denied

My bamboo installation recently just started to show system errors connecting to my stash installation.I'm using password based authentication, and I've verified that the password is correct. I've also tried to execute the command manually under the same user and had no issues. The abridged error is

/usr/bin/git ls-remote https://BambooUser:********@xyz.c

om/stash/scm/my/repo.git failed with code -1. Working directory was [.]., stderr: []

The only thing I can think of is that there's an issue with the directory it's trying to execute this in, but I don't know where that is to check for permission issues or something of the sort. I tried several places when I ran it manually, one of them being /tmp, so I don't think there's any issues with the permissions or anything on that directory, but I'm not ruling out me being ignorant of something.

It now appears that Bamboo is seeing changes, but I'm still getting these messages. Is this expected, or is something not working correctly?

1 answer

0 vote


Thank you for your question.

Could you go to the file located in the {{<bamboo-install>/atlassian-bamboo/WEB-INF/classes/}} directory and change the 2 lines below from {{WARN}} to {{DEBUG}}:

Also add this extra line:

If the {{Build}} is run from a {{Bamboo remote agent}}, the debug logging can be done by copying the formatted file from the Bamboo local agent (Server) to the Bamboo remote agent (Remote) home.

The above will provide you extra information about your repositories and its connectivity.

Open {{<bamboo-home>/xml-data/build-dir/_git-repositories-cache}} directory and detele its content.

Stop all Bamboo instances (local and remote).

Start Bamboo.

Also as a side note, could you please create a sample test plan with Stash as the repository type and lets know if this works.

Kind regards,

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,575 views 0 6
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