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[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:43503]
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(System.java:425)
	at org.elasticsearch.bootstrap.Security.setSecurityManager(Security.java:99)
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:70)
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