I have had the same problem, have not solved it.
On Fri, Jan 11, 2013 at 2:12 PM, Andrew Gray <[email protected]> wrote: > Hi Kohsuke, > > I am running Jenkins as a Windows Service. When I try rekeying from the > Manage Jenkins page I get the following in the log: > > Re-keying log > > 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 > > > > Won't it always fail 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. > > Am I missing something or is this a chicken and the egg problem. > > Does your solution account for Jenkins instances installed as a Windows > service? > > Cheers, > > Andrew
