Issue while installing sonarqube CE 10.3 on Ubuntu 22.04

Hello,
I am getting below issue while installing and starting sonarqube. Installation is on Ubuntu 22.04 and 10.3 CE version. Can you please help

tail -f sonar.log 
2024.02.02 11:58:02 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2024.02.02 11:58:02 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2024.02.02 11:58:02 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
2024.02.02 11:58:40 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/sonarqube-10.3.0.82913/temp
2024.02.02 11:58:40 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:38899]
2024.02.02 11:58:40 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/sonarqube-10.3.0.82913/elasticsearch]: /usr/lib/jvm/java-19-openjdk-amd64/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=/opt/sonarqube/sonarqube-10.3.0.82913/elasticsearch -Des.path.conf=/opt/sonarqube/sonarqube-10.3.0.82913/temp/conf/es -Des.distribution.type=tar -cp /opt/sonarqube/sonarqube-10.3.0.82913/elasticsearch/lib/*:/opt/sonarqube/sonarqube-10.3.0.82913/elasticsearch/lib/cli-launcher/* org.elasticsearch.launcher.CliToolLauncher
2024.02.02 11:58:40 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2024.02.02 11:58:47 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2024.02.02 11:58:47 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2024.02.02 11:58:47 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

What do the other log files say? Specifically, I would start with es.log.

No logs are printing in es.log.
Getting below error in nohup.log

tail -100 nohup.log 
2024.02.02 16:48:58 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/sonarqube-10.3.0.82913/temp
2024.02.02 16:48:58 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:45639]
2024.02.02 16:48:58 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/sonarqube-10.3.0.82913/elasticsearch]: /usr/lib/jvm/java-19-openjdk-amd64/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=/opt/sonarqube/sonarqube-10.3.0.82913/elasticsearch -Des.path.conf=/opt/sonarqube/sonarqube-10.3.0.82913/temp/conf/es -Des.distribution.type=tar -cp /opt/sonarqube/sonarqube-10.3.0.82913/elasticsearch/lib/*:/opt/sonarqube/sonarqube-10.3.0.82913/elasticsearch/lib/cli-launcher/* org.elasticsearch.launcher.CliToolLauncher
2024.02.02 16:48:58 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
ERROR: Elasticsearch did not exit normally - check the logs at /opt/sonarqube/sonarqube-10.3.0.82913/logs/sonarqube.log

ERROR: Elasticsearch exited unexpectedly, with exit code 1
2024.02.02 16:49:05 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2024.02.02 16:49:05 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2024.02.02 16:49:05 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
root@guc1asoqubel01p:/opt/sonarqube/sonarqube-10.3.0.82913/logs# 

Hey there.

I’m not 100% sure this is the cause, but it looks like you’re using Java 19 while the server requirement is Java 17. Can you make sure you’re using a supported version of Java and see if the issue persists?