What version are you upgrading from: 9.4.0.54424
System information:
Operating system: Windows Server 2019
Java version: 17
Database provider/version: SQL Server, v14
What’s the issue you’re facing:
Installed 9.9.0.65466, installed version 17 of Java, can’t get the service to start.
The service installs correctly via \bin\windows-x86-64\SonarService.bat install.
The service runs when I execute \bin\windows-x86-64\SonarService.bat start, but then stops shortly afterwards.
I had a look at the event viewer and noticed a Java error, so I executed \bin\windows-x86-64\StartSonar.bat instead and got this:
2023.02.09 08:31:47 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2023.02.09 08:31:47 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [C:\sonarqube-9.9.0.65466]: C:\jdk\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\sonarqube-9.9.0.65466\temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=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 -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -server -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.9.0.65466.jar;C:\sonarqube-9.9.0.65466\lib\jdbc\mssql\mssql-jdbc-11.2.2.jre17.jar org.sonar.server.app.WebServer C:\sonarqube-9.9.0.65466\temp\sq-process17624096899686017470properties
**WARNING: A terminally deprecated method in java.lang.System has been called**
**WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/C:/sonarqube-9.9.0.65466/lib/sonar-application-9.9.0.65466.jar)**
**WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager**
WARNING: System::setSecurityManager will be removed in a future release
2023.02.09 08:31:51 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.02.09 08:31:51 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.02.09 08:31:51 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
This isn’t my first upgrade, so I’m fairly confident I’ve followed all the steps; I also had to install Java version 17, but I’m confident that was available.
Any thoughts?