Harry L. Hoots, III created DAEMON-418:
------------------------------------------
Summary: Need for better error/troubleshooting in
commons-daemon.log
Key: DAEMON-418
URL: https://issues.apache.org/jira/browse/DAEMON-418
Project: Commons Daemon
Issue Type: Improvement
Components: prunsrv
Affects Versions: 1.2.2, 1.2.1, 1.2.0
Environment: Windows server 2016 / Windows 10 Enterprise
Reporter: Harry L. Hoots, III
Fix For: 1.2.3
Greetings--
I would like to request better error/troubleshooting logging in the
commons-daemon.<date>.log. Recently we upgraded our version of prunsrv.exe to
1.2.0, and our application would not start as it had on the previous version.
We encountered this error in the logs:
[2020-05-07 16:12:53] [info] [ 4808] Apache Commons Daemon procrun (1.2.0.0
32-bit) started.
[2020-05-07 16:12:53] [info] [ 4808] Starting service 'myService'...
[2020-05-07 16:12:54] [error] [ 4808] apxServiceControl(): dwState(4) !=
dwCurrentState(1); dwWin32ExitCode = 1066, dwWaitHint = 0,
dwServiceSpecificExitCode = 1
[2020-05-07 16:12:54] [error] [ 4808] apxServiceControl(): returning FALSE
[2020-05-07 16:12:54] [error] [ 4808] Failed to start service 'myService'.
[2020-05-07 16:12:54] [info] [ 4808] Finished starting service 'myService',
returning 0.
[2020-05-07 16:12:54] [error] [ 4808] Apache Commons Daemon procrun failed with
exit value: 5 (failed to start service).
After much digging and troubleshooting we found that the default service user
had been changed:
Procrun. Change the default service user from LocalSystem to 'NT
Authority\LocalService'.
https://commons.apache.org/proper/commons-daemon/changes-report.html#a1.2.0
After setting the parameter --ServiceUser=LocalSystem everything started
working again as it had in the past.
Thus this request is add better logging around these attributes, which are hard
to interpret:
apxServiceControl(): dwState(4) != dwCurrentState(1); dwWin32ExitCode = 1066,
dwWaitHint = 0, dwServiceSpecificExitCode = 1
--
This message was sent by Atlassian Jira
(v8.3.4#803005)