Unable to upgrade from v7.5 to v8.1


I deployed a SonarQube Server on an Azure VM using the lab here:
Setup SonarQube Server on Azure VM | Azure DevOps Hands-on-Labs

I followed the entire tutorial and had SonarQube succesfully running and scanning code.
I requested a trial as we want to try the developer edition to decorate pull requests on Azure Devops, and have been trying to upgrade the server, but haven’t been able to yet.

This is what I did to upgrade:

  • Install java 11
  • Change the path to java 11 (java -version now returning v11)
  • Install v8.1 into C:\SonarQube\sonarqube-
  • Modify values in conf\sonar and conf\wrapper to reflect values in v7.5
  • Stopped the server in C:\SonarQube\sonarqube-7.5 using bin/stopntservice
  • Start the server in C:\SonarQube\sonarqube- using bin/startsonar

This fails, and the exception messages aren’t giving me too much to go off on.
The only actual error message says: 2020.02.18 07:03:07 ERROR web[o.s.s.p.PlatformImpl] Web server startup failed: Current version is too old. Please upgrade to Long Term Support version firstly.

A small extract from logs/sonar:
‘’’ 2020.02.18 07:07:42 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2020.02.18 07:07:42 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘web’, ipcIndex=2, logFilenamePrefix=web]] from [C:\SonarQube\sonarqube-]: C:\Program Files\Java\jdk-11.0.6\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\SonarQube\sonarqube-\temp --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/common/;C:\SonarQube\sonarqube-\lib\jdbc\mssql\mssql-jdbc-7.2.2.jre11.jar org.sonar.server.app.WebServer C:\SonarQube\sonarqube-\temp\sq-process14067386150826390065properties
2020.02.18 07:07:55 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped
2020.02.18 07:07:55 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped’’’

I’m unable to attach all logs since they contain too many urls.

Any ideas as to what I’m doing wrong?
v7.5 works fine, but I’m unable to get v8.1 to even start.

Kind regards, Laila

Hi @Laila_Bougria,

the correct upgrade path is 7.5 --> 7.9 LTS --> 8.1, that’s why you haven’t succeeded in using 8.1 version directly. and that’s what the error is saying as well: “Please upgrade to Long Term Support version firstly.”
LTS 7.9 is available here, under the “Long Term Support” paragraph, below.


Oh, that wasn’t clear to me from the error message, my bad.
Got it to work now, thanks!

1 Like