Blank keycloak admin page in production

708 views
Skip to first unread message

Rajat Khatri

unread,
Aug 2, 2022, 5:06:41 AM8/2/22
to Keycloak User
Hi everyone , I'm deploying keycloak 18.0.1 in kubernets environment. I'm able to access the initial keycloak welcome  page but when I click on administrator console the page is blank. Why is it so?
I'm using the following configurations :

args: ["start --auto-build"]
imagePullPolicy: Always

env:
- name: "KEYCLOAK_ADMIN"
value: "root"

- name: "KEYCLOAK_ADMIN_PASSWORD"
value: "secret password"

- name: "KC_HOSTNAME"
value: "localhost"

- name: "KC_HTTP_ENABLED"
value: "true"

- name: "KC_PROXY"
value: "edge"

ports:
- name: http
containerPort: 8080
- name: https
containerPort: 8443
readinessProbe:
httpGet:
path: /realms/master
port: 8080
scheme: HTTP









Screenshot from 2022-08-02 14-22-16.jpg

Jon Koops

unread,
Aug 2, 2022, 5:08:12 AM8/2/22
to Rajat Khatri, Keycloak User
Please test this with the latest version of Keycloak, and if it doesn't work please share any console output.

--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/c83547a0-cb93-48be-9103-44ed2380ba71n%40googlegroups.com.

Rajat Khatri

unread,
Aug 2, 2022, 5:37:59 AM8/2/22
to Keycloak User
deployed the newest keycloak 19.0.1 but still facing the same issue.

Screenshot from 2022-08-02 14-53-38.jpgimg.jpg

Rajat Khatri

unread,
Aug 2, 2022, 5:39:10 AM8/2/22
to Keycloak User
Moreover I checked Javascript is enabled .

Dominik Guhr

unread,
Aug 2, 2022, 9:12:54 AM8/2/22
to Rajat Khatri, Keycloak User
please set KC_HOSTNAME_STRICT_HTTPS with value false. see hostname guide for details: https://www.keycloak.org/server/hostname#_accessing_keycloak_in_production_mode_using_http 
@jon maybe we should have a better error page here, e.g. linking to the guide, wdyt?

Welton Torres

unread,
Aug 2, 2022, 10:57:40 AM8/2/22
to Dominik Guhr, Rajat Khatri, Keycloak User
I have been answering kubernetes questions on the forum and this is quite a common question. Besides, the hostname-strict-https in undocumented in the all configs page on the site.

Rajat Khatri

unread,
Aug 3, 2022, 3:03:51 PM8/3/22
to Keycloak User
Thanks It worked after setting KC_HOSTNAME_STRICT_HTTPS to false. Although previously I was referring all config page on their website but its not mentioned there till now.

Jon Koops

unread,
Aug 9, 2022, 6:06:42 AM8/9/22
to Dominik Guhr, Rajat Khatri, Keycloak User
> maybe we should have a better error page here, e.g. linking to the guide, wdyt?

Yeah, agreed. I've started some work on improving this.

Reply all
Reply to author
Forward
0 new messages