Exception during push

Hey guys,

I'm currently using bamboo and have a branch set with branch merging enabled (gatekeeper). It's supposed to push to stash. However 50% of the time it will fail with the following error:

Exception during push: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git push ssh://f3d0fe18-32d8-4181-ac2c-5f793ffcd96d@ master failed with code 128.
Working directory was [/var/atlassian/application-data/bamboo/xml-data/build-dir/serverSide/REXM-DEV0-31/mergeWorkspace].,
stderr: Warning: Permanently added '[]:59625' (RSA) to the list of known hosts.
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

This is pretty random, sometimes it'll work sometimes it wont. I end up spending a lot of time manually re-running failed jobs just to get bamboo to push to stash.

Does anyone know how to prevent these errors?


2 answers

This widget could not be displayed.

I have the same problem. 

It's looks like iptables issue, but I've cheked few variants and they all failed.

OS: CentOS 6.5

Hmmm, we have both stash and bamboo on the same server and I have no iptable restrictions on loopback. (though I do have iptable restrictions on everything else. Odd.

I have remote stash server, but Bamboo uses local ssh proxy and sends request through This proxy uses different ports, it could cause the problems.

This widget could not be displayed.

Please try patched plugin-ssh jar we attached to https://jira.atlassian.com/browse/BAM-14949

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

176 views 1 3
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