Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47652

"Another git process seems to be running in this repository" when Jenkins is the only thing using workspaces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • git-client-plugin
    • None
    • Jenkins 2.86, Git Plugin 3.6.0, Git Client Plugin 2.5.0

      Some builds spuriously fail with the following error message:

      stderr: fatal: Unable to create 'h:/hudson/pipeline-github/core/.git/index.lock': File exists.
      
      Another git process seems to be running in this repository, e.g.
      an editor opened by 'git commit'. Please make sure all processes
      are terminated then try again. If it still fails, a git process
      may have crashed in this repository earlier:
      remove the file manually to continue.
      

      I think that there are only a few obvious possibilities here:

      1. Jenkins is trying to use the same workspace twice at the same time, which would be a bug on Jenkins' part.
      2. Some earlier operation crashed, and Jenkins should be automatically deleting the lock for us, because expecting the user to do this isn't really reasonable for a supposedly automated build system.
      3. Some user was diddling with the workspace and deserves to have their lock broken, in which case refer to #2.

            Unassigned Unassigned
            trejkaz trejkaz
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: