Bamboo losing Stash authentication - performance hit after restart

We use Bamboo for building and Stash for our Git repository. Over the past month or so we've been seeing increasingly slow performance, especially after server restarts and particularly when listing branches and deployment plans.

At first we thought it was related to the upgrade, the size of the JVM heap or the number of remote agents. It turns out the problem was a little more subtle.

When the server is restarted it loses its Stash authentications, and we see hundreds of errors and a flood of activity as Bamboo re-authenticate. What Bamboo asks for a branch makes matters worse "Save the repository configuration to refresh the authentication details", Instead of using the default setting the branch now has its own, private settings and does its own git request. This means on the order of a hundred git requests every couple minutes. After a while this pushes CPU I/O utilization sky-high and slows the server to a crawl, especially on dynamically-generated content like the afore-mentioned deploy plans and branch listings.

Here are my questions

  1. Is there anyway to automatically detect which branches are using defaults, and which are using this custom/saved setting?
  2. Is there anyway to programmatically get the branches to use the default setting without going through each branch plan by hand?
  3. Is there a way of getting Bamboo to wait after it starts up and send the requests to Stash at some reasonable rate, retry in batches or in some other way avoid the flood of "Errors getting changes for HERP-DIDERP1183-1 This error may have occurred due to an authentication issue with Stash. Save the repository settings to refresh the authentication details.
    (08 Jun 2015, 9:01:36 AM)"


3 answers

Note: This is at least tangentially related to :

0 votes

Todd, please contact our Support to work on this issue.

Todd - did you ever find a solution to this?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

265 views 0 12
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