[keycloak-user] Can not logout from demo broker

Andrej P ado.boj.83 at gmail.com
Wed Nov 4 08:20:26 EST 2015


Hi Marko,

thanks for your hints, I went through but still w/o positive result.
I will write my comments inside your hints.
I attached 2 files: domain-idbt.xml - with added sections for keycloak
                          log.txt - log after start wildfly in command line

Br,
Andrej.

On Tue, Nov 3, 2015 at 4:24 PM, Marko Strukelj <mstrukel at redhat.com> wrote:

> From your descriptions of the problem it sounds like your server-one which
> binds to port 8080 doesn't have keycloak-server configured at all - it's
> using a server group, that uses a different profile than the one you
> configured.
>
    Our group/server/profile setup looks like:

  GROUP SERVER PROFILE   configuration configuration-server-demosetup
idbt-ha   authentication authentication-server-demosetup idbt-ha


>
> There are four profiles in the default domain.xml - default, ha, full, and
> full-ha
>
    In our domain-idbt.xml are only 2 profiles:idbt-ha and idbt-security
and I modified inifinispan for idbt-ha (but ha is only in name not used
inside configuration)

>
> If you want your multiple Keycloak instances to run in high availability
> mode, using a shared Infinispan cache, and a shared database, then that's
> the most complex of all configurations - you have to setup a standalone
> database, use "full-ha" profile to configure the datasource with proper
> database connection url, and configure the distributed Infinispan cache.
> Also add <subsystem xmlns="urn:jboss:domain:keycloak-server:1.1">
> declaration.
>

    I created Keycloak_DS, which was before missing.
    I add : extension; inifinispan and subsystem section for Keycloak
inside my domain-idbt.xml (I attached finally modified domain-idbt.xml) Pls
you can check it inside.

>
>
> In server-groups section define a new group or reuse existing one, and set
> its profile to "full-ha", and use "full-ha-sockets" binding group.
> In host.xml make sure that server definitions have the proper group set.
>
> Then you also have to copy some configurations.
>
> Assuming you have two servers defined in host.xml - called server-one, and
> server-two, create a directory:
>
> $WILDFLY_HOME/domain/servers/server-one/configuration
> $WILDFLY_HOME/domain/servers/server-two/configuration
>
> Then copy the following configurations from standalone/configuration:
>
> cp $WILDFLY_HOME/standalone/configuration/keycloak-server.json
> $WILDFLY_HOME/domain/servers/server-one/configuration/
> cp -r $WILDFLY_HOME/standalone/configuration/themes
> $WILDFLY_HOME/domain/servers/server-one/configuration/
> cp -r $WILDFLY_HOME/standalone/configuration/providers
> $WILDFLY_HOME/domain/servers/server-one/configuration/
>
> cp $WILDFLY_HOME/standalone/configuration/keycloak-server.json
> $WILDFLY_HOME/domain/servers/server-two/configuration/
> cp -r $WILDFLY_HOME/standalone/configuration/themes
> $WILDFLY_HOME/domain/servers/server-two/configuration/
> cp -r $WILDFLY_HOME/standalone/configuration/providers
> $WILDFLY_HOME/domain/servers/server-two/configuration/
>

  Done all creation and copying steps.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151104/6b50e416/attachment-0001.html 
-------------- next part --------------
[root at demosetup /opt/wildfly/bin]$ ./domain.sh --domain-config=domain-idbt.xml --host-config=host-idbt.xml
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /opt/wildfly

  JAVA: java

  JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

=========================================================================

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
13:38:36,641 INFO  [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final
13:38:36,894 INFO  [org.jboss.as.process.Host Controller.status] (main) WFLYPC0018: Starting process 'Host Controller'
[Host Controller] OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[Host Controller] 13:38:37,844 INFO  [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final
[Host Controller] 13:38:38,167 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
[Host Controller] 13:38:38,238 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) starting
[Host Controller] 13:38:39,057 INFO  [org.xnio] (MSC service thread 1-2) XNIO version 3.3.1.Final
[Host Controller] 13:38:39,093 INFO  [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.3.1.Final
[Host Controller] 13:38:39,110 INFO  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0003: Creating http management service using network interface (management) port (9990) securePort (-1)
[Host Controller] 13:38:39,231 INFO  [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 4.0.9.Final
[Host Controller] 13:38:39,332 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) WFLYRMT0001: Listening on 0.0.0.0:9999
[Host Controller] 13:38:42,801 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'job-repository-type' in the resource at address '/profile=idbt-ha/subsystem=batch' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
[Host Controller] 13:38:42,803 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'enabled' in the resource at address '/profile=idbt-ha/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
[Host Controller] 13:38:42,804 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'enabled' in the resource at address '/profile=idbt-ha/subsystem=datasources/data-source=idbt-rest-service-demo-DS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
[Host Controller] 13:38:42,805 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'enabled' in the resource at address '/profile=idbt-ha/subsystem=datasources/data-source=idbt-configuration-service-DS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
[Host Controller] 13:38:42,806 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'enabled' in the resource at address '/profile=idbt-ha/subsystem=datasources/data-source=idbt-device-authentication-service-DS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
[Host Controller] 13:38:42,807 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'enabled' in the resource at address '/profile=idbt-ha/subsystem=datasources/data-source=Keycloak-DS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
[Host Controller] 13:38:42,908 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'job-repository-type' in the resource at address '/profile=idbt-security/subsystem=batch' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
[Host Controller] 13:38:43,479 INFO  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0023: Starting server configuration-server-demosetup
13:38:43,552 INFO  [org.jboss.as.process.Server:configuration-server-demosetup.status] (ProcessController-threads - 3) WFLYPC0018: Starting process 'Server:configuration-server-demosetup'
[Host Controller] 13:38:46,125 INFO  [org.jboss.as.host.controller] (Remoting "demosetup:MANAGEMENT" task-4) WFLYHC0021: Server [Server:configuration-server-demosetup] connected using connection [Channel ID 656dd302 (inbound) of Remoting connection 1d425566 to /127.0.0.1:50449]
[Host Controller] 13:38:46,193 INFO  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0023: Starting server authentication-server-demosetup
[Host Controller] 13:38:46,246 INFO  [org.jboss.as.host.controller] (server-registration-threads - 1) WFLYHC0020: Registering server configuration-server-demosetup
13:38:46,270 INFO  [org.jboss.as.process.Server:authentication-server-demosetup.status] (ProcessController-threads - 3) WFLYPC0018: Starting process 'Server:authentication-server-demosetup'
[Host Controller] 13:38:53,794 INFO  [org.jboss.as.host.controller] (Remoting "demosetup:MANAGEMENT" task-8) WFLYHC0021: Server [Server:authentication-server-demosetup] connected using connection [Channel ID 3e8ad11c (inbound) of Remoting connection 67282c6a to /127.0.0.1:52804]
[Host Controller] 13:38:53,867 INFO  [org.jboss.as.host.controller] (server-registration-threads - 1) WFLYHC0020: Registering server authentication-server-demosetup
[Host Controller] 13:38:53,928 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://0.0.0.0:9990/management
[Host Controller] 13:38:53,929 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://0.0.0.0:9990
[Host Controller] 13:38:53,929 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) (Host Controller) started in 16794ms - Started 47 of 50 services (15 services are lazy, passive or on-demand)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: domain-idbt.xml
Type: text/xml
Size: 42065 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20151104/6b50e416/attachment-0001.xml 


More information about the keycloak-user mailing list