Update Sonarqube Community Edition 25.12 to 26.3

Hello we are currently trying to update sonarqube community edition from 25.12 to 26.3. Our deployment is from zip. We have a postgres v.15.x.x and java 21 . First step was to update java from 17 to 21 update was succefully sonarqube 25.12 started without any issues but once i am trying to update to 26.3 i have this error:

Web server startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jdk.internal.loader.ClassLoaders$AppClassLoader@c387f44-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.

Fixed by update from 25.12 → 26.1 → 26.3