Errors during startup

Hi All,

I am trying to upgrade sonarqube from 5.6.3 version to the latest version(8.4.2). While starting the sonarqube server, i am getting below message in sonar.log

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

2020.09.29 11:54:48 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/cia/sonarqube-8.4.2.36762/temp
2020.09.29 11:54:48 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2020.09.29 11:54:48 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/cia/sonarqube-8.4.2.36762/elasticsearch]: /opt/cia/sonarqube-8.4.2.36762/elasticsearch/bin/elasticsearch
2020.09.29 11:54:48 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2020.09.29 11:54:48 INFO  app[][o.e.p.PluginsService] no modules loaded
2020.09.29 11:54:48 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.09.29 11:54:58 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2020.09.29 11:54:58 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/cia/sonarqube-8.4.2.36762]: /opt/cia/java/jdk-11.0.8/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/cia/sonarqube-8.4.2.36762/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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/common/*:/opt/cia/sonarqube-8.4.2.36762/extensions/jdbc-driver/oracle/ojdbc6.jar org.sonar.server.app.WebServer /opt/cia/sonarqube-8.4.2.36762/temp/sq-process10493003962511578214properties
2020.09.29 11:55:18 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
2020.09.29 11:55:18 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2020.09.29 11:55:18 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.09.29 11:55:18 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped

I suspect it due to elasticsearch as it is also stopped without any error. Below are the logs in es.log

2020.09.29 11:54:52 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2020.09.29 11:54:52 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2020.09.29 11:54:52 INFO  es[][o.e.p.PluginsService] loaded module [mapper-extras]
2020.09.29 11:54:52 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2020.09.29 11:54:52 INFO  es[][o.e.p.PluginsService] loaded module [percolator]
2020.09.29 11:54:52 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2020.09.29 11:54:52 INFO  es[][o.e.p.PluginsService] loaded module [repository-url]
2020.09.29 11:54:52 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2020.09.29 11:54:52 INFO  es[][o.e.p.PluginsService] no plugins loaded
2020.09.29 11:54:54 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.09.29 11:54:54 INFO  es[][o.e.d.DiscoveryModule] using discovery type [zen] and host providers [settings]
2020.09.29 11:54:54 INFO  es[][o.e.n.Node] initialized
2020.09.29 11:54:54 INFO  es[][o.e.n.Node] starting ...
2020.09.29 11:54:55 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2020.09.29 11:54:55 INFO  es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2020.09.29 11:54:58 INFO  es[][o.e.c.s.MasterService] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {sonarqube}{48WC26dETnakctKeCt8XRw}{i0tK5d0iThG61PMTtCqf_A}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}
2020.09.29 11:54:58 INFO  es[][o.e.c.s.ClusterApplierService] new_master {sonarqube}{48WC26dETnakctKeCt8XRw}{i0tK5d0iThG61PMTtCqf_A}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: apply cluster state (from master [master {sonarqube}{48WC26dETnakctKeCt8XRw}{i0tK5d0iThG61PMTtCqf_A}{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.09.29 11:54:58 INFO  es[][o.e.n.Node] started
2020.09.29 11:54:58 INFO  es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2020.09.29 11:55:18 INFO  es[][o.e.n.Node] stopping ...
2020.09.29 11:55:18 INFO  es[][o.e.n.Node] stopped
2020.09.29 11:55:18 INFO  es[][o.e.n.Node] closing ...
2020.09.29 11:55:18 INFO  es[][o.e.n.Node] closed

Request you to help on this.

Hi @yogesh_kumar, welcome to the SonarSource Community!

The real error is probably sitting in your web.log file. My guess is that you tried to upgrade directly to 8.4.2. A direct upgrade from such an old instance of SonarQube isn’t supported; we only maintain the database migration scripts from one LTS release of SonarQube to another.

As mentioned in the upgrade docs, you must at least temporarily install and run each intermediary LTS release on your way to the latest SonarQube. In your case, it means you need to

  • upgrade to 6.7.7
  • upgrade to 7.9.4
  • upgrade to 8.4.2

Thanks @Jeff_Zapotoczny : I’ll try to upgrade in sequence as mentioned by you.

  • upgrade to 6.7.7
  • upgrade to 7.9.4
  • upgrade to 8.4.2

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