• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • mercurial-plugin
    • None
    • Platform: All, OS: All

      Windows XP, Mercurial Distributed SCM (version bbdcdc7f170e+20070829)

      started
      ERROR: Failed to clean the workspace
      java.io.IOException: Unable to delete
      D:\Programs\hudson\jobs\Anagram\workspace\.hg\hgrc
      at hudson.Util.deleteFile(Util.java:140)
      at hudson.Util.deleteRecursive(Util.java:148)
      at hudson.Util.deleteContentsRecursive(Util.java:119)
      at hudson.Util.deleteRecursive(Util.java:147)
      at hudson.Util.deleteContentsRecursive(Util.java:119)
      at hudson.Util.deleteRecursive(Util.java:147)
      at hudson.FilePath$5.invoke(FilePath.java:342)
      at hudson.FilePath$5.invoke(FilePath.java:340)
      at hudson.FilePath.act(FilePath.java:280)
      at hudson.FilePath.deleteRecursive(FilePath.java:340)
      at hudson.plugins.mercurial.MercurialSCM.clone(MercurialSCM.java:183)
      at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:125)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:518)
      at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179)
      at hudson.model.Run.run(Run.java:579)
      at hudson.model.Build.run(Build.java:103)
      at hudson.model.ResourceController.execute(ResourceController.java:66)
      at hudson.model.Executor.run(Executor.java:62)
      finished: FAILURE

          [JENKINS-912] Unable to delete .hg\hgrc

          1. does this problem happen consistently, or randomly?

          2. any chance you were running other processes at the same time working on this
          directory?

          3. If this file still exists, what's the file permission?

          Kohsuke Kawaguchi added a comment - 1. does this problem happen consistently, or randomly? 2. any chance you were running other processes at the same time working on this directory? 3. If this file still exists, what's the file permission?

          Update the title to better reflect the problem.

          Kohsuke Kawaguchi added a comment - Update the title to better reflect the problem.

          peterpis added a comment -

          I've created a new job and for the first time the build process finishes fine,
          but next time the mentioned error occurs always. I am able to delete entire
          content of workspace externally. But the "workspace" directory can't be deleted.

          peterpis added a comment - I've created a new job and for the first time the build process finishes fine, but next time the mentioned error occurs always. I am able to delete entire content of workspace externally. But the "workspace" directory can't be deleted.

          cagatayk added a comment -

          I have the same problem when the Mercurial repository path is a file path. If I
          change it to the HTTP URL for the same repository (I have the hgweb script
          running) things work.

          cagatayk added a comment - I have the same problem when the Mercurial repository path is a file path. If I change it to the HTTP URL for the same repository (I have the hgweb script running) things work.

          wiredduns added a comment -

          I seem to be getting the same:

          started
          ERROR: Failed to clean the workspace
          java.io.IOException: Unable to delete C:\home\duns\.....\hg\hudson\jobs\.....\workspace\.hg\hgrc
          at hudson.Util.deleteFile(Util.java:195)
          at hudson.Util.deleteRecursive(Util.java:226)
          at hudson.Util.deleteContentsRecursive(Util.java:161)
          at hudson.Util.deleteRecursive(Util.java:225)
          at hudson.Util.deleteContentsRecursive(Util.java:161)
          at hudson.Util.deleteRecursive(Util.java:225)
          at hudson.FilePath$6.invoke(FilePath.java:460)
          at hudson.FilePath$6.invoke(FilePath.java:458)
          at hudson.FilePath.act(FilePath.java:388)
          at hudson.FilePath.deleteRecursive(FilePath.java:458)
          at hudson.plugins.mercurial.MercurialSCM.clone(MercurialSCM.java:321)
          at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:215)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:664)
          at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:260)
          at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:234)
          at hudson.model.Run.run(Run.java:793)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:205)
          at hudson.model.ResourceController.execute(ResourceController.java:70)
          at hudson.model.Executor.run(Executor.java:88)
          finished: FAILURE

          This happens ONLY on our Windows XP machine, not under MacOS X. I am sure it is Windows
          related. Maven pre-2.x had related problems (stand-alone, not under Hudson) trying to delete
          the target directory.

          Hope this helps. Not sure what to do, all jobs fail at this time.

          wiredduns added a comment - I seem to be getting the same: started ERROR: Failed to clean the workspace java.io.IOException: Unable to delete C:\home\duns\.....\hg\hudson\jobs\.....\workspace\.hg\hgrc at hudson.Util.deleteFile(Util.java:195) at hudson.Util.deleteRecursive(Util.java:226) at hudson.Util.deleteContentsRecursive(Util.java:161) at hudson.Util.deleteRecursive(Util.java:225) at hudson.Util.deleteContentsRecursive(Util.java:161) at hudson.Util.deleteRecursive(Util.java:225) at hudson.FilePath$6.invoke(FilePath.java:460) at hudson.FilePath$6.invoke(FilePath.java:458) at hudson.FilePath.act(FilePath.java:388) at hudson.FilePath.deleteRecursive(FilePath.java:458) at hudson.plugins.mercurial.MercurialSCM.clone(MercurialSCM.java:321) at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:215) at hudson.model.AbstractProject.checkout(AbstractProject.java:664) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:260) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:234) at hudson.model.Run.run(Run.java:793) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:205) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:88) finished: FAILURE This happens ONLY on our Windows XP machine, not under MacOS X. I am sure it is Windows related. Maven pre-2.x had related problems (stand-alone, not under Hudson) trying to delete the target directory. Hope this helps. Not sure what to do, all jobs fail at this time.

          Jesse Glick added a comment -

          Looks to have been already fixed.

              • This issue has been marked as a duplicate of 2420 ***

          Jesse Glick added a comment - Looks to have been already fixed. This issue has been marked as a duplicate of 2420 ***

            kohsuke Kohsuke Kawaguchi
            peterpis peterpis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: