Hey guys
I installed sonarqube 8.6 following the documentation and I’m having the following error:
After executing the command:
sudo systemctl start sonar.service
Only Elasticsearch is initialized at localhost:9001. Below is the opt/sonarqube/logs log
--> Wrapper Started as Daemon
Launching the JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2024.04.10 12:31:38 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2024.04.10 12:31:38 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:42433]
2024.04.10 12:31:38 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/ elasticsearch/bin/elasticsearch
2024.04.10 12:31:38 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2024.04.10 12:31:41 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2024.04.10 12:31:41 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /usr/lib/jvm/ java-11-openjdk-amd64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/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 -Xmx2048m -Xms2048m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/common/*: /opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.17.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process11286657274784187144properties
When I try to access localhost:9000 to view the Sonar webserver, I only get a generic browser error.
I believe the sonar itself is not running
Checking the ports in use with the command
sudo netstat -tulpn
I only see the service on port 9001 of the ELK, but no use of port 9000.
Below is my configuration file
#--------------------------------------------------------------------------------------------------
# WEB SERVER
sonar.web.host=127.0.0.1
sonar.web.port=9000
sonar.web.http.maxThreads=50
sonar.web.http.minThreads=5
sonar.web.http.acceptCount=25
sonar.ajp.port=-1
#--------------------------------------------------------------------------------------------------
# Google SSO
#sonar.core.serverBaseURL=https://sonar.financial.esales.dev
#--------------------------------------------------------------------------------------------------
# COMPUTE ENGINE
sonar.ce.workerCount=1
#--------------------------------------------------------------------------------------------------
# ELASTICSEARCH
sonar.search.javaOpts=-Xmx2G -Xms2G -Djava.net.preferIPv4Stack=true -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiati>
sonar.search.javaAdditionalOpts=
sonar.search.port=9001
sonar.search.host=127.0.0.1