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 Join to answer
Community showcase
Renan Battaglin
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,067 views 0 5
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot