Cannot connect to database

I am setting up SonarQube Community edition to connect to postgres database server but I cannot connect to the database.

Postgres version is: postgres (PostgreSQL) 9.2.24
SonarQube version is: 9.3.0.51899

On the postgres side, I have setup a user, password, and a database.

Here are the corresponding configuration changes I have in the properties file:
sonar.jdbc.username=sonar
sonar.jdbc.password=the password
sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube

When I comment out the lines above in the properties file and restart SonarQube i connect to SonarQube fine. This is telling me there is an issue with connecting to the database.

Here are my log files:
access.log (31.2 KB)
sonar.20220323.log (36.2 KB)
ce.log (2.6 KB)
es.log (155.2 KB)
web.log (121.9 KB)

Can you help me out with what I need to do to connect to the database?

Thank You

Hi @apple01 ,

You can find more about that in our requirements documentation. While the application still supports postgresql 9.3 i would recommend you to use a more up to date version as even 9.6 is already EOL. Try it with postgresql 13 :slight_smile:

1 Like

Thanks Tobias,

I will do that and get back if I am having the same issue.