Repository navigation
[JENKINS-912] Unable to delete .hg\hgrc #313
Description
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
jenkins-infra-bot commentedon Oct 20, 2007
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?
jenkins-infra-bot commentedon Oct 20, 2007
Raw content of original comment:
Update the title to better reflect the problem.
jenkins-infra-bot commentedon Oct 24, 2007
peterpis:
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.
jenkins-infra-bot commentedon Jan 11, 2008
cagatayk:
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.
jenkins-infra-bot commentedon Sep 29, 2008
wiredduns:
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.
jenkins-infra-bot commentedon Sep 17, 2009
Raw content of original comment:
Looks to have been already fixed.
jenkins-infra-bot commentedon Dec 16, 2025
[Original
duplicatesfrom Jira: JENKINS-2420]jenkins-infra-bot commentedon Dec 16, 2025
[Original
depends_onfrom Jira: JENKINS-2420]