Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-8978

migration to 4.4 fails with large number of realms

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Rejected
    • Affects Version/s: 4.5.0.Final, 4.6.0.Final
    • Fix Version/s: None
    • Component/s: Migration
    • Labels:
    • Environment:

      Debian, Keycloak 4.5 in docker, Database MySQL 5.7.18

    • Steps to Reproduce:
      Hide

      1) Create 150-200 realms in KC Version 3.4 with about 20 clients per realm.
      2) Try to upgrade to KC Version 4.5 (or 4.6)

      Show
      1) Create 150-200 realms in KC Version 3.4 with about 20 clients per realm. 2) Try to upgrade to KC Version 4.5 (or 4.6)
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      We have to upgrade next week to at least 4.5 version but migration of database schema fails with following timeout:

      22:06:17,842 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0348: Timeout after [300] seconds waiting for service container stability. Operation will roll back. Step that first updated the service container was 'add' at address '[
          ("core-service" => "management"),
          ("management-interface" => "http-interface")
      ]'

      It happens while doing following migration operations over all realms:

      22:06:01,515 DEBUG [org.keycloak.migration.migrators.MigrateTo4_0_0] (ServerService Thread Pool – 58) Adding defaultClientScopes for realm 'juliusbaer'
      22:06:05,077 DEBUG [org.keycloak.migration.migrators.MigrateTo4_0_0] (ServerService Thread Pool – 58) Adding client scope 'offline_access' as optional scope to client 'vwd-gateway' in realm 'juliusbaer'.
      22:06:05,231 DEBUG [org.keycloak.migration.migrators.MigrateTo4_0_0] (ServerService Thread Pool – 58) Adding defaultClientScopes for realm 'demonstration'

      Reason is a large number of realms. We have about 150 realms and a MySQL on SSD so no really slow database.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                chris-tuh Christian Roth
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: