Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-22692] - Shutdown exception. Cannot get Child Pids #59

Closed
danielsantiago opened this issue Dec 2, 2014 · 3 comments · Fixed by #172
Closed

[JENKINS-22692] - Shutdown exception. Cannot get Child Pids #59

danielsantiago opened this issue Dec 2, 2014 · 3 comments · Fixed by #172
Labels
Milestone

Comments

@danielsantiago
Copy link

Hi,

I'm getting this shutdown exception when I try to restart the server. I'm using the master branch code.
It appears like is having problem getting the process pids with GetChildPids.

OS: Windows 7

2014-12-01 20:56:12 - ProcessKill 10804
2014-12-01 20:56:14 - Shutdown exception
Message:A system shutdown is in progress. (Exception from HRESULT: 0x8007045B)
Stacktrace:   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.ManagementObjectSearcher.Initialize()
   at System.Management.ManagementObjectSearcher.Get()
   at winsw.WrapperService.GetChildPids(Int32 pid)
   at winsw.WrapperService.StopProcessAndChildren(Int32 pid)
   at winsw.WrapperService.StopIt()
   at winsw.WrapperService.OnShutdown()
@oleg-nenashev
Copy link
Member

@oleg-nenashev oleg-nenashev changed the title Shutdown exception [JENKINS-22692] - Shutdown exception Feb 1, 2015
@oleg-nenashev oleg-nenashev changed the title [JENKINS-22692] - Shutdown exception [JENKINS-22692] - Shutdown exception. Cannot get Child Pids Feb 1, 2015
@oleg-nenashev
Copy link
Member

A major rework is required (if we don't want just to suppress exceptions). Seems the bug in winsw-2.0 scope

@oleg-nenashev oleg-nenashev added this to the winsw-2.0 milestone Feb 4, 2015
oleg-nenashev added a commit to oleg-nenashev/winsw that referenced this issue Dec 24, 2016
oleg-nenashev added a commit that referenced this issue Dec 27, 2016
…rocessKill

Issue #59 - Prevent failure when Child processes cannot be retrieved due to the system shutdown
@oleg-nenashev
Copy link
Member

I have added suppression of this exception. Even if WinSW fails to retrieve child PIDs, it will try to kill the spawned process

@nxtn nxtn modified the milestones: winsw-2.0, 2.0.1, 2.0.0 Mar 25, 2020
@winsw winsw locked as resolved and limited conversation to collaborators Mar 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants