Repository navigation
"Expired_Code" error in keycloak HA #37482
Replies: 7 comments 5 replies
|
Today I get another type of error:
I solved just restarting the 3 container instances, because I suppose they reset the distributed cache Can anyone help me? |
|
Can anyone help me? After I started the keycloak service, this error happens always after 1 week, that's why I supposed it's the cache. |
|
Hey, any updates about it? Im in the same situation right now. |
|
Hi, any updates on this please? I'm getting the exact same issue running KeyCloak 26.1 on Azure Container apps. |
|
In my case, it was a clock skew issue between nodes.
Le Quoc Thinh.
…On Mon, 28 Jul 2025 at 23:04, Callum Young ***@***.***> wrote:
Hi, any updates on this please? I'm getting the exact same issue running
KeyCloak 26.1 on Azure Container apps.
Is it worth posting this in the issue section as well as the Q&A?
—
Reply to this email directly, view it on GitHub
<#37482 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANIFEZY536MKOD5IQQ2ESAT3KZCXZAVCNFSM6AAAAABXNV7BF2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGOJRGIZDQMA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
Actually, in that case, you could expand the lifetime of the authorization
code in the realm settings.
Le Quoc Thinh.
…On Mon, 28 Jul 2025 at 23:23, Callum Young ***@***.***> wrote:
Thanks for the reply, can I ask your approach on how you fixed this please?
I'm seeing a few possible options and interested in what worked for you.
Thanks.
—
Reply to this email directly, view it on GitHub
<#37482 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANIFEZ4JSCLI66HNRA55ARD3KZFAZAVCNFSM6AAAAABXNV7BF2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGOJRGI2DMOA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
you can try to set up the same node name |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm running 3 nodes of Keycloak in Azure Container Apps with infinispan distributed cache in front.
Yesterday I catched the following WARN in my container's logs and in that moment I was not able to login to web admin... it continued to log that warn every time I tried to login.
2025-02-18T13:10:59.3949172Z stdout F 2025-02-18 13:10:59,394 WARN [org.keycloak.events] (executor-thread-10) type="LOGIN_ERROR", realmId="a1d39a9f-95b4-4fd6-9538-171ed94bead6", realmName="master", clientId="security-admin-console", userId="null", ipAddress="xx.xx.xx.xx", error="expired_code", restart_after_timeout="true"After restarted my Azure Container App I solved. I supposed that the distributed cache could be the problem... is it possible?
My infinispan cache configuration was the following (default):
Thinking about it, this default configuration is not good and I'll update it, but apart that, can you help me understand the problem I had?
Thanks in advance
All reactions