-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Hi, i'm using winsw for running consul application as winservice.
I found that consul.exe was running, but in mmc.exe it had status "stopped" on 50% of my servers.
This exeption was found in log:
2016-10-10 03:18:53 - Starting consul.exe agent -config-file consul.conf
2016-10-10 03:18:53 - Started 18192
2016-10-10 03:35:01 - Stopping consul-agent
2016-10-10 03:35:01 - ProcessKill 18192
2016-10-10 03:35:02 - Found child process: 7852 Name: conhost.exe
2016-10-10 03:35:02 - Stopping process 7852
2016-10-10 03:35:02 - Send SIGINT 7852
2016-10-10 03:35:02 - SIGINT to 7852 failed - Killing as fallback
2016-10-10 03:35:02 - Stopping process 18192
2016-10-10 03:35:02 - Send SIGINT 18192
2016-10-10 03:35:02 - SIGINT to 18192 failed - Killing as fallback
2016-10-10 03:35:02 - Finished consul-agent
2016-10-10 03:35:06 - Starting consul.exe agent -config-file consul.conf
2016-10-10 03:35:06 - Started 7560
2016-10-10 03:51:54 - Stopping consul-agent
2016-10-10 03:51:54 - ProcessKill 7560
2016-10-10 03:51:55 - Found child process: 8052 Name: conhost.exe
2016-10-10 03:51:55 - Found child process: 14520 Name: csrss.exe
2016-10-10 03:51:55 - Found child process: 12208 Name: winlogon.exe
2016-10-10 03:51:55 - Stopping process 14520
2016-10-10 03:51:55 - Send SIGINT 14520
2016-10-10 03:51:55 - SIGINT to 14520 failed - Killing as fallback
2016-10-10 03:51:55 - Stop exception
Message:Access is denied
Stacktrace: at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited)
at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
at System.Diagnostics.Process.Kill()
at winsw.WrapperService.StopProcess(Int32 pid)
at winsw.WrapperService.StopProcessAndChildren(Int32 pid)
at winsw.WrapperService.StopProcessAndChildren(Int32 pid)
at winsw.WrapperService.StopProcessAndChildren(Int32 pid)
at winsw.WrapperService.StopIt()
at winsw.WrapperService.OnStop()