Error upgrading to 12.0.1

After upgrading from 8.0.1 to 12.0.1, switching realms in the admin console results the following error:

Resource not found ...
We could not find the resource you are looking for. Please make sure the URL you entered is correct.
Go to the home page

Any idea how to resolve this?

And the log shows:

2021-01-18 15:52:34,040 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 58) WFLYCLINF0002: Started authorizationRevisions cache from keycloak container
2021-01-18 15:52:34,042 INFO  [org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory] (ServerService Thread Pool -- 58) Node name: kcdev1, Site name: null
2021-01-18 15:52:34,851 INFO  [org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory] (ServerService Thread Pool -- 58) Database info: {databaseUrl=jdbc:postgresql://localhost:5432/keycloak, databaseUser=kcuser, databaseProduct=PostgreSQL 10.15 (Ubuntu 10.15-0ubuntu0.18.04.1), databaseDriver=PostgreSQL JDBC Driver 42.2.9}
2021-01-18 15:52:38,339 INFO  [org.keycloak.connections.jpa.updater.liquibase.LiquibaseJpaUpdaterProvider] (ServerService Thread Pool -- 58) Updating database. Using changelog META-INF/jpa-changelog-master.xml
2021-01-18 15:52:38,836 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 58) HHH000204: Processing PersistenceUnitInfo [
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.SecurityActions$InVmActions$1.runInVm(SecurityActions.java:149)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.SecurityActions.runInVm(SecurityActions.java:49)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient.runOperation(ModelControllerClientFactoryImpl.java:249)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient.access$600(ModelControllerClientFactoryImpl.java:114)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$2$1.run(ModelControllerClientFactoryImpl.java:199)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$2$1.run(ModelControllerClientFactoryImpl.java:194)
        at org.wildfly.security.elytron-private@1.13.1.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:304)
        at org.wildfly.security.elytron-private@1.13.1.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:270)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:198)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:175)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$2.run(ModelControllerClientFactoryImpl.java:194)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)

2021-01-18 15:48:14,850 INFO  [org.jboss.as.controller.management-deprecated] (pool-4-thread-2) WFLYCTL0395: Operation read-attribute against the resource at address /subsystem=jgr
oups/stack=tcp/transport=TCP/property=port_range is deprecated, and it might be removed in future version. See the the output of the read-operation-description operation to learn m
ore about the deprecation.
2021-01-18 15:48:14,851 INFO  [org.jboss.as.controller.management-deprecated] (pool-4-thread-2) WFLYCTL0395: Operation remove against the resource at address /subsystem=jgroups/sta
ck=tcp/transport=TCP/property=port_range is deprecated, and it might be removed in future version. See the the output of the read-operation-description operation to learn more abou
t the deprecation.
2021-01-18 15:48:14,852 ERROR [org.jboss.as.controller.management-operation] (pool-4-thread-2) WFLYCTL0013: Operation ("map-remove") failed - address: ([
    ("subsystem" => "jgroups"),
    ("stack" => "tcp"),
    ("transport" => "TCP")
]): java.lang.IllegalArgumentException
        at org.jboss.dmr@1.5.1.Final//org.jboss.dmr.ModelValue.removeChild(ModelValue.java:119)
        at org.jboss.dmr@1.5.1.Final//org.jboss.dmr.ModelNode.remove(ModelNode.java:1030)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.operations.global.MapOperations$MapRemoveHandler.updateModel(MapOperations.java:154)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.operations.global.AbstractCollectionHandler.lambda$execute$0(AbstractCollectionHandler.java:105)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:1005)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:744)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1415)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:431)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:248)
        at org.wildfly.security.elytron-private@1.13.1.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:304)
        at org.wildfly.security.elytron-private@1.13.1.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:270)
        at org.jboss.as.controller@13.0.3.Final//org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:248)

Hello,

It’s an old post but I have the same error when trying to migrate from keycloak 11 to 13.

Did you finally find a solution.

Thx,
Christophe