Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-11132

HTTP Git Clone seems to complete, but local directory is missing when scm caches do not have enough free space on disk

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 5.15.0, 5.13.3, 5.14.1
    • 5.13.0
    • None

    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

      1. Change plugin.bitbucket-scm-cache.minimum.free.space to a value greater than free space on the cache disk (Default 5 gigs)
      2. 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

      1. Increase free disk space to greater than 5 gigs
      2. Use SSH to clone the repository.
      3. Set plugin.bitbucket-scm-cache.minimum.free.space to a value lower than the free space available

      Attachments

        Issue Links

          Activity

            People

              wkritzinger Wolfgang Kritzinger
              ephillips@atlassian.com Edward
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: