<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br></div>I am using keycloak 1.5.0 and i am facing an issue with the clustering of it.<br><br></div>I have two instances of keycloak behind a load balancer and i made the following changes to keycloak-server.json on both the instances.<br><br></div>Added:<br><pre class="">"realmCache": {
"provider": "infinispan"
},
"userCache": {
"provider": "infinispan"
</pre>} ,t<br><pre class="">"userSessions": {
"provider": "infinispan"
}<br><br></pre>and ran the following command: ./standalone.sh --server-config=standalone-ha.xml -b=172.31.7.132.<br><br></div>The server is starting but when i try to access admin console, it first gives me this error: <br>type=LOGIN_ERROR, realmId=master, clientId=null, userId=null, ipAddress=172.31.18.200, error=expired_code, restart_after_timeout=true <br><br></div>and redirects me to the login page again and then if i try to login in again, it gives me another again:<br>type=LOGIN_ERROR, realmId=master, clientId=null, userId=null, ipAddress=172.31.25.198, error=invalid_code<br></div><div>and exits <br></div>saying 'try login using your application'. <br><br></div>What am i doing that is causing this ?? Any config changes i need to do?? <br></div>