Sonar Qube Installation Issues

Hi Team,

I have installed sonar qube 6.1 with postgres as the backend. Now when i am upgrading sonar qube version from 6.1 to LTS 7.9 with same postgres as backend. Also i have installed Java 11 SDK. But when i start StartSonar.bat file, i am not able to start the sonar web app and the process gets stopped. Below is the error that is getting logged:-

2020.06.25 01:24:05 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2020.06.25 01:24:05 INFO  app[][o.e.p.PluginsService] no modules loaded
2020.06.25 01:24:05 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020.06.25 01:24:27 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2020.06.25 01:24:27 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [C:\SonarQube\sonarqube-7.9.3]: C:\Program Files\Java\jdk-11.0.7\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8\SonarQube\sonarqube-7.9.3\temp --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/ --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/common/*;C:\SonarQube\sonarqube-7.9.3\lib\jdbc\postgresql\postgresql-42.2.5.jar C:\SonarQube\sonarqube-7.9.3\temp\sq-process3207228553999916470properties
2020.06.25 01:24:38 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
2020.06.25 01:24:38 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.06.25 01:24:38 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped


I’ve code-formatted your logs for you (``` on the line before and on the line after). It makes them much easier to read & thus it makes it easier to help you. :slightly_smiling_face:

You can’t upgrade from 6.1 directly to 7.9. You always need to hit any intervening LTSs in between your current and target versions. That means you need to do this:

6.1 -> 6.7.7 -> 7.9.3

Also, it looks like you’ve provided the sonar.log. That’s just a high-level summary. You’ll find the juicy bits in the other server logs.