Automatic start as service of scm-server on Windows2012Server failing
installed scm-manager on a fresh Windows2012Server installation. configured it to run on HTTPS port 8181.
registered it as service (=> scm-server install). service is visible in services manager. clicking on 'start' brings the service up. scm-server is accessible under https://<myhost>:8181/scm. ... good!
configured it for startup typ 'automatic'. rebooted the system. service is not started. event log shows an error that service did not start okay. clicking on 'start' in services manager starts scm-server correctly !?
the log file show the following - for the automatic start attempt:
[2013-03-13 13:53:06] [info] Commons Daemon procrun (22.214.171.124 64-bit) started [2013-03-13 13:53:06] [info] Running 'scm-server' Service... [2013-03-13 13:53:06] [info] Starting service... [2013-03-13 13:53:43] [error] Failed to start Java [2013-03-13 13:53:45] [error] ServiceStart returned 4 [2013-03-13 13:53:47] [info] Run service finished. [2013-03-13 13:53:47] [info] Commons Daemon procrun finished
after (successful) manual start the log file shows (like expected)
[2013-03-13 13:56:03] [info] Commons Daemon procrun (126.96.36.199 64-bit) started [2013-03-13 13:56:03] [info] Running 'scm-server' Service... [2013-03-13 13:56:03] [info] Starting service... [2013-03-13 13:56:05] [info] Service started in 1485 ms.
This phenomenon shows with version 1.22 as well as with the latest version 1.28.
Question: is this a bug in the scm-server code, or more (what I would nearly expect) a - to me - unkonwn "security feature" of Windows2012Server ?
P.S.: Same approach works liek a charm under Windows2008Server, respectively Windows7