scm-server service terminated in Windows Server 2012

Issue #723 open
Nagaraj S
created an issue

Hi Members,

Today i have tried to install scm-server-1.45-app.zip in Windows Server 2012. But couldn't successfully deploy it. When attempting to start the "scm service", it throws some error message "Windows could not start the scm service on Local Computer".

And also investigated the event viewer, it showed the following error message, "The scm-server service terminated with the following service-specific error: Incorrect function".

When i followed the same steps in windows 7, it worked fine without any bug. Here i would like to confirm whether the scm-server-1.45-app is compatible with "Windows Server 2012" or not. Please put me in the right direction.

Comments (13)

  1. Sebastian Sebastian repo owner
    • changed status to open

    The service should work with windows server 2012. Did the server start, if you run the scm-server.bat directly? Did you see any error in the logs directory of scm-manager or in the home directory of scm-manager.

  2. Wojciech Bajorek

    I run into the same issue yesterday. scm-server service gives me the following error: The scm-server service terminated with the following service-specific error: Incorrect function. scm-server.bat works without any issue.

    OS: Win2012R2

  3. Graham Townsend

    I get the exactly the same issue as above.

    The log reads as follows

    [2015-08-21 10:08:21] [info] [ 5076] Commons Daemon procrun (1.0.15.0 64-bit) started [2015-08-21 10:08:21] [info] [ 5076] Running 'scm-server' Service... [2015-08-21 10:08:21] [info] [ 4732] Starting service... [2015-08-21 10:08:21] [error] [ 4732] Failed creating java [2015-08-21 10:08:21] [error] [ 4732] The filename, directory name, or volume label syntax is incorrect. [2015-08-21 10:08:21] [error] [ 4732] ServiceStart returned 1 [2015-08-21 10:08:21] [error] [ 4732] The filename, directory name, or volume label syntax is incorrect. [2015-08-21 10:08:21] [info] [ 5076] Run service finished. [2015-08-21 10:08:21] [info] [ 5076] Commons Daemon procrun finished

  4. okantt

    I have scm-server-1.44 installed on Windows 8.1. It was running fine until this morning when I had to restart the machine. After the reboot, I discovered that the scm-server service was down. I tried to start it manually but failed. I checked the event log viewer, the error message was the same as the one in the original post: "The scm-server service terminated with the following service-specific error: Incorrect function". I upgraded to scm-server-1.46 and reinstalled the service but it did not work. I am still getting the following log message which is similar to the previous post:

    [2015-10-12 11:51:47] [info] [ 8636] Commons Daemon procrun (1.0.15.0 64-bit) started [2015-10-12 11:51:47] [info] [ 8636] Running 'scm-server' Service... [2015-10-12 11:51:47] [info] [ 4996] Starting service... [2015-10-12 11:51:47] [error] [ 4996] Failed creating java [2015-10-12 11:51:47] [error] [ 4996] The filename, directory name, or volume label syntax is incorrect. [2015-10-12 11:51:47] [error] [ 4996] ServiceStart returned 1 [2015-10-12 11:51:47] [error] [ 4996] The filename, directory name, or volume label syntax is incorrect. [2015-10-12 11:51:47] [info] [ 8636] Run service finished. [2015-10-12 11:51:47] [info] [ 8636] Commons Daemon procrun finished

    If I run the server by executing scm-server.bat in the command-line, it runs fine though. I recently upgraded my jre to the latest version. Is it possible that the jre ugprade has broken something?

    Edit: My problem was related to my recent java update as I suspected. I installed 64-bit version of JRE alongside 32-bit version and now I can start the scm-server service successfully.

  5. gelliott181

    Attempted a fresh install and configuration on a brand new Windows Server 2012 R2 VM using the Server JRE Update 102 (Latest JRE1.8 x64 as of 8/25/2016) package installed to C:\Java and the PATH variable works fine. SCM-Manager starts from the command line, but returns this error when attempting to start as a service.

  6. Zipher

    Hello I run into the same problem today and solved it by install JRE. My OS is windows 7 professional and SCM-Manager is v1.51. The detail is as the following:

    • Install scm-server Run in cmd.exe
    {scm-server root}\bin\scm-server.bat install
    
    • The error when starting scm-server from Windows Service
    Windows could not start the scm-server on Local Computer. For more information, 
    review the System Event Log. If this is a non-Microsoft service, contact the service vendor, 
    and refer to service-specific error code 1.
    
    • The log at {scm-server root}\var\log\
    [2017-04-21 13:05:33] [info]  [ 3528] Commons Daemon procrun (1.0.15.0 64-bit) started
    [2017-04-21 13:05:33] [info]  [ 3528] Running 'scm-server' Service...
    [2017-04-21 13:05:33] [info]  [ 5760] Starting service...
    [2017-04-21 13:05:33] [error] [ 5760] Failed creating java 
    [2017-04-21 13:05:33] [error] [ 5760] The filename, directory name, or volume label syntax is incorrect.
    [2017-04-21 13:05:33] [error] [ 5760] ServiceStart returned 1
    [2017-04-21 13:05:33] [error] [ 5760] The filename, directory name, or volume label syntax is incorrect.
    [2017-04-21 13:05:33] [info]  [ 3528] Run service finished.
    [2017-04-21 13:05:33] [info]  [ 3528] Commons Daemon procrun finished
    

    Found the problem is related to Java.

    • Install Java runtime environment download from Oracle. Current version is 8u131 at 2017/04/21.

    • Restart scm-server from Windows service will be OK. The log at {scm-server root}\var\log\ read

    [2017-04-21 13:09:43] [info]  [ 7100] Commons Daemon procrun (1.0.15.0 64-bit) started
    [2017-04-21 13:09:43] [info]  [ 7100] Running 'scm-server' Service...
    [2017-04-21 13:09:43] [info]  [ 3208] Starting service...
    [2017-04-21 13:09:44] [info]  [ 3208] Service started in 1228 ms.
    
    • A final thought I could run scm-server.bat directly in command line without the "install" parameter. But could not run from the Windows Service. I thought the problem is caused by I had installed JDK in my PC but not JRE. Scm-server.bat could run with just JDK. But Windows Service could not.
  7. Kyle Ross

    Commenting to offer another solution to this problem:

    I have a Windows server that was 64 bit, and the Java was 64 bit. Still was getting the above error message.

    I found that if I edited the scm-server.bat at the ':installService' line from

    --jvm auto
    

    to

    --jvm '<Direct path to java\jre\bin\server\jvm.dll>"
    

    This solved the issue for me.

  8. Log in to comment