Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

password authentication failed for user "bn_keycloak" #30516

Closed
mhazan01 opened this issue Nov 19, 2024 · 3 comments
Closed

password authentication failed for user "bn_keycloak" #30516

mhazan01 opened this issue Nov 19, 2024 · 3 comments
Assignees
Labels
keycloak solved tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@mhazan01
Copy link

mhazan01 commented Nov 19, 2024

Name and Version

bitnami/keycloak latest

What architecture are you using?

amd64

What steps will reproduce the bug?

helm upgrade -i keycloak oci://registry-1.docker.io/bitnamicharts/keycloak --create-namespace -n keycloak -f values.yaml

Are you using any custom parameters or values?

configured domain name and tls

What is the expected behavior?

working pgsql backend

What do you see instead?

FATAL:  password authentication failed for user "bn_keycloak"

Additional information

no matter what, the password doesn't work in the pgsql container, including trying to connect to it from the container itself with psql

@mhazan01 mhazan01 added the tech-issues The user has a technical issue about an application label Nov 19, 2024
@github-actions github-actions bot added the triage Triage is needed label Nov 19, 2024
@BohdanBohatov
Copy link

BohdanBohatov commented Nov 19, 2024

This is because of "upgrade" it creates new password and places it inside container, but db still used old one. You will not fix it, just create new chart and set postgresql password in values file.
If you have old password you may place it in values.yaml, if you don't have - create new ns with db password.

postgresql:
  auth:
    password: "9t3tggid47"

@mhazan01
Copy link
Author

mhazan01 commented Nov 19, 2024

Thanks, i've tried as suggest but still getting the same error. i have also tried with install instead of upgrade, same results.
those are the secret created by the chart, they get removed when i do helm uninstall after failure
bitnami

@mhazan01
Copy link
Author

got the db to work, i was setting up a too short password in the "password:" field ? anyway it's not being used. now it works with the keycloak-postgresql : password secret which is different. but now i'm stuck with another bug from here : #30215. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keycloak solved tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

3 participants