# Upgrading from Keycloak 12.0.4 to 19.0.3 error

**URL:** <https://forum.keycloak.org/t/upgrading-from-keycloak-12-0-4-to-19-0-3-error/22752>\
**Category:** Configuring the server\
**Created:** [June 19, 2023, 2:50am UTC](https://forum.keycloak.org/t/upgrading-from-keycloak-12-0-4-to-19-0-3-error/22752 "2023-06-19T02:50:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuling3086](https://avatars.discourse-cdn.com/v4/letter/y/e47c2d/32.png) [@yuling3086](https://forum.keycloak.org/u/yuling3086)\
**Post date:** [June 19, 2023, 2:50am UTC](https://forum.keycloak.org/t/upgrading-from-keycloak-12-0-4-to-19-0-3-error/22752/1 "2023-06-19T02:50:24Z")

</div>

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](http://quay.io/keycloak/keycloak:19.0.3)  
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/](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.

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [June 19, 2023, 5:31am UTC](https://forum.keycloak.org/t/upgrading-from-keycloak-12-0-4-to-19-0-3-error/22752/2 "2023-06-19T05:31:19Z")

</div>

As your error message tells you, you just have to read the message and look into the guides: you don‘t have a proper hostname configuration!

> **[Configuring the hostname - Keycloak](https://www.keycloak.org/server/hostname)**
>
> Keycloak is an open source identity and access management solution

BTW: you have a wild mixture of valid and invalid environment variables, good luck that this will work (and if so, probably by accident).
