Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-3481

Lack of coordination in database creation in 26.3.0 causes deployment failures (Reopen) [GHI#41801]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [x] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      core

      Describe the bug

      It is a replacement for 41048 . I don't have permissions to reopen issues. So creating a new one.

      Problem in 41048 was not addressed. If you install several Keycloaks in parallel one of them start and others crashing as was shown in the original issue. Root cause of this is disappearing in 26.3 coordination between Keycloak instances when they are creating database schema.

      Only difference from original issue, in 26.3.2 error it is

      2025-08-12 01:01:03,875 WARN [org.mariadb.jdbc.message.server.ErrorPacket] (main) Error: 1062-23000: Duplicate entry '26.3.2' for key 'UK_MIGRATION_VERSION'

      When 26.3.0 it was Multiple primary key defined on table DATABASECHANGELOG.

      Version

      26.3.2

      Regression

      [x] The issue is a regression

      Expected behavior

      Several Keycloaks instances can be deployed simultaniously, as it was before 26.3.0

      Actual behavior

      See description

      How to Reproduce?

      See 41048

      Anything else?

      No response

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak Core (shared)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: