Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-2989

hudson windows service is not restarted from update center after installing plugin

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • packaging
    • Platform: All, OS: Windows XP

      After installing a new plugin, the restart from update center:

      http://kahobtrp6bld80:9091/updateCenter/

      does not restart the service (hudson.exe) and java.exe.

          [JENKINS-2989] hudson windows service is not restarted from update center after installing plugin

          gliptak created issue -

          jarlebh added a comment -

          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)

          jarlebh added a comment - 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)

          jarlebh added a comment -

          we have the same issue.

          [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)

          jarlebh added a comment - we have the same issue. [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)

          jarlebh added a comment -

          Sorry, I messed up the comments

          jarlebh added a comment - Sorry, I messed up the comments

          fredg02 added a comment -

          Since I started using Hudson regularly (around v1.360) I always get the exact same error message (as seen above in the comments), when trying to do an automatic update and restart of the Hudson service.

          OS: Microsoft Windows Server 2003 Standard Edition SP2
          Hudson versions: 1.360-1.375

          If I can provide more info that helps to fix the problem, please let me know.

          fredg02 added a comment - Since I started using Hudson regularly (around v1.360) I always get the exact same error message (as seen above in the comments), when trying to do an automatic update and restart of the Hudson service. OS: Microsoft Windows Server 2003 Standard Edition SP2 Hudson versions: 1.360-1.375 If I can provide more info that helps to fix the problem, please let me know.

          As of 1.391, I cannot reproduce this problem. I'm assuming my fix to JENKINS-5090 or earlier had done the trick.

          Kohsuke Kawaguchi added a comment - As of 1.391, I cannot reproduce this problem. I'm assuming my fix to JENKINS-5090 or earlier had done the trick.
          Kohsuke Kawaguchi made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          fredg02 made changes -
          Link New: This issue is related to JENKINS-5090 [ JENKINS-5090 ]

          pancake added a comment -

          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)

          pancake added a comment - 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)
          pancake made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

            kohsuke Kohsuke Kawaguchi
            gliptak gliptak
            Votes:
            7 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: