Upgrading from 23.0.4 to 25.0.6- what should I be aware of?

397 views
Skip to first unread message

Fergus McDowall

unread,
Sep 23, 2024, 8:47:17 AM9/23/24
to keyclo...@googlegroups.com
Total Keycloak n00b here. I have to upgrade a production server running 23.0.4 to 25.0.6- what should I be aware of?

Regards
Fergus

Jon Koops

unread,
Sep 23, 2024, 8:57:55 AM9/23/24
to Fergus McDowall, Keycloak User
You can read about how to upgrade Keycloak in the upgrade guide: https://www.keycloak.org/docs/latest/upgrading/index.html

--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/CAAJKHngwNOXD0Y3aOQ6RJDmNX9weiTbsTFojJw_JBC2bc24AKw%40mail.gmail.com.

Fergus McDowall

unread,
Sep 23, 2024, 9:35:29 AM9/23/24
to Jon Koops, Keycloak User
Thanks for the responses. I'm reading the docs now, but I can't see if you can upgrade directly from 23 to 25, or if you should go 23->24->25? (or even more granular)

Is it OK to simply dump the db and config from 23 into 25 as per the upgrade docs, or will this lead to woe?

F

Fergus McDowall

unread,
Sep 23, 2024, 10:09:45 AM9/23/24
to Ivan Atanasov, Keycloak User
Thanks- will give 23-25 a try in our development environment, making backups as I go :)

F


On Mon, 23 Sept 2024 at 15:52, Ivan Atanasov <iata...@redhat.com> wrote:

That is a great question.

For 23-25, We have been updating incrementally, in place , we do db backup prior the upgrade.

Direct upgrade from 23 to 25 can also work the db changes and migration changes will be applied .

You have to worry about the DB and the Infinispan if you need upgrade without downtime, if you are restarting the cluster and taking down time it will be ok either way.

Some time ago we did jump from 18 - 23 with single update and we did not have tons of issue with the actual migration,

Ivan


On 9/23/24 9:25 AM, Fergus McDowall wrote:
Thanks for the responses. I'm reading the docs now, but I can't see if you can upgrade directly from 23 to 25, or if you should go 23->24->25? (or even more granular)

Is it OK to simply dump the db and config from 23 into 25 as per the upgrade docs, or will this lead to woe?

F

On Mon, 23 Sept 2024 at 14:59, Ivan Atanasov <iata...@redhat.com> wrote:

Hi Fergus,

The release notes are pretty good starting point.

https://www.keycloak.org/docs/latest/release_notes/index.html

ivan

Jon Koops

unread,
Sep 24, 2024, 8:38:52 AM9/24/24
to Fergus McDowall, Ivan Atanasov, Keycloak User
I would recommend going major by major (latest version of each), and making proper backups at every step.

Alexander Schwartz

unread,
Sep 26, 2024, 7:43:03 AM9/26/24
to Fergus McDowall, Keycloak User
If you go major-by-major in your development environment, it might be better to discover items that are not working for you, and verify that things still work as before. 

Having said that, Keycloak supports upgrading and skipping major releases and do for example the automatic database migration in one go, so this is what you can then use in your production environments.





--

Alexander Schwartz, RHCE

He/Him

Principal Software Engineer, Keycloak Maintainer

Red Hat - Germany remote

asch...@redhat.com   

Red Hat GmbH, Registered seat: Werner von Siemens Ring 12, D-85630 Grasbrunn, Germany 
Commercial register: Amtsgericht Muenchen/Munich, HRB 153243,
Managing Directors: Ryan Barnhart, Charles Cachera, Michael O'Neill, Amy Ross
Reply all
Reply to author
Forward
0 new messages