Bitbucket server doesn't clean up index.lock files causing client git push to fail

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Timed out
    • None
    • Component/s: None

      Git pushes fail because file locks occur on the git-lindex-lock file, and then the server doesn't clean them up. Please add a windows-process-lock git-lock-file clean up process to your server.

      git push ...
      remote: error: cannot lock ref 'refs/heads/feature/US19870-dev': Unable to create 'E:/ApplicationData/Stash/shared/data/repositories/200/refs/heads/feature/US19870-dev.lock': File exists.
      remote:
      remote: If no other git process is currently running, this probably means a
      remote: git process crashed in this repository earlier. Make sure no other git
      remote: process is running and remove the file manually to continue.
      error: cannot lock ref 'stash-refs/pull-requests/1736/merge': Unable to create 'E:/ApplicationData/Stash/shared/data/repositories/200/stash-refs/pull-requests/1736/merge.lock': File exists.
      

            Assignee:
            Unassigned
            Reporter:
            Julian Gamble
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: