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 votes


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
Community showcase
Posted Jan 15, 2019 in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

258 views 4 1
Join discussion

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