Migrating Sonarqube 8.4.2-developer to 9.2.1-developer

I need to migrate sonarqube from version onarqube:8.4.2-developer to 9.2.1-developer. I am following the path as 8.4.2-developer => 8.9.1-developer =>latest

While migrating
from 8.4.2-developer => 8.9.1-developer, I am facing some errors.

What I have already tried:

  1. I have also deleted the folder $SONARQUBE_HOME/data/es7
  2. Checked SONAR/setup :: It shows “Database is up-to-date”

I am seeing the following error

sonarqube_1  | 2022.03.16 05:52:15 INFO  es[][o.e.n.Node] initialized
sonarqube_1  | 2022.03.16 05:52:15 INFO  es[][o.e.n.Node] starting ...
sonarqube_1  | 2022.03.16 05:52:15 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:37729}, bound_addresses {127.0.0.1:37729}
sonarqube_1  | 2022.03.16 05:52:15 INFO  es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
sonarqube_1  | 2022.03.16 05:52:15 INFO  es[][o.e.c.c.Coordinator] cluster UUID [mK912DoHTuSpP5sFvfEXLQ]
sonarqube_1  | 2022.03.16 05:52:15 INFO  es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{lcJR8-iHSHmgvYpY7ZQyQA}{LhZ9KL6qQL6ttwbPe6r87Q}{127.0.0.1}{127.0.0.1:37729}{dimr}{rack_id=sonarqube} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 2, version: 3, delta: master node changed {previous [], current [{sonarqube}{lcJR8-iHSHmgvYpY7ZQyQA}{LhZ9KL6qQL6ttwbPe6r87Q}{127.0.0.1}{127.0.0.1:37729}{dimr}{rack_id=sonarqube}]}
sonarqube_1  | 2022.03.16 05:52:15 INFO  es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{lcJR8-iHSHmgvYpY7ZQyQA}{LhZ9KL6qQL6ttwbPe6r87Q}{127.0.0.1}{127.0.0.1:37729}{dimr}{rack_id=sonarqube}]}, term: 2, version: 3, reason: Publication{term=2, version=3}
sonarqube_1  | 2022.03.16 05:52:15 INFO  es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
sonarqube_1  | 2022.03.16 05:52:15 INFO  es[][o.e.n.Node] started
sonarqube_1  | 2022.03.16 05:52:15 INFO  es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
sonarqube_1  | 2022.03.16 05:52:15 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
sonarqube_1  | 2022.03.16 05:52:15 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /opt/java/openjdk/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/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/sonar-application-8.9.1.44547.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.19.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process14115944141719773778properties
sonarqube_1  | 2022.03.16 05:52:16 INFO  web[][o.s.p.ProcessEntryPoint] Starting web
sonarqube_1  | 2022.03.16 05:52:16 INFO  web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
sonarqube_1  | 2022.03.16 05:52:16 INFO  web[][o.s.c.e.CoreExtensionsLoader] Loaded core extensions: developer-edition, developer-scanner, developer-server, license
sonarqube_1  | 2022.03.16 05:52:16 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://localhost:9001]
sonarqube_1  | 2022.03.16 05:52:17 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 8.9.1.44547 / d46c8de9adbb223e48c5bca3a7d1de7875d7ec12
sonarqube_1  | 2022.03.16 05:52:17 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://sonarqube-prod.cptsbjk04v5f.us-west-2.rds.amazonaws.com:5432/sonar
sonarqube_1  | 2022.03.16 05:52:18 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
sonarqube_1  | 2022.03.16 05:52:18 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
sonarqube_1  | 2022.03.16 05:52:18 WARN  web[][o.s.s.p.DatabaseServerCompatibility] The database must be manually upgraded. Please backup the database and browse /setup. For more information: https://docs.sonarqube.org/latest/setup/upgrading
sonarqube_1  | 2022.03.16 05:52:18 WARN  app[][startup] ################################################################################
sonarqube_1  | 2022.03.16 05:52:18 WARN  app[][startup] The database must be manually upgraded. Please backup the database and browse /setup. For more information: https://docs.sonarqube.org/latest/setup/upgrading
sonarqube_1  | 2022.03.16 05:52:18 WARN  app[][startup] ################################################################################
sonarqube_1  | 2022.03.16 05:52:18 ERROR app[][startup] Startup failed: Plugins can't be loaded. See web logs for more information
sonarqube_1  | 2022.03.16 05:52:18 ERROR web[][o.s.s.p.PlatformImpl] Web server startup failed: The following plugins are no longer compatible with this version of SonarQube: 'scmgit', 'scmsvn'
sonarqube_1  | 2022.03.16 05:52:18 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
sonarqube_1  | 2022.03.16 05:52:18 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process
sonarqube_1  | 2022.03.16 05:52:18 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
sonarqube_1  | 2022.03.16 05:52:18 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
sonarqube_1  | 2022.03.16 05:52:18 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
sonarqube_1  | 2022.03.16 05:52:18 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
sonar_sonarqube_1 exited with code 0

Hi @qurrat and welcome to the community :wave:

you will need to remove both of these plugins as they are embedded starting from 8.5. after that you should be able to start the first migration.
you can find more information about this in the LTS to LTS upgrade notes or in this guide here.

hope that helps :slight_smile:

Now I am getting. the following errors after removing those plugins. Do I need to remove these as. well sonar-abap-plugin-3.8.0.2034.jar’ & CFamily Code Quality and Security

Startup failed: Plugins can't be loaded. See web logs for more information
sonarqube_1  | 2022.03.18 18:36:47 ERROR web[][o.s.s.p.PlatformImpl] Web server startup failed: Found a plugin 'SonarABAP' in the directory 'extensions/plugins' with the same key [abap] as a built-in feature 'ABAP Code Quality and Security'. Please remove 'extensions/plugins/sonar-abap-plugin-3.8.0.2034.jar'.
sonarqube_1  | 2022.03.18 18:36:47 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
sonarqube_1  | 2022.03.18 18:36:47 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process
sonarqube_1  | 2022.03.18 18:36:47 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
sonarqube_1  | 2022.03.18 18:36:47 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
sonarqube_1  | 2022.03.18 18:36:47 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
sonarqube_1  | 2022.03.18 18:36:47 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

=================================
eb server startup failed: Found a plugin 'CFamily Code Quality and Security' in the directory 'extensions/plugins' with the same key [cpp] as a built-in feature 'CFamily Code Quality and Security'. Please remove 'extensions/plugins/sonar-cfamily-plugin-6.9.0.17076.jar'.
sonarqube_1  | 2022.03.18 18:44:50 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
sonarqube_1  | 2022.03.18 18:44:50 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process
sonarqube_1  | 2022.03.18 18:44:50 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
sonarqube_1  | 2022.03.18 18:44:50 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
sonarqube_1  | 2022.03.18 18:44:50 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143

Yes. Please check out the guide or LTS to LTS upgrade notes for more information on this

Thanks,
I removed all the plugins and then tried upgraded it to 8.9.1. Than worked for me

Hi,
I have successfully upgraded the version to 8.9.2.
Now I am seeing the following error by upgrading it to 9.2.1-developer


Recreating sonar_sonarqube_1 ... done
Attaching to sonar_sonarqube_1
sonarqube_1  | Dropping Privileges
sonarqube_1  | 2022.03.24 17:40:26 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
sonarqube_1  | 2022.03.24 17:40:26 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:45305]
sonarqube_1  | 2022.03.24 17:40:26 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
sonarqube_1  | could not find java in ES_JAVA_HOME at /usr/lib/jvm/java-11-openjdk/bin/java
sonarqube_1  | 2022.03.24 17:40:26 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
sonarqube_1  | 2022.03.24 17:40:26 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
sonarqube_1  | 2022.03.24 17:40:26 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
sonarqube_1  | 2022.03.24 17:40:26 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

What I have already tried is
`Added Security-opt in docker compose as

  security_opt:
      - "seccomp=/path/to/seccomp/profile.json"

Hi,

This is a new topic. Please create a new thread.

 
Thx,
Ann

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