Upgrade from 6.2 to 7.9.2 LTS - Web Server too old

Hi

I am trying to upgrade SonarQube server from version 6.2 to 7.9.2 LTS.
I have followed the [Upgrade page] (https://docs.sonarqube.org/7.9/setup/upgrading/).
I am working on Windows Server 2012 with OpenJDK 11.
I have installed the Windows service with the batch file and modified it to execute with Admin account.
I have also assigned ownership of the sonarqube-7.9.2 folder to the admin account.

When I start the service all looks great and it start up, but then stops after a few seconds.
sonar.log:

--> Wrapper Started as Service
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

2020.03.19 19:07:55 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory G:\ProgramFiles\sonarqube-7.9.2\temp
2020.03.19 19:07:55 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2020.03.19 19:07:56 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [G:\ProgramFiles\sonarqube-7.9.2\elasticsearch]: C:\Program Files\Java\jdk-11.0.2\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=G:\ProgramFiles\sonarqube-7.9.2\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -Des.enforce.bootstrap.checks=true -Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=G:\ProgramFiles\sonarqube-7.9.2\elasticsearch -Des.path.conf=G:\ProgramFiles\sonarqube-7.9.2\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2020.03.19 19:07:56 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.
2020.03.19 19:07:56 INFO  app[][o.e.p.PluginsService] no modules loaded
2020.03.19 19:07:56 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.03.19 19:08:06 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2020.03.19 19:08:06 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [G:\ProgramFiles\sonarqube-7.9.2]: C:\Program Files\Java\jdk-11.0.2\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=G:\ProgramFiles\sonarqube-7.9.2\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/*;G:\ProgramFiles\sonarqube-7.9.2\lib\jdbc\mssql\mssql-jdbc-7.2.2.jre11.jar org.sonar.server.app.WebServer G:\ProgramFiles\sonarqube-7.9.2\temp\sq-process11312637923052759197properties
2020.03.19 19:08:12 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
2020.03.19 19:08:13 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2020.03.19 19:08:13 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.03.19 19:08:13 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped

es.log:

2020.03.19 19:07:58 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[New Volume (G:)]], net usable_space [1.7gb], net total_space [19.9gb], types [NTFS]
2020.03.19 19:07:58 INFO  es[][o.e.e.NodeEnvironment] heap size [494.9mb], compressed ordinary object pointers [true]
2020.03.19 19:07:58 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [3V1kYIvcTOmh_pLXxOyMNQ]
2020.03.19 19:07:58 INFO  es[][o.e.n.Node] version[6.8.0], pid[5004], build[unknown/unknown/65b6179/2019-05-15T20:06:13.172855Z], OS[Windows Server 2012/6.2/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/11.0.2/11.0.2+9]
2020.03.19 19:07:58 INFO  es[][o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=G:\ProgramFiles\sonarqube-7.9.2\temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Des.enforce.bootstrap.checks=true, -Xms512m, -Xmx512m, -XX:+HeapDumpOnOutOfMemoryError, -Delasticsearch, -Des.path.home=G:\ProgramFiles\sonarqube-7.9.2\elasticsearch, -Des.path.conf=G:\ProgramFiles\sonarqube-7.9.2\temp\conf\es]
2020.03.19 19:07:59 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2020.03.19 19:07:59 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2020.03.19 19:07:59 INFO  es[][o.e.p.PluginsService] loaded module [mapper-extras]
2020.03.19 19:07:59 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2020.03.19 19:07:59 INFO  es[][o.e.p.PluginsService] loaded module [percolator]
2020.03.19 19:07:59 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2020.03.19 19:07:59 INFO  es[][o.e.p.PluginsService] loaded module [repository-url]
2020.03.19 19:07:59 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2020.03.19 19:07:59 INFO  es[][o.e.p.PluginsService] no plugins loaded
2020.03.19 19:08:01 WARN  es[][o.e.d.c.s.Settings] [http.enabled] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
2020.03.19 19:08:02 INFO  es[][o.e.d.DiscoveryModule] using discovery type [zen] and host providers [settings]
2020.03.19 19:08:02 INFO  es[][o.e.n.Node] initialized
2020.03.19 19:08:02 INFO  es[][o.e.n.Node] starting ...
2020.03.19 19:08:03 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2020.03.19 19:08:03 INFO  es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2020.03.19 19:08:06 INFO  es[][o.e.c.s.MasterService] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {sonarqube}{3V1kYIvcTOmh_pLXxOyMNQ}{eYFeCqdTSJu4hGEZHYY0Fg}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}
2020.03.19 19:08:06 INFO  es[][o.e.c.s.ClusterApplierService] new_master {sonarqube}{3V1kYIvcTOmh_pLXxOyMNQ}{eYFeCqdTSJu4hGEZHYY0Fg}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: apply cluster state (from master [master {sonarqube}{3V1kYIvcTOmh_pLXxOyMNQ}{eYFeCqdTSJu4hGEZHYY0Fg}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
2020.03.19 19:08:06 INFO  es[][o.e.n.Node] started
2020.03.19 19:08:06 INFO  es[][o.e.g.GatewayService] recovered [0] indices into cluster_state

web.log:

2020.03.19 19:08:06 INFO  web[][o.s.p.ProcessEntryPoint] Starting web
2020.03.19 19:08:07 INFO  web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2020.03.19 19:08:08 INFO  web[][o.e.p.PluginsService] no modules loaded
2020.03.19 19:08:08 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2020.03.19 19:08:08 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2020.03.19 19:08:08 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.03.19 19:08:10 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2020.03.19 19:08:10 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 7.9.2.30863 / cd30425aa0b4e62c39b57c81d64be16e365f6d83
2020.03.19 19:08:10 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:sqlserver://localhost;databaseName=SonarQube
2020.03.19 19:08:11 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: G:\ProgramFiles\sonarqube-7.9.2
2020.03.19 19:08:11 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2020.03.19 19:08:11 ERROR web[][o.s.s.p.Platform] Web server startup failed: Current version is too old. Please upgrade to Long Term Support version firstly.
2020.03.19 19:08:12 WARN  web[][o.a.c.u.SessionIdGeneratorBase] Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [102] milliseconds.
2020.03.19 19:08:12 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2020.03.19 19:08:12 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process

My question is how exactly do you upgrade the web server?
Is 7.9.2 not and LTS version? Should I install 7.9.0 first and then 7.9.2?

It was and oversight on the LTS versions. Version 6.7.7 is not clearly marked as an LTS on the website, so it seems that I need to do 6.7.7 first before going to 7.9.2.

Hi,

Welcome to the community!

7.9.2 is the current LTS. 6.7.x was the LTS before it. You can’t skip over old LTSs; you have to hit each one between where you’re starting from and where you want to go.

Specifically, you’ll need to upgrade to 6.7.7, and then to 7.9.2.

 
HTH,
Ann

1 Like

Good point! I’ll see what I can do about that…

 
Thx!
Ann