Git clone or pull becoming slower for repositories
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
問題
Git clone or pull for the repositories is becoming slower.
Cause - No free disk space for BITBUCKET_HOME
SCM caching has been disabled due to the machine have less than 5GB (default setting) of free disk space.
Occasionally the Bitbucket Server is reaching resource limits
warning is displayed.
atlassian-bitbucket.log
に次のメッセージが出力される。
2017-11-24 10:23:32,304 WARN [ssh-scm-request-handler] username @11Y6RESx623x3139x3 1f57r6a xxx.xxx.xxx.xxx SSH - git-upload-pack 'proj/repo' c.a.util.contentcache.ContentCache content-cache@287: caching has been temporarily disabled because there is not enough space left on /<bitbucket-home>/caches/scm/287
Check if free disk space for BITBUCKET_HOME is less than 5GB
回避策
- Shutdown Bitbucket Server
Create or edit the file
BITBUCKET_HOME/bitbucket.properties
to set plugin.bitbucket-scm-cache.minimum.free.space to have a lower valueIt might cause the machine to run out of disk space.
- Restart Bitbucket Server
ソリューション
Increase free disk space in the BITBUCKET_HOME
directory.
In a data center installation, the caches are located on the local filesystem of each node and not in the shared directory.