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

Unable to delete workspace due to locked git .pack file

      In our Jenkins site, all builds which are run on a windows Jenkins client and which do not delete their working direktory prior to run the job will fail with a message like:

      [WS-CLEANUP] Deleting project workspace...
      [WS-CLEANUP] Deferred wipeout is used...
      ERROR: [WS-CLEANUP] Cannot delete workspace: Unable to delete 'C:\Entw\Jenkins\workspace\Testautomatisierung\01_Smoketest\UFT\UFT_A_Smoketest_Master\.git\objects\pack\pack-5e75a4a1a37fced205964f0aeaadd0b304e779f8.pack'. Tried 3 times (of a maximum of 3) waiting 0,1 Sekunden between attempts.
      ERROR: Cannot delete workspace: Unable to delete 'C:\Entw\Jenkins\workspace\Testautomatisierung\01_Smoketest\UFT\UFT_A_Smoketest_Master\.git\objects\pack\pack-5e75a4a1a37fced205964f0aeaadd0b304e779f8.pack'. Tried 3 times (of a maximum of 3) waiting 0,1 Sekunden between attempts.
      Recording test results
      ERROR: Step ‘Publish JUnit test result report’ failed: Test reports were found but none of them are new. Did leafNodes run? 
      For example, C:\Entw\Jenkins\workspace\Testautomatisierung\01_Smoketest\UFT\UFT_A_Smoketest_Master\Results29012019125534536.xml is 3 Minuten 34 Sekunden old
      
      Recording test results
      ERROR: Step ‘Publish Micro Focus tests result’ failed: Test reports were found but none of them are new. Did leafNodes run? 
      For example, C:\Entw\Jenkins\workspace\Testautomatisierung\01_Smoketest\UFT\UFT_A_Smoketest_Master\Results29012019125534536.xml is 3 Minuten 34 Sekunden old
      ...
      Sucessfully imported JUnit XML results from Results29012019125534536.xml
      Finished: FAILURE
      

          [JENKINS-55836] Unable to delete workspace due to locked git .pack file

          Radi Berkovich added a comment - - edited

           

          Hi.

          I see here several directions

          1.first of all, please validate that you use hp-automation-tools-plugin. if so , we did several improvements in the area, 

          Please try to use our last beta version [5.8.5-beta|https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/hp-application-automation-tools-plugin/5.8.5-beta/hp-application-automation-tools-plugin-5.8.5-beta.hpi.]

          2.if you don't use  hp-automation-tools-plugin, then you've found a different problem and it most likely has a different root cause

          3.in the beginning of the thread I saw the following : Unable to delete 'C:\Jenkins\workspace\LabD_Build_Automation\Validate_LabD_VCSA\.git\FETCH_HEAD

          Root problem of this is locks of git and its not related to  hp-automation-tools-plugin plugin.

          Radi Berkovich added a comment - - edited   Hi. I see here several directions 1.first of all, please validate that you use hp-automation-tools-plugin. if so , we did several improvements in the area,  Please try to use our last beta version [5.8.5-beta| https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/hp-application-automation-tools-plugin/5.8.5-beta/hp-application-automation-tools-plugin-5.8.5-beta.hpi .] 2.if you don't use  hp-automation-tools-plugin, then you've found a different problem and it most likely has a different root cause 3.in the beginning of the thread I saw the following : Unable to delete 'C:\Jenkins\workspace\LabD_Build_Automation\Validate_LabD_VCSA\.git\FETCH_HEAD Root problem of this is locks of git and its not related to  hp-automation-tools-plugin plugin.

          radislavb,

          Thank you so much!!!

          I can confirm that 5.8.5-beta have fixed workspace delete issue.

          We are on latest 5.8 version. Any plan on releasing stable version with the fix?

          Manish Christian added a comment - radislavb , Thank you so much!!! I can confirm that 5.8.5-beta have fixed workspace delete issue. We are on latest 5.8 version. Any plan on releasing stable version with the fix?

          Daniel Gront added a comment - - edited

          Hey manishchristian, our release process takes some time in order to ensure that everything works correctly and no bugs are found. We are hoping to release a stable version in October.

          I am moving this issue to fixed.

          Daniel Gront added a comment - - edited Hey manishchristian , our release process takes some time in order to ensure that everything works correctly and no bugs are found. We are hoping to release a stable version in October. I am moving this issue to fixed.

          Hello, Can please someone tell the ETA when the fix will be released? Thanks in advance.

          Aliaksandr Kavaliou added a comment - Hello, Can please someone tell the ETA when the fix will be released? Thanks in advance.

          Jan Paul van der Jagt added a comment - - edited

          Is this definitely solved in the 5.9 version?

          Jan Paul van der Jagt added a comment - - edited Is this definitely solved in the 5.9 version?

          When will this fix actually be Released ?
          As far as I can see it was not in 5.9.

          Peter Willekens added a comment - When will this fix actually be Released ? As far as I can see it was not in 5.9.

          In versions 5.9 we did several related fixes in the area.

          Version 5.9 was released in september.

          Radi Berkovich added a comment - In versions 5.9 we did several related fixes in the area. Version 5.9 was released in september.

          Can you confirm this beta fix was included in version 5.9 ?
          Status of this issue suggests otherwise ...

          Peter Willekens added a comment - Can you confirm this beta fix was included in version 5.9 ? Status of this issue suggests otherwise ...

          included,

          I also will change status of issue.

          Radi Berkovich added a comment - included, I also will change status of issue.

          OK, thx for the confirmation.

          Peter Willekens added a comment - OK, thx for the confirmation.

            radislavb Radi Berkovich
            carsten_hilber Carsten Hilber
            Votes:
            24 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated:
              Resolved: