I am using the Community version 8.9.0 in a docker-compose file with nginx, hosted on Ubuntu.
The database is an external SqlServer Db on Azure.
Today I decided to upgrade to the 9.9.0-community image.
Before doing that I did the usual apt update/upgrade commands. That wasn’t going smoothly, but I got docker running okay again.
I also made a copy of the database, as usual.
Then I pulled 9.9.0 and restarted the containers.
For some reason SQ came up with a default login prompt, no single sign-on. Also, it displayed messages about the need of getting a license to use an external database.
Then, I decided to rollback.
I restored the database and I went back to the 9.8.0-community image.
However, sonarqube doesn’t want to start:
“java.lang.IllegalStateException: cannot downgrade a node from version [7.17.8] to version [7.17.6]”
I tried to clean up as much as possible from the docker host, removed all my containers and images, but nothing helps. SQ keeps complaining about the ElasticSearch version.
Have I done something wrong? And more importantly, how can I get it working again?
I gave 9.9.0 a try again, and noticed that it uses the H2 database, instead of the external one.
This is my docker-compose file.
I have an .env file with the variables. I already tried to put them in the yml file directly, but that didn’t help SonarQube to use the external db.