[
https://issues.apache.org/jira/browse/DAEMON-418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17114022#comment-17114022
]
Gary D. Gregory commented on DAEMON-418:
----------------------------------------
[~hlhoots]
These issues are hard to debug, I've been there, only too recently.
I recently added more debug logging but I am not sure it would have helped you
in this specific case. Feel free to try what is in git master now.
Aside from that, if you have specific suggestions, please feel free to create a
PR on GitHub :)\
For example, are you looking for a human readable string instead of "1066"?
Gary
> 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.0, 1.2.1, 1.2.2
> Environment: Windows server 2016 / Windows 10 Enterprise
> Reporter: Harry L. Hoots, III
> Priority: Major
> 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)