SonarQube upgrade failing

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension). :- sonarqube Version 8.6 (build 39681).
  • what are you trying to achieve. :- I am upgrading sonarqube from Version 8.6 (build 39681) to sonarqube-9.2.4.50792
  • what have you tried so far to achieve this. :- as of now i have tried all the explanton shown on net.
    while installing the sonarqueb from 8.6 version to 9.2 version, we are trying to intergerate it with RDS cluster.
    we have created the Db and coped the data from old db.
    while starting the sonarqube its failing .
    web.log error :-
    2022.02.14 12:04:44 INFO web[o.s.p.ProcessEntryPoint] Starting web
    2022.02.14 12:04:45 INFO web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
    2022.02.14 12:04:46 INFO web[o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://localhost:9001]
    2022.02.14 12:04:46 INFO web[o.s.s.p.LogServerVersion] SonarQube Server / 9.2.4.50792 / 78f7113cee15b2bd37a958455271e68f1244cb7b
    2022.02.14 12:04:46 INFO web[o.sonar.db.Database] Create JDBC data source for jdbc:postgresql:/
    2022.02.14 12:04:48 INFO web[o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
    2022.02.14 12:04:48 INFO web[o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
    2022.02.14 12:04:48 ERROR web[o.s.s.p.PlatformImpl] Web server startup failed: Current version is too old. Please upgrade to Long Term Support version firstly.
    2022.02.14 12:04:48 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
    2022.02.14 12:04:48 INFO web[o.s.p.ProcessEntryPoint] Hard stopping process

Hi @aniket_gaurav

you need to upgrade to the latest LTS before updating to 9.x, so you upgrade path would look something like this

8.6 → 8.9 → 9.3

you may find our documentation regarding upgrade helpful

1 Like

Hi Tobias,
Thank you for the responce. My Sonarqube is now up and runnign. but the projects scan are not showing.
when i am seeing the log. its giving below details.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘config’ version : 1.1.0.185 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘csharp’ version : 8.32.0.39516 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘flex’ version : 2.6.2.2641 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘go’ version : 1.8.3.2219 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘iac’ version : 1.4.0.1294 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘jacoco’ version : 1.1.1.1157 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘java’ version : 7.5.0.28054 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘javascript’ version : 8.6.0.16913 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘kotlin’ version : 2.7.0.948 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘php’ version : 3.21.2.8292 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘python’ version : 3.8.0.8883 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘ruby’ version : 1.8.3.2219 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘sonarscala’ version : 1.8.3.2219 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘vbnet’ version : 8.32.0.39516 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘web’ version : 3.4.0.2754 has not been found on the update center.
2022.02.14 21:17:46 INFO web[AX76GQ4VdHjmy5a/AAAO][o.s.u.c.UpdateCenter] The plugin ‘xml’ version : 2.4.0.3273 has not been found on the update center.

is it because of this scans are not shwoing. From where i can update the plugins and how. an explanation will be helpfull.

These are all embedded plugins as you can see in our version matrix, so it is intended that they are not found in the update center.
Regarding the scans that are not showing up, are you talking about new scans or historic once?

hi Tobias,

since we have taken the snapshot of the old RDS database i.e 8.6(postgreql) and tranfered it to new one with 9.2.4.
so while sonar queb is up and running. the 1st page after login is showing blank and asked me to create new project. while i assume it should load the data from RDS data base.

Ah thanks for clarifying this point. This is usually an indicator that sonarqube is not properly configured to your database. can you check if there is actual data in your database and that sonarqube is configured to connect to the correct database/table?

i believe yes, data base is having data data and i am trying to connect right DB.
because when i am trying to point the sonarqueb (sonar.properties) to version 9.0.0 to the same DB all are visible and everyting look fine.
but when i am trying to point the sonarqube(sonar.properties) to 9.2.4 :- then this issue is arising.
is there any pluging version difference in both the upgrade?

well yeah all embedded plugins are updated but this is not related to your error.
were you prompted to start a database migration when you first started up your sonarqube 9.2.4 instance with the connection to the database from 9.0? like go to http://yoursonarqubeurl/setup and start a migration process?

yes . i updated the DB too. once i migrated to v9.0 i updated the data base from the link mentioned by. you. and then i moved to 9.2.4 and again updated the DB. now when i am clinking on the lin it sayd. “D Database is up-to-date”

it’s still not clear to me if you ran a database migration from 9.0 → 9.2.4 or if SonarQube just stated that the database is up to date. can you clarify this?
On a sidenote: your messages are very hard to read due to all the typos :confused:

hi Tobias,
i am really sorry my typos. Will surely take care or it.
once i started my 9.2.4 sonarqube . i got the warning in my log "05:29:05 WARN app[][startup] The database must be manually upgraded. Please backup the database …upgrading"
so i went to http://yoursonarqubeurl/setup and updated the database. once i updated the database i got message on screen.

now it reboot the sonarqube url automatically. i am loggin in with username and password.
and my home is blank,its not showing any of the projects