Keycloak getting empty login page i.e., without username and password form

499 views Asked by At

Recently I migrated the keycloak database by volume mounting the data into a different environment. Till then it worked fine and suddenly I am getting the empty login page (Username and password form is not getting displayed). In the theme, I commented the 'if loop' i.e., 8th line on this file https://github.com/keycloak/keycloak/blob/master/themes/src/main/resources/theme/base/login/login.ftl#L8, and it's working. Why should I need to comment the line? what is realm.password means? Any idea?

While migrating data, is there anything busted? If so, which table in the keycloakdb should I need to check to fix this issue.

Feel free to ask me If you need more information.

Keycloak Login Page

1

There are 1 answers

2
Edwin On

First of all you should share more information about your setup like which db you are using, how is keycloak installed, keycloak versions.

But with the given information:

realm.password means just the password of the realm and if you don't have this set up usually means that you have to set it up. Usually it can also happen if you install Keycloak from scratch and not yet added a password.

You can do this by running the bin/add-user-keycloak.sh in the JBOSS_HOME directory.

Btw, you shouldn't change the password directly in the db or do changes directly there.