Upgrading SonarQube

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) - Developer Edition v9.9.6 (build 92038)
  • how is SonarQube deployed: Docker
  • what are you trying to achieve - update to LTA
  • what have you tried so far to achieve this - Tried 2025.1.3.110580 and updated postgresql to v17 but it failed to read the historical data from docker volumes even if they are persisted, I lose admin rights, license etc

services:

sonarqube:

image: sonarqube:${VERSION}

restart: unless-stopped

depends_on:

  postgresql:

    condition: service_healthy

links:

  - postgresql:db

ports:

  - "9000:9000"

environment:

  - BIND_PW

  - BIND_DN

  - SONARQUBE_JDBC_USERNAME=sonar

  - SONARQUBE_JDBC_PASSWORD=sonar

  - SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar

volumes:

  - sonarqube_data:/opt/sonarqube/data

  - sonarqube_extensions:/opt/sonarqube/extensions

  - sonarqube_logs:/opt/sonarqube/logs

  - sonarqube_temp:/opt/sonarqube/temp

postgresql:

image: postgres:17

healthcheck:

  test: \[ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" \]

  interval: 10s

  timeout: 5s

  retries: 5

restart: unless-stopped

environment:

  - POSTGRES_USER=sonar

  - POSTGRES_PASSWORD=sonar

  - POSTGRES_DB=sonar

volumes:

  - sonarqube_db_data:/var/lib/postgresql

volumes:

sonarqube_data:

sonarqube_temp:

sonarqube_extensions:

sonarqube_logs:

sonarqube_db_data:

Picked up _JAVA_OPTIONS: -Xmx1g -Xms1g -Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true                                                                     

2025.08.22 13:17:24 WARN app[startup] ####################################################################################################################

2025.08.22 13:17:24 WARN app[startup] Default Administrator credentials are still being used. Make sure to change the password or deactivate the account.

2025.08.22 13:17:24 WARN app[startup] ####################################################################################################################

2025.08.22 13:17:24 INFO web[o.s.s.p.Platform] Web Server is operational

2025.08.22 13:17:24 INFO ce[o.s.p.ProcessEntryPoint] Starting Compute Engine

2025.08.22 13:17:24 INFO ce[o.s.ce.app.CeServer] Compute Engine starting up…

Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts

2025.08.22 13:17:24 INFO ce[o.s.d.DefaultDatabase] Create JDBC data source for jdbc:postgresql://db:5432/sonar

2025.08.22 13:17:24 INFO ce[c.z.h.HikariDataSource] HikariPool-1 - Starting…

2025.08.22 13:17:24 INFO ce[c.z.h.p.HikariPool] HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@7c88d0d3

2025.08.22 13:17:24 INFO ce[c.z.h.HikariDataSource] HikariPool-1 - Start completed.

2025.08.22 13:17:25 INFO ce[o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube

2025.08.22 13:17:25 INFO ce[o.s.c.e.CoreExtensionsLoader] Loaded core extensions: developer-edition, ai-code-assurance, ai-code-detection, developer-scanner, develope

r-server, fix-suggestions, github-provisioning, gitlab-provisioning, license, monitoring, gitlab-vulnerability-report, server-common

2025.08.22 13:17:26 INFO ce[o.s.c.c.CePluginRepository] Load plugins

2025.08.22 13:17:27 INFO ce[o.s.c.c.ComputeEngineContainerImpl] Running Developer edition

2025.08.22 13:17:27 INFO ce[o.s.ce.app.CeServer] Compute Engine is started

2025.08.22 13:17:28 INFO app[o.s.a.SchedulerImpl] Process[ce] is up

2025.08.22 13:17:28 INFO app[o.s.a.SchedulerImpl] SonarQube is operational

2025.08.22 13:17:37 ERROR web[c66e1c59-df1b-48f3-8f48-8e0278ebdd04][c.s.f.s.api.K.T] The license is not valid

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