java.io.IOException: Unable to delete C:\JenkinsService\hudson.scm.CVSSCM.xml

Jenkins JIRA | Jesse Glick | 4 years ago
  1. 0

    {code:none} Started re-keying Wed Jan 09 12:59:32 EST 2013 Scanning C:\JenkinsService\com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper.xml ERROR: Failed to rewrite C:\JenkinsService\hudson.scm.CVSSCM.xml java.io.IOException: Unable to delete C:\JenkinsService\hudson.scm.CVSSCM.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) ERROR: Failed to rewrite C:\JenkinsService\users\andrewg\config.xml java.io.IOException: Unable to delete C:\JenkinsService\users\andrewg\config.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) Completed re-keying 0 files on Wed Jan 09 12:59:33 EST 2013 {code} Jenkins always fails to edit and delete these files as the Service will have a lock on them. If I stop the service I won't be able to get to Jenkins to rerun the rekey job.

    Jenkins JIRA | 4 years ago | Jesse Glick
    java.io.IOException: Unable to delete C:\JenkinsService\hudson.scm.CVSSCM.xml
  2. 0

    {code:none} Started re-keying Wed Jan 09 12:59:32 EST 2013 Scanning C:\JenkinsService\com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper.xml ERROR: Failed to rewrite C:\JenkinsService\hudson.scm.CVSSCM.xml java.io.IOException: Unable to delete C:\JenkinsService\hudson.scm.CVSSCM.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) ERROR: Failed to rewrite C:\JenkinsService\users\andrewg\config.xml java.io.IOException: Unable to delete C:\JenkinsService\users\andrewg\config.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) Completed re-keying 0 files on Wed Jan 09 12:59:33 EST 2013 {code} Jenkins always fails to edit and delete these files as the Service will have a lock on them. If I stop the service I won't be able to get to Jenkins to rerun the rekey job.

    Jenkins JIRA | 4 years ago | Jesse Glick
    java.io.IOException: Unable to delete C:\JenkinsService\hudson.scm.CVSSCM.xml
  3. 0

    In an upgrade from Jenkins 1.487 to 1.500 the rekey operation fails due to being unable to rewrite the necessary files. This seems to be the same or similar to the issue resolved in JENKINS-16319, which was included in the Jenkins 1.500 release. I seem to be unable to upgrade beyond Jenkins 1.497, as this problem first occurred in an attempted upgrade from Jenkins 1.497 to 1.498. The re-key log is as follows: Started re-keying Wed Jan 09 10:13:00 CST 2013 Scanning E:\Jenkins\config.xml ERROR: Failed to rewrite E:\Jenkins\config.xml java.io.IOException: Unable to delete E:\Jenkins\config.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) Scanning E:\Jenkins\jobs\BuildAllFromTrunk\builds\2012-12-11_06-16-44\changelog.xml Scanning E:\Jenkins\jobs\MakeCustomerService\builds\2012-12-15_06-40-38\changelog.xml Scanning E:\Jenkins\jobs\MakeCustomerService\builds\2013-01-08_06-40-28\changelog.xml Scanning E:\Jenkins\jobs\MakeFlash\builds\2012-12-29_07-07-22\build.xml Scanning E:\Jenkins\jobs\MakeImageOne\builds\2012-12-18_10-16-06\changelog.xml Scanning E:\Jenkins\jobs\MakeMsgProc\builds\2012-12-11_07-07-21\build.xml Scanning E:\Jenkins\jobs\MakeMsgProc\builds\2013-01-03_05-35-18\build.xml Scanning E:\Jenkins\jobs\MakePortal\builds\2012-12-20_07-21-50\changelog.xml Scanning E:\Jenkins\jobs\MakePrintAndPopcorn\builds\2012-12-13_10-33-18\build.xml Scanning E:\Jenkins\jobs\MakePrintAndPopcorn\builds\2013-01-05_07-07-37\build.xml Scanning E:\Jenkins\jobs\MakeTools\builds\2012-12-19_06-41-33\changelog.xml Scanning E:\Jenkins\jobs\MakeWeb\builds\2012-12-13_05-35-40\build.xml Scanning E:\Jenkins\jobs\MakeWeb\builds\2013-01-05_05-34-53\build.xml Scanning E:\Jenkins\jobs\RefreshBranchSourceCode\builds\2012-12-13_07-01-20\changelog.xml Scanning E:\Jenkins\jobs\RefreshBranchSourceCode\builds\2012-12-15_07-01-41\changelog.xml Scanning E:\Jenkins\jobs\RefreshBranchSourceCode\builds\2012-12-20_06-16-43\changelog.xml Scanning E:\Jenkins\jobs\RefreshBranchSourceCode\builds\2012-12-27_07-01-46\changelog.xml Scanning E:\Jenkins\jobs\RefreshBranchSourceCode\builds\2013-01-03_05-31-58\changelog.xml Scanning E:\Jenkins\jobs\RefreshBranchSourceCode\builds\2013-01-08_05-31-46\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-11_06-16-45\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-13_06-01-10\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-14_06-48-53\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-15_07-01-37\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-18_07-00-54\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-20_06-16-38\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-24_09-27-10\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-28_05-31-39\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-30_06-16-41\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2013-01-03_05-59-52\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2013-01-05_06-48-03\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2013-01-08_06-16-39\changelog.xml ERROR: Failed to rewrite E:\Jenkins\proxy.xml java.io.IOException: Unable to delete E:\Jenkins\proxy.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) ERROR: Failed to rewrite E:\Jenkins\users\agoldberg\config.xml java.io.IOException: Unable to delete E:\Jenkins\users\agoldberg\config.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) ERROR: Failed to rewrite E:\Jenkins\users\build\config.xml java.io.IOException: Unable to delete E:\Jenkins\users\build\config.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) ERROR: Failed to rewrite E:\Jenkins\users\dodren\config.xml java.io.IOException: Unable to delete E:\Jenkins\users\dodren\config.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) Completed re-keying 0 files on Wed Jan 09 10:13:21 CST 2013

    Jenkins JIRA | 4 years ago | David Odren
    java.io.IOException: Unable to delete E:\Jenkins\proxy.xml
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    In an upgrade from Jenkins 1.487 to 1.500 the rekey operation fails due to being unable to rewrite the necessary files. This seems to be the same or similar to the issue resolved in JENKINS-16319, which was included in the Jenkins 1.500 release. I seem to be unable to upgrade beyond Jenkins 1.497, as this problem first occurred in an attempted upgrade from Jenkins 1.497 to 1.498. The re-key log is as follows: Started re-keying Wed Jan 09 10:13:00 CST 2013 Scanning E:\Jenkins\config.xml ERROR: Failed to rewrite E:\Jenkins\config.xml java.io.IOException: Unable to delete E:\Jenkins\config.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) Scanning E:\Jenkins\jobs\BuildAllFromTrunk\builds\2012-12-11_06-16-44\changelog.xml Scanning E:\Jenkins\jobs\MakeCustomerService\builds\2012-12-15_06-40-38\changelog.xml Scanning E:\Jenkins\jobs\MakeCustomerService\builds\2013-01-08_06-40-28\changelog.xml Scanning E:\Jenkins\jobs\MakeFlash\builds\2012-12-29_07-07-22\build.xml Scanning E:\Jenkins\jobs\MakeImageOne\builds\2012-12-18_10-16-06\changelog.xml Scanning E:\Jenkins\jobs\MakeMsgProc\builds\2012-12-11_07-07-21\build.xml Scanning E:\Jenkins\jobs\MakeMsgProc\builds\2013-01-03_05-35-18\build.xml Scanning E:\Jenkins\jobs\MakePortal\builds\2012-12-20_07-21-50\changelog.xml Scanning E:\Jenkins\jobs\MakePrintAndPopcorn\builds\2012-12-13_10-33-18\build.xml Scanning E:\Jenkins\jobs\MakePrintAndPopcorn\builds\2013-01-05_07-07-37\build.xml Scanning E:\Jenkins\jobs\MakeTools\builds\2012-12-19_06-41-33\changelog.xml Scanning E:\Jenkins\jobs\MakeWeb\builds\2012-12-13_05-35-40\build.xml Scanning E:\Jenkins\jobs\MakeWeb\builds\2013-01-05_05-34-53\build.xml Scanning E:\Jenkins\jobs\RefreshBranchSourceCode\builds\2012-12-13_07-01-20\changelog.xml Scanning E:\Jenkins\jobs\RefreshBranchSourceCode\builds\2012-12-15_07-01-41\changelog.xml Scanning E:\Jenkins\jobs\RefreshBranchSourceCode\builds\2012-12-20_06-16-43\changelog.xml Scanning E:\Jenkins\jobs\RefreshBranchSourceCode\builds\2012-12-27_07-01-46\changelog.xml Scanning E:\Jenkins\jobs\RefreshBranchSourceCode\builds\2013-01-03_05-31-58\changelog.xml Scanning E:\Jenkins\jobs\RefreshBranchSourceCode\builds\2013-01-08_05-31-46\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-11_06-16-45\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-13_06-01-10\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-14_06-48-53\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-15_07-01-37\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-18_07-00-54\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-20_06-16-38\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-24_09-27-10\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-28_05-31-39\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2012-12-30_06-16-41\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2013-01-03_05-59-52\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2013-01-05_06-48-03\changelog.xml Scanning E:\Jenkins\jobs\UnregisterAllBranches\builds\2013-01-08_06-16-39\changelog.xml ERROR: Failed to rewrite E:\Jenkins\proxy.xml java.io.IOException: Unable to delete E:\Jenkins\proxy.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) ERROR: Failed to rewrite E:\Jenkins\users\agoldberg\config.xml java.io.IOException: Unable to delete E:\Jenkins\users\agoldberg\config.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) ERROR: Failed to rewrite E:\Jenkins\users\build\config.xml java.io.IOException: Unable to delete E:\Jenkins\users\build\config.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) ERROR: Failed to rewrite E:\Jenkins\users\dodren\config.xml java.io.IOException: Unable to delete E:\Jenkins\users\dodren\config.xml at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) Completed re-keying 0 files on Wed Jan 09 10:13:21 CST 2013

    Jenkins JIRA | 4 years ago | David Odren
    java.io.IOException: Unable to delete E:\Jenkins\proxy.xml
  6. 0

    Can't delete an image after JAI manipulation | Java.net

    java.net | 1 year ago
    java.io.IOException: Unable to delete file: c:\testpdf\testimage.tif

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Unable to delete C:\JenkinsService\hudson.scm.CVSSCM.xml

      at hudson.util.AtomicFileWriter.commit()
    2. Hudson
      SecretRewriter.rewriteRecursive
      1. hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:112)
      2. hudson.util.SecretRewriter.rewrite(SecretRewriter.java:121)
      3. hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170)
      4. hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143)
      4 frames
    3. jenkins.security
      RekeySecretAdminMonitor$RekeyThread.run
      1. jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182)
      1 frame