I got the Keycloak running. But when I login, I got an error saying “Invalid username or password.”
I’ve used the credentials admin / admin for login.
If I remove volumes in postgres and do a docker-compose up it works fine. I don’t understand why it is not working if I use volumes. I do have the directories for the volume postgres_data in my server .
Can someone help me? Any help would be much appreciated.
I’ve tried it on my system, when I set the KEYCLOAK_PASSWORD to admin I can’t also login, when I change it to password I can login. My docker-compose file can be found under https://github.com/zonaut/keycloak-extensions
My guess is that the username and password can’t be the same value, which from a security perspective makes sense but they should throw an error on startup
Just to register, on keycloak 20.0.1 one should set KEYCLOAK_ADMIN_PASSWORD instead of KEYCLOAK_PASSWORD. I haven’t checked earlier versions, but be warned. Starting docker keycloak using KEYCLOAK_PASSWORD makes it unable to login at Keycloak Admin Console and leads to errors like user_not_found and/or invalid_user_credentials.