Try to run SonarQube 8.9
psql (PostgreSQL) 13.8 (Ubuntu 13.8-1.pgdg20.04+1)
Linux 5.4.0-124-generic #140-Ubuntu SMP Thu Aug 4 02:23:37 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Followed the documentation here: Install the Server | SonarQube Docs
and this article Install SonarQube on Ubuntu 21 Using PostgreSQL | by Bharathiraja | CodeX | Medium
I have found no issues found during the install but the process is continually restarting, this is a POC for work and is stopping the demo
systemctl status sonarqube.service
Every 2.0s: systemctl status sonarqube.service
● sonarqube.service - SonarQube service
Loaded: loaded (/etc/systemd/system/sonarqube.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-10-06 18:36:48 CEST; 12s ago
Process: 72709 ExecStart=/var/sonarqube/bin/linux-x86-64/sonar.sh start (code=exited, status=0/SUCCESS)
Main PID: 72758 (wrapper)
Tasks: 81 (limit: 2274)
Memory: 767.2M
CGroup: /system.slice/sonarqube.service
├─72758 /var/sonarqube/bin/linux-x86-64/./wrapper /var/sonarqube/bin/linux-x86-64/…/…/conf/wrapper.conf wrapper.syslog.ident=SonarQube wrapper.pidfil
e=/var/sonarqube/bin/linux-x86-64/./SonarQube.pid wrapper.daemonize=TRUE
├─72760 java -Dsonar.wrapped=true -Djava.awt.headless=true -Xms8m -Xmx32m -Djava.library.path=./lib -classpath …/…/lib/sonar-application-8.9.9.56886.
jar:…/…/lib/jsw/wrapper-3.2.3.jar:…/…/lib/sonar-shutdowner-8.9.9.56886.jar -Dwrapper.key=IgEvQboj52FB4aRA -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwr
apper.jvm.port.max=31999 -Dwrapper.pid=72758 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wrapper -Dwrapper.service=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmi
d=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.sonar.application.App
├─72789 /usr/lib/jvm/java-11-openjdk-amd64/bin/java -XX:+UseG1GC -Djava.io.tmpdir=/var/sonarqube/temp -XX:ErrorFile=…/logs/es_hs_err_pid%p.log -Des.ne
tworkaddress.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=/var/sonarqube/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 -
Des.enforce.bootstrap.checks=true -Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError -Des.path.home=/var/sonarqube/elasticsearch -Des.path.conf=/var/sonarqube/temp/c
onf/es -Des.distribution.flavor=default -Des.distribution.type=tar -Des.bundled_jdk=false -cp /var/sonarqube/elasticsearch/lib/* org.elasticsearch.bootstrap.Elastic
search
└─73042 /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/var/sonarqube/temp -XX:-OmitStackT
raceInFastThrow --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.r
mi/sun.rmi.transport=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-8.9.9.5688
6.jar:/var/sonarqube/lib/jdbc/postgresql/postgresql-42.3.3.jar org.sonar.server.app.WebServer /var/sonarqube/temp/sq-process10926185545712751474properties
Oct 06 18:36:47 qetactub02.hosting.cegedim.cloud sonar.sh[72709]: Starting SonarQube…
Oct 06 18:36:48 qetactub02.hosting.cegedim.cloud sonar.sh[72709]: Started SonarQube.
##########
tail -n 60 sonar.20221006.log
→ Wrapper Started as Daemon
Launching a JVM…
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2022.10.06 18:10:48 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /var/sonarqube/temp
2022.10.06 18:10:48 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:33115]
2022.10.06 18:10:48 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/var/sonarqube/elasticsearch]: /var/sonarqube/elasticsearch/bin/elasticsearch
2022.10.06 18:10:48 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
2022.10.06 18:10:59 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2022.10.06 18:10:59 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘web’, ipcIndex=2, logFilenamePrefix=web]] from [/var/sonarqube]: /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/var/sonarqube/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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-8.9.9.56886.jar:/var/sonarqube/lib/jdbc/postgresql/postgresql-42.3.3.jar org.sonar.server.app.WebServer /var/sonarqube/temp/sq-process1049342823151490827properties
2022.10.06 18:11:00 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped
2022.10.06 18:11:00 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2022.10.06 18:11:00 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2022.10.06 18:11:00 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
← Wrapper Stopped
→ Wrapper Started as Daemon
Launching a JVM…
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2022.10.06 18:11:03 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /var/sonarqube/temp
2022.10.06 18:11:03 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:37509]
2022.10.06 18:11:03 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/var/sonarqube/elasticsearch]: /var/sonarqube/elasticsearch/bin/elasticsearch
2022.10.06 18:11:03 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
2022.10.06 18:11:10 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2022.10.06 18:11:10 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘web’, ipcIndex=2, logFilenamePrefix=web]] from [/var/sonarqube]: /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/var/sonarqube/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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-8.9.9.56886.jar:/var/sonarqube/lib/jdbc/postgresql/postgresql-42.3.3.jar org.sonar.server.app.WebServer /var/sonarqube/temp/sq-process12163802747718708513properties
2022.10.06 18:11:11 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped
2022.10.06 18:11:11 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2022.10.06 18:11:11 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2022.10.06 18:11:11 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
← Wrapper Stopped
→ Wrapper Started as Daemon
Launching a JVM…
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2022.10.06 18:11:14 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /var/sonarqube/temp
2022.10.06 18:11:14 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:45775]
2022.10.06 18:11:14 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/var/sonarqube/elasticsearch]: /var/sonarqube/elasticsearch/bin/elasticsearch
2022.10.06 18:11:14 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release