bitnami / charts

Bitnami Helm Charts
https://bitnami.com
Other
8.95k stars 9.18k forks source link

[bitnami/keycloak] 26.0.0 Infinispan error #29840

Open VonNao opened 1 week ago

VonNao commented 1 week ago

Name and Version

bitnami/keycloak 26.0.0

What architecture are you using?

None

What steps will reproduce the bug?

I upgrade the keycloak helm chart to version 24.0.0. During the startup from keycloak 26.0.0 the following error in regards to infinispan is show and the container dosen't start.

java.lang.ClassNotFoundException: org.keycloak.models.sessions.infinispan.entities.RootAuthenticationSessionEntity$External

We arent't using any special parameters and infinispan isn't external

Environment: Kubernetes RKE2 1.30.3 Database: Postgres 16

Are you using any custom parameters or values?

No response

What is the expected behavior?

Normal Keycloak Startup

What do you see instead?

The Following Error in the logs.

java.lang.ClassNotFoundException: org.keycloak.models.sessions.infinispan.entities.RootAuthenticationSessionEntity$External

Additional information

No response

Bykow commented 6 days ago

I'm also seeing a similar error after update the helm chart from 23.0.0 to 24.0.0 .

error.log

javsalgar commented 5 days ago

Hi,

As you are upgrading between major versions, it may be required to perform some manual steps. Did you check the upgrading guide? https://www.keycloak.org/docs/latest/upgrading/index.html#migrating-to-26-0-0

To help debugging the issue, you may want to set diagnosticMode.enabled=true value

Bykow commented 5 days ago

@VonNao I fixed my issue by scaling down to 1 (one) replicas while performing the initial upgrade.

https://github.com/keycloak/keycloak/issues/33744

I then scaled it back to 2 replicas.

Jojoooo1 commented 1 day ago

Upgrade between major release is not possible when you have multiple replica.