- What version are you upgrading from?
upgraded from SonarQube 9.8 to 9.9 - System information (Operating system, Java version, Database provider/version)
Windows Server 2022. JDK 17, database Microsoft SQL 2019 - What’s the issue you’re facing?
SonarQube service abruptly fails without any explanation.
Windows shows service is running. but we have to restart the service from the StartSonar.bat
All we can find is Thread failed unexpectedly in the windows application logs.
Hey there.
Can you share the full logs, and anything else you observe in the logs?
SonarLogs don’t show anything. only windows app logs report service is stopped. any particular log your looking for?
Whatever logs are showing you this.
E:\SonarQube\sonarqube-9.9.6.92038\bin\windows-x86-64>StartSonar.bat
Starting SonarQube…
2024.09.25 10:45:02 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory E:\SonarQube\sonarqube-9.9.6.92038\temp
2024.09.25 10:45:02 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:59651]
2024.09.25 10:45:02 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [E:\SonarQube\sonarqube-9.9.6.92038\elasticsearch]: C:\Program Files\Java\jdk-17\bin\java -XX:+UseG1GC -Djava.io.tmpdir=E:\SonarQube\sonarqube-9.9.6.92038\temp -XX:ErrorFile=E:\SonarQube\sonarqube-9.9.6.92038\logs\es_hs_err_pid%p.log -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djna.tmpdir=E:\SonarQube\sonarqube-9.9.6.92038\temp -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dio.netty.allocator.numDirectArenas=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j2.formatMsgNoLookups=true -Djava.locale.providers=COMPAT -Dcom.redhat.fips=false -Des.enforce.bootstrap.checks=true -Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=E:\SonarQube\sonarqube-9.9.6.92038\elasticsearch -Des.path.conf=E:\SonarQube\sonarqube-9.9.6.92038\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2024.09.25 10:45:02 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2024.09.25 10:45:13 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2024.09.25 10:45:13 INFO app[o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [E:\SonarQube\sonarqube-9.9.6.92038]: C:\Program Files\Java\jdk-17\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=E:\SonarQube\sonarqube-9.9.6.92038\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 -Dhttp.nonProxyHosts=localhost|127.|[::1] -cp ./lib/sonar-application-9.9.6.92038.jar;E:\SonarQube\sonarqube-9.9.6.92038\lib\jdbc\mssql\mssql-jdbc-11.2.2.jre17.jar org.sonar.server.app.WebServer E:\SonarQube\sonarqube-9.9.6.92038\temp\sq-process18389390661974378480properties
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/E:/SonarQube/sonarqube-9.9.6.92038/lib/sonar-application-9.9.6.92038.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
2024.09.25 10:45:26 INFO app[][o.s.a.SchedulerImpl] Process[web] is up
2024.09.25 10:45:26 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[COMPUTE_ENGINE] from [E:\SonarQube\sonarqube-9.9.6.92038]: C:\Program Files\Java\jdk-17\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=E:\SonarQube\sonarqube-9.9.6.92038\temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --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 -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.|[::1] -cp ./lib/sonar-application-9.9.6.92038.jar;E:\SonarQube\sonarqube-9.9.6.92038\lib\jdbc\mssql\mssql-jdbc-11.2.2.jre17.jar org.sonar.ce.app.CeServer E:\SonarQube\sonarqube-9.9.6.92038\temp\sq-process11763722973149487977properties
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/E:/SonarQube/sonarqube-9.9.6.92038/lib/sonar-application-9.9.6.92038.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
2024.09.25 10:45:33 INFO app[o.s.a.SchedulerImpl] Process[ce] is up
2024.09.25 10:45:33 INFO app[o.s.a.SchedulerImpl] SonarQube is operational
I did notice there is a warning before the error. both included below.
Warning:
Child process [4368 - C:\Program Files\Java\jdk-17\bin\java.exe -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.6.92038.jar” “org.sonar.application.App” ] finished with 0
Error:
Thread failed unexpectedly