Skip to content

Instantly share code, notes, and snippets.

@sebastienblanc
Created January 23, 2018 10:52
Show Gist options
  • Save sebastienblanc/c0ae47b07f358cf37251b8ded7d05bc5 to your computer and use it in GitHub Desktop.
Save sebastienblanc/c0ae47b07f358cf37251b8ded7d05bc5 to your computer and use it in GitHub Desktop.
Added 'admin' to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json', restart server to load user
[KEYCLOAK DOCKER IMAGE] Using the embedded H2 database
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/jboss/keycloak
JAVA: /usr/lib/jvm/java/bin/java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
10:42:51,061 INFO [org.jboss.modules] (main) JBoss Modules version 1.6.1.Final
java.lang.IllegalStateException: WFLYSRV0126: Could not create server content directory: /opt/jboss/keycloak/standalone/data/content
at org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:490)
at org.jboss.as.server.Main.determineEnvironment(Main.java:339)
at org.jboss.as.server.Main.main(Main.java:95)
at org.jboss.modules.Module.run(Module.java:344)
at org.jboss.modules.Main.main(Main.java:525)
10:42:51,317 FATAL [org.jboss.as.server] (main) WFLYSRV0239: Aborting with exit code 1
@alecharp
Copy link

alecharp commented Oct 2, 2018

Hello @sebastienblanc. Did you found why you got this? Upgrading Keycloak from 4.0.0 to 4.5.0 and I have the same symptoms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment