<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I'm get a strange and infrequent problem when I add the admin user
to keycloak.<br>
I'm running keycloak inside a docker container (the
jboss/keycloak-postgres:1.9.1.Final image), and I add the admin user
using the KEYCLOAK_USER and KEYCLOAK_PASSWORD environment variables
set the first time the container is started.<br>
<br>
Occasionally the server seems to hang and the docker container can't
bet stopped or even killed.<br>
The logs show this:<br>
<br>
<!--?xml version="1.0" encoding="UTF-8" standalone="no"?-->
<span style="font-family:'Helvetica Neue';font-size:14px;">keycloak_1
| 10:56:19,876 INFO [org.jboss.as] (Controller Boot Thread)
WFLYSRV0060: Http management interface listening on
<a class="moz-txt-link-freetext" href="http://127.0.0.1:9990/management">http://127.0.0.1:9990/management</a></span><br
style="font-family:'Helvetica Neue';font-size:14px;" clear="none">
<span style="font-family:'Helvetica Neue';font-size:14px;">keycloak_1
| 10:56:19,876 INFO [org.jboss.as] (Controller Boot Thread)
WFLYSRV0051: Admin console listening on <a class="moz-txt-link-freetext" href="http://127.0.0.1:9990">http://127.0.0.1:9990</a></span><br
style="font-family:'Helvetica Neue';font-size:14px;" clear="none">
<span style="font-family:'Helvetica Neue';font-size:14px;">keycloak_1
| 10:56:19,877 INFO [org.jboss.as] (Controller Boot Thread)
WFLYSRV0025: Keycloak 1.9.1.Final (WildFly Core 2.0.10.Final)
started in 12810ms - Started 422 of 789 services (529 services are
lazy, passive or on-demand)</span><br
style="font-family:'Helvetica Neue';font-size:14px;" clear="none">
<span style="font-family:'Helvetica Neue';font-size:14px;">keycloak_1
|</span><br style="font-family:'Helvetica Neue';font-size:14px;"
clear="none">
<span style="font-family:'Helvetica Neue';font-size:14px;">keycloak_1
| Added 'admin' to
'/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json',
restart server to load user</span>
<title></title>
<br>
<br>
Seem like keycloak adds the admin user then gives up on life
completely and can't be stopped.<br>
This only happens occasionally, but frequently enough to be a
problem.<br>
<br>
Any ideas what's happening here?<br>
<br>
Tim<br>
<br>
<br>
</body>
</html>