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

Unable to delete windows workspace due to busy git pack file

      Most of our jenkins jobs which are running on the Windows systems are failing due to issues in "deleting the workspace".

      ERROR::

      7:07:03 Deleting project workspace... 
      Cannot delete workspace: java.io.IOException: Unable to delete D:\Jenkins\workspace\Ifl GnB Server 
      Gerrit Voter\.git\objects\pack\pack-0a42cbec0651000a728565330f096a38e565b10b.pack
      07:07:09 ERROR: Cannot delete workspace: java.io.IOException: 
      Unable to delete D:\Jenkins\workspace\Ifl GnB Server Gerrit Voter\.git\objects\pack\pack-0a42cbec0651000a728565330f096a38e565b10b.pack
      

      The workaround is that we have go manually kill the process and re-start the jenkins services & finally re-trigger the job.

      But we need permanent solution for this , could you please support us here?

      Regards
      Aravind BK

          [JENKINS-19994] Unable to delete windows workspace due to busy git pack file

          Just trying to delete the project workspace before build starts

          Ioannis Moutsatsos added a comment - Just trying to delete the project workspace before build starts

          Mark Waite added a comment - - edited

          ioannis I have never seen the menu whose screenshot you attached. What plugin provides that menu?

          What is the functionality it is providing?

          Is there a reason you're using a form of deletion which leaves files in the directory, but removes the .git repository?

          Mark Waite added a comment - - edited ioannis I have never seen the menu whose screenshot you attached. What plugin provides that menu? What is the functionality it is providing? Is there a reason you're using a form of deletion which leaves files in the directory, but removes the .git repository?

          Daniel Beck added a comment -

          Mark: Workspace Cleanup Plugin, 'Advanced' section.

          Daniel Beck added a comment - Mark: Workspace Cleanup Plugin, 'Advanced' section.

          Indeed danielbeck , MarkeWaite! This is from the Workspace Cleanup plugin.
          But I have noticed a similar issue even trying a post build custom groovy cleanup script. The file that fails to delete is always the xml configuration file used by the Summary Display plugin, so I start suspecting it may have something to do with the particular plugin.

          What do you think? Thanks!

          Ioannis Moutsatsos added a comment - Indeed danielbeck , MarkeWaite ! This is from the Workspace Cleanup plugin. But I have noticed a similar issue even trying a post build custom groovy cleanup script. The file that fails to delete is always the xml configuration file used by the Summary Display plugin , so I start suspecting it may have something to do with the particular plugin. What do you think? Thanks!

          Mark Waite added a comment -

          You'll need to submit a bug report against that plugin (and any other plugin which you discover has files open at the time you need to delete files).

          Alternately, sometimes you can switch away from Windows to a Unix variant so that you aren't blocked from deleting files which are left open due to file handling bugs in plugins.

          Mark Waite added a comment - You'll need to submit a bug report against that plugin (and any other plugin which you discover has files open at the time you need to delete files). Alternately, sometimes you can switch away from Windows to a Unix variant so that you aren't blocked from deleting files which are left open due to file handling bugs in plugins.

          Ioannis Moutsatsos added a comment - Thanks for the feedback. Done: https://issues.jenkins-ci.org/browse/JENKINS-26827

          Jirong Hu added a comment -

          I am constantly getting this error after using "Git Changelog" plugin.

          Jirong Hu added a comment - I am constantly getting this error after using "Git Changelog" plugin.

          Mark Waite added a comment -

          hujirong you need to submit a bug report against the git changelog plugin if that is the one which allows you to see the problem. As far as I can tell, the file leaks in the git plugin and the git client plugin are all resolved.

          Mark Waite added a comment - hujirong you need to submit a bug report against the git changelog plugin if that is the one which allows you to see the problem. As far as I can tell, the file leaks in the git plugin and the git client plugin are all resolved.

          Code changed in jenkins
          User: Tomas Bjerre
          Path:
          CHANGELOG.md
          pom.xml
          http://jenkins-ci.org/commit/git-changelog-plugin/a4037ad2a9b8d3a23a28acc84f67b5b42eb2a9fc
          Log:
          Closing RevWalk JENKINS-19994

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Tomas Bjerre Path: CHANGELOG.md pom.xml http://jenkins-ci.org/commit/git-changelog-plugin/a4037ad2a9b8d3a23a28acc84f67b5b42eb2a9fc Log: Closing RevWalk JENKINS-19994

          Code changed in jenkins
          User: Tomas Bjerre
          Path:
          CHANGELOG.md
          pom.xml
          http://jenkins-ci.org/commit/git-changelog-plugin/4dd0b1c8a82edebb4a129c0c13342485330c0e38
          Log:
          Closing RevWalk JENKINS-19994 #15

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Tomas Bjerre Path: CHANGELOG.md pom.xml http://jenkins-ci.org/commit/git-changelog-plugin/4dd0b1c8a82edebb4a129c0c13342485330c0e38 Log: Closing RevWalk JENKINS-19994 #15

            Unassigned Unassigned
            arvind62 ARAVIND BK
            Votes:
            8 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: