Issue: Stuck on 'Loading the admin console'

See original GitHub issue

Describe the bug

I am in the process of standing up a local instance of KeyCloak with docker and docker-compose.

Previously I have setup Keycloak with the jboss image (jboss/keycloak:latest). But I am now trying to stand up with the quay image and the new runtime (quay.io/keycloak/keycloak:19.0.2)

Linked below is my docker-compose.yml and .env file as an example.

I have tried to search for similar issues and found the following:

But none of these solutions are what I am trying to achieve. I am looking just to setup a non-proxied environment similar to the response here in that same issue linked above.

Version

19.0.2

Expected behavior

Login screen renders so I am able to login with proper credentials

Actual behavior

Stuck on the loading screen

image

How to Reproduce?

Run docker-compose up -d Navigate to the port specified https://localhost:8080/admin

Notice the failure to bring up the login screen

docker-compose.yml

version: "3.9"

services:
  postgres:
    image: postgres:14.5
    restart: unless-stopped
    environment:
      POSTGRES_DB: ${POSTGRESQL_DB}
      POSTGRES_USER: ${POSTGRESQL_USER}
      POSTGRES_PASSWORD: ${POSTGRESQL_PASSWORD}
    networks:
      - local-keycloak

  keycloak:
    image: quay.io/keycloak/keycloak:19.0.2
    restart: unless-stopped
    command: start
    environment:
      PROXY_ADDRESS_FORWARDING: true
      KC_HOSTNAME_STRICT: false
      KC_HTTP_ENABLED: true
      #KC_HOSTNAME: localhost
      KC_PROXY: none
      KC_METRICS_ENABLED: true
      KC_DB: postgres
      KC_DB_URL_HOST: postgres
      KC_DB_URL_PORT: 5432
      KC_DB_SCHEMA: public
      KC_DB_USERNAME: ${POSTGRESQL_USER}
      KC_DB_PASSWORD: ${POSTGRESQL_PASSWORD}
      KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN_USERNAME}
      KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
    volumes:
      - keycloak-postgres:/var/lib/postgresql/data
    networks:
      - local-keycloak
    ports:
      - 8080:8080
    depends_on:
      - postgres

volumes:
  keycloak-postgres:

networks:
  local-keycloak:

.env (example)

POSTGRESQL_DB=keycloak
POSTGRESQL_USER=keycloak
POSTGRESQL_PASSWORD=k3ycl0ak!!
KEYCLOAK_ADMIN_USERNAME=admin
KEYCLOAK_ADMIN_PASSWORD=k3ycl0ak

Anything else?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ArminRadmuellercommented, Sep 27, 2022

Hi @ZinkNotTheMetal I had the same problem and was able to solve it with this entry in docker-compose.yml: entrypoint: /opt/keycloak/bin/kc.sh start --proxy edge --hostname-strict false It is not the smartest solution, but I have not found any other solution… 😃

0reactions
ZinkNotTheMetalcommented, Sep 30, 2022

hostname-strict-https=false

That fixes it. I’m sorry I missed the -https before.

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Admin console not loading Ā· Issue #14666 Ā· keycloak ... - GitHub
It seems the new admin console doesn't load properly under some configurations, and this has been reported many times in different issues. ThisĀ ......
Read more >
Loading the admin console... not happening
I always the the page ā€œLoading the admin consoleā€ with a spinning circle. I have googled it non stop, but have no idea...
Read more >
Can't sign in to the Admin console - Google Support
If you can't sign in to the Google Admin console for a managed Google Account, such as Google Workspace or Cloud Identity, here's...
Read more >
Admin Console Won't Open, stuck in a loading loop
Hi there, I am trying to access our admin console. Clicking on it sends me into an endless reload spiral where the url...
Read more >
admin console not loading - Google Groups
Keycloak is stuck in a loop after attempting to load admin console. Only seeing spinning, blue graphic and below the message "Loading the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found