[keycloak-user] Clustering not working properly.

Bill Burke bburke at redhat.com
Fri Jan 29 09:23:24 EST 2016


There was a long thread about this here.  You'll have to google 
infinispan jgroups AWS. Or find the thread.

On 1/29/2016 9:13 AM, Revanth Ayalasomayajula wrote:
> Hi Bill,
>
> I seemed to have identified the issue. Both the machines are on AWS 
> and AWS doesn't support multicast. Is there any way around this which 
> can help me out??
>
> Thanks
>
> On Fri, Jan 29, 2016 at 7:36 PM, Bill Burke <bburke at redhat.com 
> <mailto:bburke at redhat.com>> wrote:
>
>     Are your clustered machines clocks in sync?
>
>
>     On 1/29/2016 5:15 AM, Revanth Ayalasomayajula wrote:
>>     Hi,
>>
>>     I am using keycloak 1.5.0 and i am facing an issue with the
>>     clustering of it.
>>
>>     I have two instances of keycloak behind a load balancer and i
>>     made the following changes to keycloak-server.json on both the
>>     instances.
>>
>>     Added:
>>     "realmCache": {
>>          "provider": "infinispan"
>>     },
>>
>>     "userCache": {
>>          "provider": "infinispan"
>>     } ,t
>>     "userSessions": {
>>          "provider": "infinispan"
>>     }
>>
>>     and ran the following command: ./standalone.sh
>>     --server-config=standalone-ha.xml -b=172.31.7.132.
>>
>>     The server is starting but when i try to access admin console, it
>>     first gives me this error:
>>     type=LOGIN_ERROR, realmId=master, clientId=null, userId=null,
>>     ipAddress=172.31.18.200, error=expired_code,
>>     restart_after_timeout=true
>>
>>     and redirects me to the login page again and then if i try to
>>     login in again, it gives me another again:
>>     type=LOGIN_ERROR, realmId=master, clientId=null, userId=null,
>>     ipAddress=172.31.25.198, error=invalid_code
>>     and exits
>>     saying  'try login using your application'.
>>
>>     What am i doing that is causing this ?? Any config changes i need
>>     to do??
>>
>>
>>     _______________________________________________
>>     keycloak-user mailing list
>>     keycloak-user at lists.jboss.org <mailto:keycloak-user at lists.jboss.org>
>>     https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>     -- 
>     Bill Burke
>     JBoss, a division of Red Hat
>     http://bill.burkecentral.com
>
>
>     _______________________________________________
>     keycloak-user mailing list
>     keycloak-user at lists.jboss.org <mailto:keycloak-user at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160129/c09339f7/attachment.html 


More information about the keycloak-user mailing list