Details
-
Type:
Bug
-
Status: Fixed but Unreleased (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: core
-
Labels:None
-
Similar Issues:
Description
Jenkins never manage to restart itself after a plugin or version update. It must always be manually restarted through the windows service manager.
System: Windows XP
Jenkins 1.563
ERROR LOG:
WARNING: Failed to restart Jenkins
java.io.IOException: Restarting a service
[Jenkins] $ C:\Program\Jenkins\jenkins.exe restart
System.UnauthorizedAccessException: ?tkomst nekad. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Management.ManagementScope.InitializeGuts(Object o)
at System.Management.ManagementScope.Initialize()
at System.Management.ManagementScope.Connect()
at WMI.WmiRoot..ctor(String machineName)
at WMI.WmiRoot..ctor()
at winsw.WrapperService.Run(String[] _args)
at winsw.WrapperService.Main(String[] args)
at hudson.lifecycle.WindowsServiceLifecycle.restart(WindowsServiceLifecycle.java:138)
at jenkins.model.Jenkins$24.run(Jenkins.java:3336)
Attachments
Issue Links
- duplicates
-
JENKINS-22685 Jenkins cannot restart Windows service
-
- Resolved
-
- is duplicated by
-
JENKINS-23395 Jenkins restart problem
-
- Resolved
-
- relates to
-
JENKINS-50219 Jenkins agent windows service fails to restart with an unhandled COMException in WinSw's log
-
- Open
-
I am also having this problem and unfortunately do not have time to debug it further at the moment.
I had to shutdown the service and then manually kill the java.exe process before restarting the service to get Jenkins to start.
In case it helps:
I'm running 1.606 on Windows Server 2008 R2
I have several slaves running via SSH (I noticed their respective java.exe processs were still running after /safeRestart)
I have many (at least 70) different plugins activated, which may also be related to the problem if this is not occuring within a core only environment.