Checkout Default Repository(1) failed with code 128

Hi all, the environment we are using is stash, bamboo and clover. Initially, I enabled git flow branch, everything goes well, the code can be fetched from stash, compile correctly, artifact, etc. Then I tried to integrate clover with bamboo, one job for Clover, one job to produce artifact, however the error shows up frequently (not every time). The credential is not updated for the time being. Any ideas? Thanks.


om.atlassian.bamboo.plugins.git.GitCommandException: command /opt/git/2.1.0/bin/git ls-remote ssh://6ea4a535-4dbd-4ee2-8c56-b25826d042d0@ failed with code 128
 stderr: Authenticating remote session failed stdout: [Warning: Permanently added '[]:44090' (RSA) to the list of known hosts.
Authenticating remote session failed: Session is closed], fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.])

2 answers

0 votes

- what Stash version do you use? - did you try to run exactly the same git command outside Bamboo? what happens?

Stash v3.5.0 I cannot run git command in agent, because I am not admin. If running the git command in my local machine, it is fine. The error did not occur today. Let's put aside this issue. I will ping you if the error is up again. Thanks a lot.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

4,369 views 20 13
View question

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