Skip to content

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

Closed

Description

@jenkins-infra-bot

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


Originally reported by peterpis, imported from: Unable to delete .hg\hgrc
  • assignee: kohsuke
  • status: Closed
  • priority: Critical
  • component(s): mercurial-plugin
  • resolution: Duplicate
  • resolved: 2009-09-17T11:11:20+00:00
  • votes: 0
  • watchers: 0
  • imported: 20251216-225446
Raw content of original issue

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

  • environment: Platform: All, OS: All

Activity

  1. jenkins-infra-bot commented on Oct 20, 2007

    @jenkins-infra-bot
    Author
    kohsuke:
    • Original comment link
    • Raw content of original 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?

    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?

  2. jenkins-infra-bot commented on Oct 20, 2007

    @jenkins-infra-bot
    Author
    kohsuke:
    • Original comment link
    • Raw content of original comment:

      Update the title to better reflect the problem.

    Update the title to better reflect the problem.

  3. jenkins-infra-bot commented on Oct 24, 2007

    @jenkins-infra-bot
    Author
    peterpis:
    • Original comment link
    • Raw content of original 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.

    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.

  4. jenkins-infra-bot commented on Jan 11, 2008

    @jenkins-infra-bot
    Author
    cagatayk:
    • Original comment link
    • Raw content of original 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.

    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.

  5. jenkins-infra-bot commented on Sep 29, 2008

    @jenkins-infra-bot
    Author
    wiredduns:
    • Original comment link
    • Raw content of original 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.

    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.

  6. jenkins-infra-bot commented on Sep 17, 2009

    @jenkins-infra-bot
    Author
    jglick:
    • Original comment link
    • Raw content of original comment:

      Looks to have been already fixed.

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

    Looks to have been already fixed.

        • This issue has been marked as a duplicate of 2420 ***
  7. jenkins-infra-bot commented on Dec 16, 2025

    @jenkins-infra-bot
    Author

    [Original duplicates from Jira: JENKINS-2420]

  8. jenkins-infra-bot commented on Dec 16, 2025

    @jenkins-infra-bot
    Author

    [Original depends_on from Jira: JENKINS-2420]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions