Change SonarQube Edition from Community to Developer - Elasticsearch Downgrade Issue

  • SonarQube Versions:
    • Current: sonarqube:community Docker image (Digest: 1792e787f1dc)
    • Target: sonarqube:developer Docker image (Digest: 19c8d0f913b4)
  • Deployment Method: Docker
  • What are you trying to achieve?
    • Upgrading from SonarQube Community Edition to Developer Edition
  • What have you tried so far to achieve this?
    • Changed the Docker image from sonarqube:community to sonarqube:developer
    • Faced the error:
elasticsearch cannot downgrade a node from version [8.16.3] to version [8.16.1]
  • Checked Elasticsearch versions but unsure how to proceed

Request for Assistance

Could you please provide guidance on resolving this issue? Specifically:

  • Any recommended troubleshooting steps
  • Upgrade procedures to ensure a smooth transition
  • Best practices for migrating from Community to Developer edition without Elasticsearch version conflicts

Any insights or documentation references would be greatly appreciated!

Thank you in advance. :rocket:

Hey there.

To clear the Elasticsearch issue, you just need to clear the /es8/ directory from the persistent volume holding your SonarQube Server’s /data/ directory, but this will ultimately just lead you to another issue.

Because the currently released version of SonarQube Community Build is newer than the latest version of SonarQube Server (Developer Edition), migrating from the latest version of Community Build is not currently possible. (docs).

To move to Developer Edition, you’ll either have to start from scratch or wait for the next release of SonarQube Server, slated for March.