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

Hello,

Thank you for your question.

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

log4j.category.com.atlassian.bamboo.plugins.ssh=WARN
log4j.category.com.atlassian.bamboo.ssh=WARN

Also add this extra line:

log4j.logger.com.atlassian.bamboo.plugins.git.GitRepository=DEBUG

If the {{Build}} is run from a {{Bamboo remote agent}}, the debug logging can be done by copying the formatted log4j.properties 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,
Rafael

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 2 hours ago in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

36 views 0 3
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