# Not able to create initial admin when upgrading from 21 to keycloak 22

**URL:** <https://forum.keycloak.org/t/not-able-to-create-initial-admin-when-upgrading-from-21-to-keycloak-22/28952>\
**Category:** Miscellanaeous\
**Created:** [November 27, 2024, 11:26am UTC](https://forum.keycloak.org/t/not-able-to-create-initial-admin-when-upgrading-from-21-to-keycloak-22/28952 "2024-11-27T11:26:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![User123456789](https://avatars.discourse-cdn.com/v4/letter/u/a88e57/32.png) [@User123456789](https://forum.keycloak.org/u/User123456789)\
**Post date:** [November 27, 2024, 11:26am UTC](https://forum.keycloak.org/t/not-able-to-create-initial-admin-when-upgrading-from-21-to-keycloak-22/28952/1 "2024-11-27T11:26:03Z")

</div>

Hello,  
I’m not able to create an initial admin user when upgrading from keycloak 21 to keycloak 22. I think it’s related to the database. I’m using the environment variables KEYCLOAK\_ADMIN and KEYCLOAK\_ADMIN\_PASSWORD.
