I have installed Sonarqube 9.9 LTS community edition in AWS cloud newly and created RDS 15 version.
DB connection is passing to RDS from EC2. We are good on connection part.
But,Application is going down when we uncomment the DB connection string in sonar.properties file.
DB string : sonar.jdbc.url=jdbc:postgresql://sonarqube-postgres-xxxxxx:5432/sonarqube
Getting below error in web.log :
2023.07.17 07:04:31 INFO web[][o.s.s.u.SystemPasscodeImpl] **System authentication by passcode is disabled**
2023.07.17 07:04:31 WARN web[][o.s.c.a.AnnotationConfigApplicationContext] **Exception encountered during context initialization - cancelling** refreshattempt: org.springframework.beans.factory.BeanCreationException: **Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@5bc2b487-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.07.17 07:04:31 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@5bc2b487-org.sonar.server.platform.DatabaseServerCompatibility': Initialization of bean failed; nested exception is Current version is too old. Please upgrade toLong Term Support version firstly.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:628)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
Please provide solution for this type of issue.
Thanks!