You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
First of all congratulations for this beautiful chart 😉
Today I'm trying to install SonarQube on my self hosted kubernetes cluster, and I meet an issue : Sonar can't get connected to the PostgreSQL database deployed by the same chart, using the password in the secret.
I think you know which error I mean :
java.lang.IllegalStateException: Fail to connect to database
at org.sonar.db.DefaultDatabase.start(DefaultDatabase.java:86)
[...]
Caused by: java.lang.IllegalStateException: Can not connect to database. Please check connectivity and settings (see the properties prefixed by 'sonar.jdbc.').
[...]
Caused by: java.sql.SQLException: Cannot create PoolableConnectionFactory (FATAL: password authentication failed for user "sonarUser")
[...]
Caused by: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "sonarUser"
[...]
What is really weird, is that when I do kubectl get deploy sonarqube -o yaml I can see that the secret is used.
I'm facing the same issue, and expanding on this a little more -
I tried deploying the helm chart on a minikube cluster. It fails with the same error, container logs -
Caused by: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "sonarUser"
at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:613)
at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:161)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:213)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:51)
at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:223)
at org.postgresql.Driver.makeConnection(Driver.java:465)
at org.postgresql.Driver.connect(Driver.java:264)
When I do helm get all sonarqube -n sonarqube I can see the secret sonar-postgresql is used -
Looking at postgres container logs did not provide anything insightful and I'm not able to log into the db too. I think the root cause might be in this logic or I'm missing something obvious 🤔
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
First of all congratulations for this beautiful chart 😉
Today I'm trying to install SonarQube on my self hosted kubernetes cluster, and I meet an issue : Sonar can't get connected to the PostgreSQL database deployed by the same chart, using the password in the secret.
I think you know which error I mean :
What is really weird, is that when I do
kubectl get deploy sonarqube -o yaml
I can see that the secret is used.So, here is my overrides.yaml file, but you'll see, there is nothing really important :
What am I missing ?
Thanks for your help
The text was updated successfully, but these errors were encountered: