question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keycloak start fails after restart

See original GitHub issue

After restart keycloak server it fails to start:

=========================================================================

  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

=========================================================================

15:35:47,483 INFO  [org.jboss.modules] (main) JBoss Modules version 1.6.0.Final
15:35:47,910 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.7.SP1
15:35:48,102 INFO  [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: Keycloak 3.3.0.CR2 (WildFly Core 3.0.1.Final) starting
15:35:49,916 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
15:35:49,950 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 18) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("jdbc-driver" => "postgresql")
]) - failure description: "WFLYCTL0212: Duplicate resource [
    (\"subsystem\" => \"datasources\"),
    (\"jdbc-driver\" => \"postgresql\")
]"
15:35:49,957 INFO  [org.wildfly.security] (ServerService Thread Pool -- 4) ELY00001: WildFly Elytron version 1.1.1.Final
15:35:49,988 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 24) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
15:35:50,090 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) "WFLYCTL0193: Failed executing subsystem datasources boot operations"
15:35:50,092 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("parallel-subsystem-boot") failed - address: ([]) - failure description: "\"WFLYCTL0193: Failed executing subsystem datasources boot operations\""
15:35:50,099 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

steps to reproduce:

  1. run CHE in multi user mode:
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock \
                    -v /Users/roman/development/codenvy_projects/.che_multi:/data \
                    -e CHE_MULTIUSER=true \
                    eclipse/che-cli:nightly start

please note that we use nightly tags as we already in master

  1. restart keycloak server docker restart <KEYCLOAK_CONTAINER_ID> OR stop codenvy with CLI and start it again

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
davidfestalcommented, Oct 11, 2017

@riuvshin : he restarted the build but it failed on their CI. I notified him and also asked for a new tag. He should answer very soon tonight or tomorrow.

0reactions
gsustekcommented, Apr 29, 2020

@riuvshin I’ve found the root cause of the problem and fixed it locally. I’m now searching for the fastest way to have my fix deployed in dockerHub.

Hi, i know it is along time ago, but do you remember what was the issue? Thnx.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keycloak Docker container fails to start after restarting the ...
They want to concentrate on a workflow where a container is removed and recreated, not started and stopped. They agreed with the general...
Read more >
[keycloak-user] Keycloak Server boot has ... - Jboss List Archives
Salam, Running bin/standalone.sh doesn't restart server, it starts another instance (which obviously fails to boot due to ports occupied by ...
Read more >
Keycloak docker container cannot be restarted once ...
1. Start a docker keycloak container with env DB_VENDOR=postgres. 2. Stop the container. 3. Restart the container.
Read more >
How to start keycloak automatically on server reboot
How can i automate this so it runs when ubuntu starts. ... You can do this with init.d or systemd scripts. Keycloak already...
Read more >
Configuring distributed caches
The current distributed cache implementation is built on top of Infinispan, ... When you start Keycloak in production mode, by using the start...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found