Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20708

At some conditions Bamboo is unable to clear inconsistent git cache and perform change detection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • None
    • 6.9.2
    • Repository (Git)
    • None

    Description

      Issue Summary

      At some conditions Bamboo is unable to clear inconsistent git cache and perform change detection

      Steps to Reproduce

      1. none
        It seems that this happens if the change detection and the branch detection run at the same time.

        Expected Results

      When the git cache is inconsistent should be deleted and recreated.

      Actual Results

      The detention of the cache fails:

      2019-10-18 03:02:28,922 WARN [9-BAM::PlanExec:pool-16-thread-4] [AbstractGitExecutor] Deleting directory /var/vcap/store/atlassian-bamboo/xml-data/build-dir/_git-repositories-ca
      che/18dcecf2d35a3ffacb7165829681b4f94640bd4a
      2019-10-18 03:02:28,923 ERROR [9-BAM::PlanExec:pool-16-thread-4] [AbstractGitExecutor] Unable to delete files: [.git], expect trouble
      2019-10-18 03:02:28,936 INFO [9-BAM::PlanExec:pool-16-thread-4] [DefaultChangeDetectionManager] Found 1672 open branches for xxxx-xxxx
      2019-10-18 03:02:28,938 INFO [9-BAM::PlanExec:pool-16-thread-4] [DefaultErrorHandler] Recording an error: Unable to detect changes : xxxxx-xxxx : com.atlassian.bamboo.repository.RepositoryException: : Cannot fetch branch 'refs/heads/SBM-1290_Update__FOR_QA_MERGE_ONLY' from 'ssh://git@......com:7999/.../.....git' to source directory '/var/vcap/store/atlassian-bamboo/xml-data/build-dir/_git-repositories-cache/18dcecf2d35a3ffacb7165829681b4f94640bd4a'. command [/usr/bin/git fetch ssh://45dd5a04-ff0f-40e2-92d1-556630c29827@127.0.0.1:45257/..../......git +refs/heads/SBM-1290_Update__FOR_QA_MERGE_ONLY:refs/heads/SBM-1290_Update__FOR_QA_MERGE_ONLY --update-head-ok] failed with code 128. Working directory was [/var/vcap/store/atlassian-bamboo/xml-data/build-dir/_git-repositories-cache/18dcecf2d35a3ffacb7165829681b4f94640bd4a]., stderr:
      fatal: Not a git repository (or any parent up to mount point /var/vcap)
      Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
      

      Workaround

      Manually clean the git cache.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sorlovski Zaro
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: