Skip to content

[JENKINS-16319] Failure to delete old config files during rekeying on Windows #13207

Description

@jenkins-infra-bot
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

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.


Originally reported by jglick, imported from: Failure to delete old config files during rekeying on Windows
  • status: Resolved
  • priority: Critical
  • component(s): core
  • label(s): 1.480.3-fixed
  • resolution: Fixed
  • resolved: 2013-01-30T20:32:19+00:00
  • votes: 15
  • watchers: 20
  • imported: 2025-11-24
Raw content of original issue
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

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.

  • environment: Jenkins as a Windows service

No activity

Activity on this issue will appear here.

Activity

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