Hi Team,
We are upgrading our zip installation of sonar community build version from 25.8.0.112029 to 25.12.0.117093 and then from 25.12.0.117093 to 26.6.0.123539.
As per the upgrade path, we first upgraded from 25.8.0 to 25.12.0 . Upgrade was successful and we migrated the database as well from /setup through the browser. Verified the database update in logs also and can see 28/28 database migration steps are successfully completed.
Tested the version 25.12 after running sonarqube scan via jenkins build. Scan was successful and results were pushed to the sonarqube server. Checked in schema_migrations tables also, there were new entries after the upgrade. All background tasks were also completed checked on sonarqube web.
After testing, we further migrated from 25.12 to 26.6 /26.5, but sonarqube start is failing with error - The version of SonarQube you are trying to upgrade from is too old. Please upgrade to the 25.12 version first.
Could anyone please suggest what could be the possible issue ?
Logs from web.log
2026.06.12 10:19:15 DEBUG web[o.p.c.v.ConnectionFactoryImpl] Trying to establish a protocol versi
on 3 connection to localhost:5438
2026.06.12 10:19:15 DEBUG web[o.p.c.v.ConnectionFactoryImpl] Receive Buffer Size is 65,536
2026.06.12 10:19:15 DEBUG web[o.p.c.v.ConnectionFactoryImpl] Send Buffer Size is 1,313,280
2026.06.12 10:19:15 DEBUG web[c.z.h.pool.PoolBase] HikariPool-1 - Established new connection (97f
5da0b-ec8a-48d5-a6ca-6736860d08cc)
2026.06.12 10:19:15 DEBUG web[c.z.h.p.HikariPool] HikariPool-1 - Added connection org.postgresql.
jdbc.PgConnection@3d561f5c
2026.06.12 10:19:15 DEBUG web[c.z.h.p.HikariPool] HikariPool-1 - After adding stats (total=9/60,
idle=9/10, active=0, waiting=0)
2026.06.12 10:19:15 DEBUG web[c.z.h.pool.PoolBase] HikariPool-1 - Attempting to create/setup new
connection (c175f24a-6a3f-4eb9-8cf4-a179e7eb7c79)
2026.06.12 10:19:15 DEBUG web[o.postgresql.Driver] Connecting with URL: jdbc:postgresql://localho
st:5438/sonarqube
2026.06.12 10:19:15 DEBUG web[o.p.c.v.ConnectionFactoryImpl] Trying to establish a protocol versi
on 3 connection to localhost:5438
2026.06.12 10:19:15 DEBUG web[o.p.c.v.ConnectionFactoryImpl] Receive Buffer Size is 65,536
2026.06.12 10:19:15 DEBUG web[o.p.c.v.ConnectionFactoryImpl] Send Buffer Size is 1,313,280
2026.06.12 10:19:15 DEBUG web[c.z.h.pool.PoolBase] HikariPool-1 - Established new connection (c17
5f24a-6a3f-4eb9-8cf4-a179e7eb7c79)
2026.06.12 10:19:15 DEBUG web[c.z.h.p.HikariPool] HikariPool-1 - Added connection org.postgresql.
jdbc.PgConnection@6a36318a
2026.06.12 10:19:15 DEBUG web[c.z.h.p.HikariPool] HikariPool-1 - After adding stats (total=10/60,
idle=10/10, active=0, waiting=0)
2026.06.12 10:19:15 INFO web[o.s.s.p.ServerFileSystemImpl] SonarQube home: /app/sonarqube-26.5.0
.122743
2026.06.12 10:19:15 INFO web[o.s.s.u.SystemPasscodeImpl] System authentication by passcode is di
sabled
2026.06.12 10:19:15 DEBUG web[c.z.h.p.ProxyConnection] HikariPool-1 - Executed rollback on connec
tion org.postgresql.jdbc.PgConnection@186cb891 due to dirty commit state on close().
2026.06.12 10:19:15 DEBUG web[c.z.h.pool.PoolBase] HikariPool-1 - Reset (autoCommit) on connection org.postgresql.jdbc.PgConnection@186cb891
2026.06.12 10:19:15 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’: The version of SonarQube you are trying to upgrade from is too old. Please upgrade to the 25.12 version first.
2026.06.12 10:19:15 ERROR web[o.s.s.p.w.PlatformServletContextListener] 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’: The version of SonarQube you are trying to upgrade from is too old. Please upgrade to the 25.12 version first.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:610)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1218)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1184)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1121)
Thanks & Regards,
Gourav Arora