Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-19167

Keycloak Docker On Azure Web App - Web UI 404 Not Found

    XMLWordPrintable

Details

    • Hide

      use the dockerfile provided above

      create a custom image

      push the image to Azure Container Registry

      Deploy the image as Azure Web App

      Show
      use the dockerfile provided above create a custom image push the image to Azure Container Registry Deploy the image as Azure Web App
    • NEW
    • NEW

    Description

      I am facing a weird issue with the keycloak docker images (i tried both the jboss/keycloak as well as quay.io/keycloak/keycloak and found the behavior to be the same).

      Here is my (rather simple) Dockerfile :

      FROM jboss/keycloak:latest

      ARG ADMIN_USERNAME=myadminuserid

      ARG ADMIN_PASSWORD=myadminpassword

      ARG REALM_NAME=abstracta

      ENV PROXY_ADDRESS_FORWARDING=true

      RUN /opt/jboss/keycloak/bin/add-user-keycloak.sh -u $ADMIN_USERNAME -p $ADMIN_PASSWORD

       

      The very first time, I deployed this into Azure Web App, it worked and I was able to login to my admin console and setup the realms and everything.

      But then, after a couple of restarts, it started showing this weird behavior. When I accessed the admin console, it started showing 404 not found errors for various components (in the browser developer tools).

      Refused to apply style from 'https://mydomain.azurewebsites.net/auth/resources/95t8j/common/keycloak/node_modules/patternfly/dist/css/patternfly.css' because its MIME type ('') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

      GET https://abstracta-auth.azurewebsites.net/auth/resources/95t8j/welcome/keycloak/logo.png 404 (Not Found)

      {{}}

      There are more errors, everything points me towards the fact that the web application was not deployed correctly.

      {{}}

      From a UI perspective, it turns up a blank page or sometimes with broken image placeholders etc.

      This would be a deal breaker for us. Please look into this with utmost priority.

       

      Attachments

        Activity

          Public project attachment banner

            context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
            current Project key: KEYCLOAK

            People

              rh_vmuzikar Václav Muzikář
              vikramvasudevan Vikram Vasudevan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: