This does reproduce on our Jenkins deployment.
We use Jenkins ver. 1.429, though older versions were also affected.
On restart request "Please wait while Jenkins is restarting..." is displayed forever in browser and jenkins.err.log has:
INFO: Restart in 10 seconds
Sep 11, 2011 9:10:48 AM jenkins.model.Jenkins$19 run
SEVERE: Restarting VM as requested by pancake
Sep 11, 2011 9:10:49 AM jenkins.model.Jenkins$19 run
WARNING: Failed to restart Hudson
java.io.IOException: Restarting a service
[_JenkinsCI] $ C:_JenkinsCI\jenkins.exe restart
System.Management.ManagementException: Not found
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementObject.InvokeMethod(String methodName, ManagementBaseObject inParameters, InvokeMethodOptions options)
at WMI.WmiRoot.InstanceHandler.Invoke(Object proxy, MethodInfo method, Object[] args)
at WMI.Win32ServiceProxy.StopService()
at winsw.WrapperService.Run(String[] _args)
at winsw.WrapperService.Main(String[] args)
at hudson.lifecycle.WindowsServiceLifecycle.restart(WindowsServiceLifecycle.java:132)
at jenkins.model.Jenkins$19.run(Jenkins.java:3026)
Does not reproduce when restarting Jenkins win service manually.
Deployments notes:
- Windows Server 2003R2 x64 sp2;
- Jenkins runs as service;
- the service is run under separate hudson_ci@ourcompany.com account;
- hudson_ci@ourcompany.com is administrator of the box the service runs;
- C:_JenkinsCI_jdk\bin\jenkins_ci_java.exe -version:
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode)
I think we have the same issue, this is the error from log
[hudsonapp] $ E:\work\hudsonapp\hudson.exe restart
System.Management.ManagementException: Not found
at
System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus
errorCode)
at System.Management.ManagementObject.InvokeMethod(String methodName,
ManagementBaseObject inParameters, InvokeMethodOptions options)
at WMI.WmiRoot.InstanceHandler.Invoke(Object proxy, MethodInfo method,
Object[] args)
at WMI.Win32ServiceProxy.StopService()
at winsw.WrapperService.Run(String[] args)
at winsw.WrapperService.Main(String[] args)
at
hudson.lifecycle.WindowsServiceLifecycle.restart(WindowsServiceLifecycle.java:10
9)
at hudson.model.Hudson$13.run(Hudson.java:2911)