Bamboo sometimes deletes git repository cache, causing builds to queue

We have a pretty big git repository (12gb). A couple of times per week, our Bamboo server encounters a transient error while fetching from this repository, and deletes it. For example:

2014-10-10 15:45:21,370 WARN [Connection monitoring thread - f43779d7-35ef-4a01-bbd3-d46fb736b884] [SshProxyCommand] While connecting to [git@stash-server/]: Can't connect session, connectFuture is not connected...
2014-10-10 15:45:21,474 WARN [4-BAM::PlanExec:pool-8-thread-3] [GitRepository] Deleting directory /bamboo/home/xml-data/build-dir/_git-repositories-cache/9360a00282e07c71c10adb9b42b674a2f2237b1b

(The error is just as often "connection refused" or "closed unexpectedly")

After deleting the repo, Bamboo starts a fresh clone. Since our repo is large, a clone can take a long time - sometimes as long as an hour. While the re-cloning happens, no builds trigger, and any manual builds stay queued until the clone is complete.

Are there any configuration changes we can make to mitigate this problem? Why does Bamboo delete the git repository so aggressively? We don't see any corresponding errors in our Stash logs.


1 answer

I know this doesn't help your specific issue now sad

But a 12Gb repository is insane and I can't help making a comment smile

Have you thought about splitting your repository?

Trying to work Agile with CI/CD principles will never work with repo that size... 

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,802 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