• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None

      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)

          [JENKINS-23147] Jenkins won't restart itself through the GUI

          Hirad Asadi created issue -

          Daniel Beck added a comment -

          Duplicates JENKINS-22685.

          Daniel Beck added a comment - Duplicates JENKINS-22685 .
          Daniel Beck made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Beck made changes -
          Link New: This issue duplicates JENKINS-22685 [ JENKINS-22685 ]
          Hirad Asadi made changes -
          Description Original: 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
          New: 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)

          Hirad Asadi added a comment -

          Still not working in 1.566...

          Hirad Asadi added a comment - Still not working in 1.566...
          Hirad Asadi made changes -
          Resolution Original: Duplicate [ 3 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Daniel Beck added a comment -

          Stack trace should be different than the original above though.

          Also, what user are you running the Jenkins service as? It's not the default SYSTEM account, is it? Try to give that user permission to use WMI:

          http://technet.microsoft.com/en-us/library/cc787533%28v=WS.10%29.aspx

          Daniel Beck added a comment - Stack trace should be different than the original above though. Also, what user are you running the Jenkins service as? It's not the default SYSTEM account, is it? Try to give that user permission to use WMI: http://technet.microsoft.com/en-us/library/cc787533%28v=WS.10%29.aspx
          Daniel Beck made changes -
          Link New: This issue is duplicated by JENKINS-23395 [ JENKINS-23395 ]

          Hirad Asadi added a comment -

          It runs as system.

          Hirad Asadi added a comment - It runs as system.

            oleg_nenashev Oleg Nenashev
            hirre Hirad Asadi
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: