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

Exporting a repository via rest/api/1.0/migration/exports results in command timed out error

XMLWordPrintable

      Issue Summary

      Exporting a repository via `rest/api/1.0/migration/exports` while git garbage collection is running will fail

      Steps to Reproduce

      1. Place a `gc.log.lock` file in $BITBUCKET_SHARED_HOME/data/repositories/repo_id/app-info
      2. Run the export for this repository

      Expected Results

      Repository is exported successfully

      Actual Results

      The below exception is thrown in the atlassian-bitbucket.log file:

      2024-08-01 13:32:04,115 ERROR [dc-migration:thread-1] admin @1I11BETx810x41x0 0:0:0:0:0:0:0:1 "POST /rest/api/1.0/migration/exports HTTP/1.1" c.a.s.i.m.DefaultExportContext Error registered for job 42 of type com.atlassian.bitbucket.migration.export (RUNNING) against repo: STASH/stash[1]: Exception executing callback 'export' on 'class com.atlassian.stash.internal.scm.git.migration.GitRepositoryExporter': 'command timed out'com.atlassian.bitbucket.scm.CommandTimeoutException: command timed out 
      ...
      Caused by: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 59.981481208s. Name resolution delay 0.000000000 seconds. [closed=[], open=[[remote_addr=localhost/127.0.0.1:7777]]]

      Workaround

      n/a

              behumphreys Ben Humphreys
              ysun Yingran Sun
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: