[keycloak-user] Running two Keycloak instances in parallel
Hynek Mlnarik
hmlnarik at redhat.com
Tue Jan 16 05:30:32 EST 2018
It could be for many reasons. Just guessing - since it is terminating after
300 seconds (5 minutes) while the last log entry is about updating
database, maybe the database connection/operation is too slow. Hence you
can try increasing the startup period value to e.g. 900 seconds by passing
-Djboss.as.management.blocking.timeout=900 parameter to standalone.sh. Also
make sure that the database of the new Keycloak instance is distinct from
the original one.
On Tue, Jan 16, 2018 at 10:30 AM, Knurr, Michael <Michael.Knurr at adesso.ch>
wrote:
> Hi all
>
> When trying to upgrade Keycloak to the latest version I ran into problems.
> Unfortunately It turned out that we ran into different upgrade behaviors on
> different machines. With the latest version, the upgrade is running
> locally, on test and on stage. As a last step I now tried to test the
> upgrade procedure on the production machine with a keycloak instance
> running on a different port.
>
> When running the upgrade on a server with an already running keycloak
> instance, the new server runs into a timeout because of concurrency.
>
> 10:16:24,926 INFO [org.keycloak.connections.jpa.updater.liquibase.LiquibaseJpaUpdaterProvider]
> (ServerService Thread Pool -- 58) Updating database. Using changelog
> META-INF/jpa-changelog-master.xml
> 10:21:22,322 ERROR [org.jboss.as.controller.management-operation]
> (Controller Boot Thread) WFLYCTL0348: Timeout after [300] seconds waiting
> for service container stability. Operation will roll back. Step that first
> updated the service container was 'add' at address '[
> ("core-service" => "management"),
> ("management-interface" => "http-interface")
> ]'
> 10:21:23,397 WARN [com.arjuna.ats.arjuna] (Transaction Reaper)
> ARJUNA012117: TransactionReaper::check timeout for TX
> 0:ffff7f000101:73d290d3:5a5dc2e6:d in state RUN
> 10:21:23,402 WARN [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0)
> ARJUNA012121: TransactionReaper::doCancellations worker
> Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX
> 0:ffff7f000101:73d290d3:5a5dc2e6:d
> 10:21:23,668 WARN [com.arjuna.ats.arjuna] (Transaction Reaper)
> ARJUNA012117: TransactionReaper::check timeout for TX
> 0:ffff7f000101:73d290d3:5a5dc2e6:10 in state RUN
> 10:21:23,669 WARN [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0)
> ARJUNA012121: TransactionReaper::doCancellations worker
> Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX
> 0:ffff7f000101:73d290d3:5a5dc2e6:10
> 10:21:27,328 ERROR [org.jboss.as.controller.management-operation]
> (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.server.
> DeployerChainAddHandler$FinalRuntimeStepHandler at 20b4c4cb for operation
> add-deployer-chains at address [] failed handling operation rollback --
> java.util.concurrent.TimeoutException: java.util.concurrent.
> TimeoutException
> at org.jboss.as.controller.OperationContextImpl.waitForRemovals(
> OperationContextImpl.java:522)
> ...
>
> What might be the reason for this? Shouldn't it possible to run two
> keycloak servers (with a different port offset) on a single machine? How
> can I test the keycloak upgrade on the production machine without stopping
> the running server instance?
>
>
> Best regards
> Michael
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
--
--Hynek
More information about the keycloak-user
mailing list