- bug description (occurred issue):
I could successfully start the service on Windows 2016 Server up to the version 3.0.0. From 3.0.1 version the service doesn’t start anymore.
Looking at scm-server.wrapper.log I can see the following error:
2024-02-12 10:33:13,286 DEBUG - Starting WinSW in console mode
2024-02-12 10:33:16,266 DEBUG - Starting WinSW in console mode
2024-02-12 10:33:16,651 INFO - Installing the service with id ‘scm-server’
2024-02-12 10:33:16,744 DEBUG - Completed. Exit code is 0
2024-02-12 10:33:22,276 DEBUG - Starting WinSW in console mode
2024-02-12 10:33:24,761 DEBUG - Starting WinSW in console mode
2024-02-12 10:33:25,101 INFO - Starting the service with id ‘scm-server’
2024-02-12 10:33:25,374 DEBUG - Starting WinSW in service mode
2024-02-12 10:33:25,393 DEBUG - Completed. Exit code is 0
2024-02-12 10:33:25,482 INFO - Starting %JAVA_HOME%\bin\java -cp “C:\scm-server_3.0.3\conf”;“C:\scm-server_3.0.3\lib*” -DBASE_DIR=“C:\scm-server_3.0.3” -Djava.awt.headless=true sonia.scm.server.ScmServerDaemon
2024-02-12 10:33:25,773 FATAL - Unhandled exception
System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at WinSW.Util.ProcessHelper.StartProcessAndCallbackForExit(Process processToStart, String executable, String arguments, Dictionary2 envVars, String workingDirectory, Nullable1 priority, ProcessCompletionCallback callback, Boolean redirectStdin, LogHandler logHandler, Boolean hideWindow)
at WinSW.WrapperService.StartProcess(Process processToStart, String arguments, String executable, LogHandler logHandler, Boolean redirectStdin)
at WinSW.WrapperService.OnStart(String args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
— End of stack trace from previous location where exception was thrown —
at System.ServiceProcess.ServiceBase.Run(ServiceBase services)
at System.ServiceProcess.ServiceBase.Run(ServiceBase service)
at WinSW.Program.Run(String argsArray, IWinSWConfiguration descriptor)
at WinSW.Program.Main(String args)
java version:
openjdk version “21.0.2” 2024-01-16 LTS
OpenJDK Runtime Environment Microsoft-8905927 (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Microsoft-8905927 (build 21.0.2+13-LTS, mixed mode, sharing)
- SCM-Manager version and installed package: SCM-Manager 3.0.1, 3.0.2, 3.0.3
