You're most likely running into space issues because of the caches under STASH_HOME/cache/scm. These are caches for git operations such as ref advertisement and clone. Especially clones can be fairly large depending on the size of your repositories.
The scm-cache has a 'minimum free space' setting for controlling when it will stop caching. Default is 1Gb but you can configure a higher value in your stash-config.properties You'll need to restart Stash to apply the new configuration.
This is the default that Stash uses if you haven't overridden it. # Controls when caching is disabled because there is not enough space available on the file system # Configured value is in BYTES. The default is 1GB plugin.stash-scm-cache.minimum.free.space=1073741824 When there is less than 1GB free Stash won't write to the cache. However, if you have 1.5GB free and then clone a repository that is 1GB you'll end up with 500MB free. Ideally, you'd configure this setting to be a bit higher than the size of your largest repository. If you're not using a CI server for builds or you only have a small number of builds, you can also disable the caching completely by adding this to you stash-config.properties: plugin.stash-scm-cache.upload-pack.enabled=false
The cleanest way of removing the cache is restarting the Stash service. In order to avoid the same problem in the future, set this in your Stash config to the desired value:
#min. disk space left by caching, 32GB plugin.stash-scm-cache.minimum.free.space=34359738368
(The default value is very small.)
As Michael said above, the default is 1GB, I think that should be good for you. If the disk got completely full, it was probably not the cache that filled the last 1GB. Check what else is big. For us the log files can accumulate to quite much data, especially when debug logging is on.
As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...
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!
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