Getting errors in sonarqube 9.9 LTS upgrade

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • Was using 9.5 and just upgraded to 9.9 LTS
  • what are you trying to achieve
  • Run the upgraded version of sonarqube 9.9


I just installed my sonarqube from 9.5 to 9.9 and seeing errors in log files generated by sonarqube. When I execute the following commands serially “systemctl daemon-reload”, and “systemctl status sonarqube.service”, it succeeds but get some warnings, as seen in the screenshot below. Also, the website runs but says the “Sonarqube under maintainance”.

But, as soon as I run the “./ start” the website doesnt work anymore, it says “502 bad gateway”. Also, I get the following output:

I caught two errors in log files. Looking at the sonar.log, it says “connection refused”. Next, looking at es.log shows “org.elasticsearch.bootstrap” is trying to run under the root. But I have already run the following command “chown -R sonar:sonar /opt/sonarqube/”, and checked that the sonarqube directory is assigned sonar as user and group, as shown in the picture below and also the sonarqube.service file has both group and user as “sonar”.

I have attached all fresh logs generated by the sonarqube.

Also, I had updated my java to “openjdk 17.0.6 2023-01-17 LTS”


sonar.log (321.7 KB)
nohup.log (80.9 KB)
es.log (141.2 KB)
web.log (1.1 MB)
sonarqube.service.txt (429 Bytes)

Hey there.

You just need to move to the next step of the upgrade guide:

  1. Browse to http://yourSonarQubeServerURL/setup and follow the setup instructions

Thanks, Colin. I did that and now my sonarqube is running. The whole reason I updated my sonarqube from 9.5 to 9.9 was to be able to download a latest build wrapper which is 9.9. But, when I
follow the step “*** Download Build Wrapper for Linux from {SonarQube URL}/static/cpp/**”, it keeps downloading 6.34 version which I had with sonarqube 9.5. I have a thread open regarding an issue where I was suggested to upgrade my sonarqube in order to grab a new build wrapper. Updated to a new compiler and getting "The "build-wrapper-dump.json" file was found empty."