Bamboo can't get code from linked Stash

Hello, I installed Bamboo, linked it to Stash and created link repository. While linking the repository Bamboo offered me to choose repository and branch from Stash.

When I'm tryint to start my plan which takes code from the repository only I get the following error:

Unable to detect changes 
(com.atlassian.bamboo.repository.RepositoryException : java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://aa78191b-fc49-4c83-866f-1e9c53306270@ failed with code 128. Working directory was [.]., stderr: [ssh: connect to host port 52538: Connection timed out, fatal: The remote end hung up unexpectedly])

How could I solve this?

2 answers

1 accepted

0 vote
Timothy Chin Community Champion Apr 28, 2014

Have you tried to execute the git clone command from the server itself? There are lots of things to check like firewalls, ports & credentials. Though, its most likely a network issue.

Yes, I have. There is no problem with network at all. I can clone and use the repo from the server.

I'm curious why Bamboo goes to


instead of


Is it some sort of git proxy?

The problem was in wrong setting for iptables on the server. It has been dropping packets to localhost.

0 vote


Word of explanation: Bamboo is implementing an internal SSH proxy for git in order to authenticate properly with remote repository.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,813 views 0 6
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