After upgrade from 25.12.0.117093 to 26.1.0.118079 (hosted in docker compose) I realized several warning messages from the the database.
db-1 | 2026-02-02 16:30:43.840 UTC [58] WARNING: database "sonar" has a collation version mismatch
db-1 | 2026-02-02 16:30:43.840 UTC [58] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
db-1 | 2026-02-02 16:30:43.840 UTC [58] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE sonar REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
Similar messages are cyclic printed for the databases ātemplate1ā and āpostgresā.
Iām using PostgreSQL in version 15 as before. According to the documentation I think version 15 is still supported.
Here is my current docker compose file:
services:
sonarqube:
image: sonarqube:26.1.0.118079-community
read_only: true
depends_on:
- db
environment:
SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar
SONAR_JDBC_USERNAME: ***
SONAR_JDBC_PASSWORD: ***
volumes:
- sonarqube_config:/opt/sonarqube/conf # configuration
- sonarqube_data:/opt/sonarqube/data # runtime data software
- sonarqube_extensions:/opt/sonarqube/extensions # plugins
- sonarqube_logs:/opt/sonarqube/logs # logfiles
- sonarqube_temp:/opt/sonarqube/temp
tmpfs:
- /tmp:size=256M,mode=1777
ports:
- "127.0.0.1:9000:9000" # available local only!
restart: unless-stopped
db:
image: postgres:15
environment:
POSTGRES_USER: ***
POSTGRES_PASSWORD: ***
POSTGRES_DB: sonar
volumes:
- postgresql:/var/lib/postgresql # runtime data 1
- postgresql_data:/var/lib/postgresql/data # runtime data 2
ports:
- "127.0.0.1:5432:5432" # available local only!
restart: unless-stopped
volumes:
sonarqube_config:
sonarqube_data:
sonarqube_extensions:
sonarqube_logs:
sonarqube_temp:
postgresql:
postgresql_data: