Hi,
I am trying to upgrade my Keycloak from 12.0.4 to Keycloak 19.0.3 however I have the below error
ERROR: Unexpected error when starting the server in (production) mode
ERROR: Failed to start quarkus
ERROR: Strict hostname resolution configured but no hostname setting provided
For more details run the same command passing the ‘–verbose’ option. Also you can use ‘–help’ to see the details about the usage of the particular command.
Below are my docker compose file
keycloak:
container_name: keycloak_c
image: Quay
restart: on-failure:5
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: xxxx
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: xxxx
- VEDGE_VERSION=3.1.0
KEYCLOAK_HTTP_PORT: 8080
KEYCLOAK_HTTPS_PORT: ${KEYCLOAK_PORT}
PROXY_ADDRESS_FORWARDING: “true”
KC_PROXY: edge
KC_HTTPS_PROTOCOLS: TLSv1.3,TLSv1.2
KC_HTTP_ENABLED: “true”
KC_HTTPS_PORT: 8443
KC_HTTP_PORT: 8080
KC_METRICS_ENABLED: “true”
KC_HEALTH_ENABLED: “true”
entrypoint: /opt/keycloak/bin/kc.sh start-dev
DB_USER: keycloakdb
DB_PASSWORD: ${KEYCLOAK_DB_PASSWORD}
DB_DATABASE: keycloak
DB_ADDR: pgkeycloak
DB_VENDOR: postgress
networks:
- edulab
- pg
command:
- start
healthcheck:
test: [“CMD”, “curl”, “-f”, “http://0.0.0.0:8080/auth/”]
interval: 5s
timeout: 2s
retries: 15
depends_on:
- pgkeycloak
pgkeycloak:
image: postgres:13
container_name: pgkeycloak_c
restart: on-failure:5
volumes:
- pgkeycloak-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloakdb
POSTGRES_PASSWORD: ${KEYCLOAK_DB_PASSWORD}
#ports:
#- “5432:5432”
healthcheck:
test: [“CMD-SHELL”, “pg_isready -U ${POSTGRES_USER}”]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
- pg
Anyone know what caused it?
I try upgrade from version 12.0.4 to version 18 and it don’t have any issues.