Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
version 8.0 - how is SonarQube deployed: zip, Docker, Helm
ZIP - what are you trying to achieve
Upgrade 8 to 9 and postgres from 10 to 11 - what have you tried so far to achieve this
install sonar 9.6.1 and postgres 14.7 with JDK17
If i run this without postgres but with H2 it’s fine
but when i use sonar.properties
sonar.jdbc.username=sonar
sonar.jdbc.password=*******
sonar.jdbc.url=jdbc:postgresql://localhost:5432/sonar (schema = public)
Manual i can connect with the DB
postgres@sonar0101e3 ~]$ psql -d postgresql://localhost:5432/sonar -U sonar
psql (14.7)
Type "help" for help.
sonar=# \c
You are now connected to database "sonar" as user "sonar".
This is the Error:
2023.05.08 15:18:50 INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 9.6.1.59531 / 7398ee51f5da9a64ea123c98c5225aa5c41f700c
2023.05.08 15:18:50 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://localhost:5432/sonar
2023.05.08 15:18:51 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /export/sonarqube-9.6.1
2023.05.08 15:18:51 INFO web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2023.05.08 15:18:51 INFO web[][o.s.c.e.CoreExtensionsLoader] Loaded core extensions: enterprise-edition, ce-workers, developer-scanner, developer-server, governance, license, securityreport, monitoring
2023.05.08 15:18:51 WARN web[][o.s.c.a.AnnotationConfigApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@5ffd2b27-org.sonar.server.platform.DatabaseServerCompatibility': Initialization of bean failed; nested exception is Current version is too old. Please upgrade to Long Term Support version firstly.
2023.05.08 15:18:51 ERROR web[][o.s.s.p.PlatformImpl] Web server startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@5ffd2b27-org.sonar.server.platform.DatabaseServerCompatibility': Initialization of bean failed; nested exception is Current version is too old. Please upgrade to Long Term Support version firstly.
Thanks in advance for your support
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!