# Keycloak.x - create initial admin user fails

**URL:** <https://forum.keycloak.org/t/keycloak-x-create-initial-admin-user-fails/6502>\
**Category:** Miscellanaeous\
**Tags:** admin-console\
**Created:** [December 21, 2020, 1:33pm UTC](https://forum.keycloak.org/t/keycloak-x-create-initial-admin-user-fails/6502 "2020-12-21T13:33:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![flaviodonze](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/flaviodonze/32/1949_2.png) [@flaviodonze](https://forum.keycloak.org/u/flaviodonze)\
**Post date:** [December 21, 2020, 1:33pm UTC](https://forum.keycloak.org/t/keycloak-x-create-initial-admin-user-fails/6502/1 "2020-12-21T13:33:16Z")

</div>

Hello

I’m would like to have a look at Keycloak.X (12.0.1) on Windows 10.  
Keycloak.X starts up but then trying to create an admin user I get the following error message:  
“An internal server error has occurred”

- Download: [https://github.com/keycloak/keycloak/releases/download/12.0.1/keycloak.x-preview-12.0.1.zip](https://github.com/keycloak/keycloak/releases/download/12.0.1/keycloak.x-preview-12.0.1.zip)
- Unpack
- Run: bin/kc.bat start-dev
- Open: [http://localhost:8080/](http://localhost:8080/)
- Enter Username+Password hit “Create”
- “An internal server error has occurred”

I don’t see any message in the console nor can I find a log file. Any Idea whats wrong or how I can enable better logging?

EDIT:  
The same issue happens in version 12.0.0.  
I also found configuration for logging: _/conf/keycloak.properties_ but setting the configuration to `quarkus.log.level = WARN` doesn’t bring any valuable information.  
EDIT:  
Tested different Java Versions, same Problem:  
openjdk version “1.8.0\_222”  
openjdk version “11.0.6”  
openjdk version “14.0.2”

---

<div class="post-metadata">

**Author:** ![ahumellihuk](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/ahumellihuk/32/1951_2.png) [@ahumellihuk](https://forum.keycloak.org/u/ahumellihuk)\
**Post date:** [December 21, 2020, 7:29pm UTC](https://forum.keycloak.org/t/keycloak-x-create-initial-admin-user-fails/6502/2 "2020-12-21T19:29:41Z")

</div>

Same problem here on macOS 10.15.7 and JDK 11.0.4.

---

<div class="post-metadata">

**Author:** ![DominicCronin](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dominiccronin/32/1992_2.png) [@DominicCronin](https://forum.keycloak.org/u/DominicCronin)\
**Post date:** [December 30, 2020, 12:34pm UTC](https://forum.keycloak.org/t/keycloak-x-create-initial-admin-user-fails/6502/3 "2020-12-30T12:34:40Z")

</div>

I have the same issue with 12.0.1 running on Fedora 33. Although the text that is displayed is “An internal server error has occurred”, the HTTP status of the response is 415, which indicates an unsupported media type (and not a server error). I’m going to try configuring https to see if that helps

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [December 31, 2020, 5:43pm UTC](https://forum.keycloak.org/t/keycloak-x-create-initial-admin-user-fails/6502/4 "2020-12-31T17:43:01Z")

</div>

Same issue on Mac 10.15.7 and JDK 11.0.9.

My temporary workaround is to use an unofficial docker image from here: [https://hub.docker.com/r/rwxproject/keycloak-x](https://hub.docker.com/r/rwxproject/keycloak-x)

Works fine with:

```auto
docker run --name keycloak -p 8080:8080 \
    -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin \
    rwxproject/keycloak-x:12.0.1 \
    start-dev

```

---

<div class="post-metadata">

**Author:** ![flaviodonze](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/flaviodonze/32/1949_2.png) [@flaviodonze](https://forum.keycloak.org/u/flaviodonze)\
**Post date:** [January 20, 2021, 7:56am UTC](https://forum.keycloak.org/t/keycloak-x-create-initial-admin-user-fails/6502/5 "2021-01-20T07:56:00Z")

</div>

This works now with new keycloak.x version 12.0.2: [Keycloak - Downloads](https://www.keycloak.org/downloads)
