Repository navigation
Replies: 1 comment 5 replies
|
Hi, There are 2 things missing in your setup:
|
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello everyone!!
I need community help with several questions...
I made following:
In
/opt/keycloak-19.0.2/providersfolder I put following jar: https://mvnrepository.com/artifact/org.jgroups.azure/jgroups-azure/2.0.2.Final;In
/opt/keycloak-19.0.2/conffolder I put following file: https://github.com/infinispan/infinispan/blob/main/core/src/main/resources/default-configs/default-jgroups-azure.xml (I'm pretty sure that syntax of this file is incorrect for using with Keycloak, but It's the only one link which I found across whole internet with something similar). From following link it's completely unclear for me how cache file should looks like: https://infinispan.org/docs/dev/titles/embedding/embedding.html#jgroups-cloud-discovery-protocols_cluster-transport;I'm prepared external Postgres DB and put all required info regarding db into /opt/keycloak-19.0.2/conf/keycloak.conf file;
I have followed the steps from following page: https://www.keycloak.org/server/configuration-production
Then I build Keycloak using following command:
bin/kc.sh build --cache-stack=azure --cache=ispn --cache-config-file=default-jgroups-azure.xmlbin/kc.sh show-config|grep azurekc.cache-config-file = default-jgroups-azure.xml (PersistedConfigSource)
kc.cache-stack = azure (PersistedConfigSource)
kc.provider.file.jgroups-azure-2.0.2.Final.jar.last-modified = 1637327271000 (PersistedConfigSource)
kc.cache-config-file = default-jgroups-azure.xml (PersistedConfigSource)
kc.cache-stack = azure (PersistedConfigSource)
kc.provider.file.jgroups-azure-2.0.2.Final.jar.last-modified = 1637327271000 (PersistedConfigSource) - SAME OUTPUT 2 TIMES IS IT OK?
Then tried to start Keycloal on 1st node using following command:
bin/kc.sh start. And got following log:From log I see that all my configuration efforts were ignored and default JGroups configuration were applied:
I completely understand that I missed something, misconfigured something. Also I'm sure that
default-jgroups-azure.xmlfile which I trying to use with KC is partially or completely wrong. But I have no Idea how it should looks like.I will really appreciate any help, suggestions and advices. I'm already spent several days trying to configure cluster on Azure VM's but still have no idea is it possible at all or not.
All reactions