Bamboo fails to check out or push to Stash - The remote end hung up unexpectedly
Bamboo build fails to check out, or it fails to push the updates to the remote Stash repository. There is a generic error saying "The remote end hung up unexpectedly":
There can be 2 main causes: a wrong Stash repository URL, or wrong SSH keys.
It is always a good idea to start the troubleshooting process from command line to see if the communication between Bamboo and Stash works fine. For example, the first step can be trying to clone or push changes to the Stash repository from command line (without using Bamboo) from the same working directory (
BAMBOO_HOME/xml-data/build-dir/PROJ1-PLAN1-JOB1) using the same user account that runs Bamboo service. If the first step doesn't work, check the SSH keys and the Stash URL that the Bamboo plan is using to check out or push the changes. Make sure that you are using the correct branches in your configurations.
- Wrong SSH public/private keys are getting used in the Bamboo plan configuration and in Stash user profile. The default SSH keys can be used:
Private key - in the plan repository configuration:
Public key - in the Stash profile SSH configuration:
- A wrong Stash repository URL is getting used. The URL mentioned in the Stash repository should be used: