SonarQube doesn't start after migration from version 8.9

Make sure to tell us:

  • What version are you upgrading from? 8.9.6
  • System information (Operating system, Java version, Database provider/version) Ubuntu 22.04
  • What’s the issue you’re facing?

After an issue with the Java version (need to install openjdk-19 to fix it), SonarQube still doesn’t start with following lines in nohup.log:

2023.02.19 23:15:32 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonar/sonarqube-9.9.0/temp
2023.02.19 23:15:33 INFO  app[][] Elasticsearch listening on [HTTP:, TCP:]
2023.02.19 23:15:33 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonar/sonarqube-9.9.0/elasticsearch]: /opt/sonar/sonarqube-9.9.0/elasticsearch/bin/elasticsearch
2023.02.19 23:15:33 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Exception in thread "main" java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
	at java.base/java.lang.System.setSecurityManager(
	at org.elasticsearch.bootstrap.Security.setSecurityManager(
	at org.elasticsearch.bootstrap.Elasticsearch.main(
2023.02.19 23:15:33 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2023.02.19 23:15:33 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.02.19 23:15:33 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

Hey there.

To be clear – only Java 17 is supported as a runtime for SonarQube 9.9 LTS.

After reverting to Java 17, if you still face an issue, what do the logs say?

Great! It works fine with Java 17.
Thank you Colin!

1 Like