Make sure to tell us:
- What version are you upgrading from? Upgrading from 8.9.10.61524
- System information (Operating system, Java version, Database provider/version) Windows /Java 17, Microsoft SQL Express 2017
- What’s the issue you’re facing?
When trying to upgrade we couldn’t start new service from cmd prompt 9.9. so we used sc delete SonarQube which deleted the service…
Then we were able to install new service, how ever getting below error failed to start the service - Access Denied
Though CMD prompt says its started succesfully how ever service is not started and we saw this in Sonarqube/logs/ SonarServiceWrapper.wrapper.log file
Starting C:\Program Files\Java\jdk-17 -Xms8m -Xmx32m -Djava.awt.headless=true --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -cp "..\..\..\lib\sonar-application-9.9.1.69595.jar" "org.sonar.application.App"
2023-08-18 10:01:34,191 ERROR - Failed to start service.
System.ComponentModel.Win32Exception (0x80004005): Access is denied
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at WinSW.Util.ProcessHelper.StartProcessAndCallbackForExit(Process processToStart, String executable, String arguments, Dictionary`2 envVars, String workingDirectory, Nullable`1 priority, ProcessCompletionCallback callback, LogHandler logHandler, Boolean hideWindow)
at WinSW.WrapperService.StartProcess(Process processToStart, String arguments, String executable, LogHandler logHandler)
at WinSW.WrapperService.DoStart()
at WinSW.WrapperService.OnStart(String[] args)