Sonarqube keep on restarting on loop

I have sonarqube setup in linux(ubuntu) machine with azure postgres server and Azure fileshare mount for /data, /log and /extensions

Web.log

The /mount/sdsonarqubestorage/sonarvmdata is an azure storage fileshare which I have mounted

Sonar.log

2021.10.21 00:07:35 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2021.10.21 00:07:35 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:33255]
2021.10.21 00:07:36 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2021.10.21 00:07:36 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2021.10.21 00:08:28 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2021.10.21 00:08:28 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 --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.1.0.47736.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.19.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process14128922866500896740properties
2021.10.21 00:08:49 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
2021.10.21 00:08:49 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2021.10.21 00:08:49 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021.10.21 00:08:49 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
2021.10.21 00:08:51 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2021.10.21 00:08:51 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:44883]
2021.10.21 00:08:52 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2021.10.21 00:08:52 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2021.10.21 00:09:41 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2021.10.21 00:09: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 --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.1.0.47736.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.19.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process2957746212980503187properties
2021.10.21 00:10:03 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
2021.10.21 00:10:03 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2021.10.21 00:10:03 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped

Hi,

At a guess, your installation got messed up. You should try re-expanding the zip. Of course you’ll need to reconfigure $SONARQUBE-HOME/conf/sonar.properties.

As to why this is happening in a loop, it appears that you’ve set SonarQube up as a service so the OS keeps trying to start this service it’s supposed to have running, but something (a corrupted plugin/library) keeps that from happening properly.

 
Ann

2 Likes

This is exactly happening to me, fresh install, did wat G Ann Campbell suggested a couple of times and still having issues with loops of start/stop/start creating different pids and not working

Unzip it for a third time and this time worked, I had backed up the conf folder so just brought those from the backup

Many thanks

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.