Details
Description
Summary
HTTP Clones of non-empty repositories does not result in any files or folders on the client. The clone fails silently with exit code 128.
Steps to Reproduce
- Change plugin.bitbucket-scm-cache.minimum.free.space to a value greater than free space on the cache disk (Default 5 gigs)
- Clone via HTTP from a non-empty repository. (With git protocol v1)
Expected Results
Cloned files are found on the client
Actual Results
Client has no files or directories from the clone. An strace on the git command or echo $? shows that the exit code is 128
From strace:
.. .. exit_group(128) = ? +++ exited with 128 +++
Notes
The below logs is shown in the atlassian-bitbucket.log file indicating that there is not enough space in the cache directory:
2018-09-05 00:35:54,532 WARN [http-nio-7995-exec-3] pt @8MQ3GYx35x9x0 103.233.242.8 "POST /scm/tes/test.git/git-upload-pack HTTP/1.1" c.a.util.contentcache.ContentCache 1: Caching has been temporarily disabled because there is not enough free space on /var/atlassian/application-data/bitbucket/caches/scm/1 (2142777344 bytes free) 2018-09-05 00:35:54,576 DEBUG [http-nio-7995-exec-3] pt @8MQ3GYx35x9x0 103.233.242.8 "POST /scm/tes/test.git/git-upload-pack HTTP/1.1" c.a.bitbucket.scm.BaseCommand Executed /usr/local/git/bin/git http-backend 2018-09-05 00:35:54,607 DEBUG [http-nio-7995-exec-3] pt @8MQ3GYx35x9x0 103.233.242.8 "POST /scm/tes/test.git/git-upload-pack HTTP/1.1" c.a.bitbucket.scm.BaseCommand Executed /usr/local/git/bin/git http-backend
The following can also be logged:
2018-09-05 10:59:23,804 INFO [io-pump:thread-8] admin @1HCUNRCx659x12x0 0:0:0:0:0:0:0:1 "POST /scm/test/test.git/git-upload-pack HTTP/1.1" c.a.s.i.w.filters.StreamGuardFilter The remote client has aborted the connection
Workaround
- Increase free disk space to greater than 5 gigs
- Use SSH to clone the repository.
- Set plugin.bitbucket-scm-cache.minimum.free.space to a value lower than the free space available
Attachments
Issue Links
- relates to
-
BSERV-10946 Provide the filesystem requirements documentation for tmp and cache directories
- Gathering Interest
-
BBSDEV-18396 Loading...
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...