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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

97 views 1 0
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