I faced the problem on the setup of SonarQube 8 Developer Edition.
Here are the details:
2019.10.25 10:45:55 INFO web[][o.s.p.ProcessEntryPoint] Starting web
2019.10.25 10:45:56 INFO web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2019.10.25 10:45:56 INFO web[][o.s.c.e.CoreExtensionsLoader] Loaded core extensions: developer-edition, developer-scanner, developer-server, license
2019.10.25 10:45:56 INFO web[][o.e.p.PluginsService] no modules loaded
2019.10.25 10:45:56 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2019.10.25 10:45:56 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2019.10.25 10:45:56 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2019.10.25 10:45:57 INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2019.10.25 10:45:57 INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 8.0.0.29455 / f869d840f12a4dfa69533e17d3b27558617a7f82
2019.10.25 10:45:57 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://
2019.10.25 10:45:58 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2019.10.25 10:45:58 INFO web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2019.10.25 10:45:58 ERROR web[][o.s.s.p.PlatformImpl] Web server startup failed: Current version is too old. Please upgrade to Long Term Support version firstly.
2019.10.25 10:45:59 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2019.10.25 10:45:59 INFO web[][o.s.p.ProcessEntryPoint] Hard stopping process
Is it related to SQ’s internals (Tomcat version), or the fault is on my side?
It sounds like you’re trying to upgrade from a version that’s older than 7.9. You can upgrade across multiple versions, but you can’t skip any LTSs in the middle.
Can you verify that there’s not an overlooked old sonar or sonarqube schema in the database you’re pointing the docker image to? Because that’s what the error you’re getting indicates: the database has already been used with an old version of SonarQube.