<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    We should create a domain profile for this EC2 config.<br>
    <br>
    <div class="moz-cite-prefix">On 8/16/16 9:59 AM, Aikeaguinea wrote:<br>
    </div>
    <blockquote
cite="mid:1471355948.921113.696855193.408EA451@webmail.messagingengine.com"
      type="cite">
      <title></title>
      <div>Yes, this gets more complicated than your standard
        installation. AWS doesn't allow UDP communication in S3, and you
        also need to configure your Infinispan cache to work while
        you're running in Docker. <br>
      </div>
      <div><br>
      </div>
      <div>There was a thread on this list "Using Keycloak in AWS EC2.
        What are people using? / Infinispan not working" where this was
        discussed; this is from that three describing howI got things
        working:<br>
      </div>
      <div><br>
      </div>
      <div>________________________________________________________</div>
      <div><br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">I just got JGroups/Infinispan with
        JDBC_PING working from inside a<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">Docker cluster in ECS on EC2. I use
        JDBC_PING rather than S3_PING, since<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">I need a database anyway and didn't
        want to have to set up an S3 bucket<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">just for this one purpose. Nicolás, if
        you're on AWS the default UDP<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">transport for JGroups doesn't work
        because multicast isn't supported<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">inside EC2, which may be your problem.<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">Here are the configurations you'd need:<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">1. The JGroups module has to reference
        to the db module. So in<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">jgroups-module.xml I have:<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">  &lt;dependencies&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">    &lt;module
          name="javax.api"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">    &lt;module
          name="org.postgresql.jdbc"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">  &lt;/dependencies&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">2. The standalone-ha.xml has a JGroups
        subsystem (with TCP and<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">JDBC_PING) that looks like the
        configuration below; I read certain<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">variables from the environment, but may
        use the Wildfly vault tool for<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">some of them. The external_addr
        property configurations are only needed<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">if you're inside a Docker container,
        since Wildfly has to read the<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">address of the EC2 instance hosting the
        container to register itself<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">with JGroups. For the initialize_sql
        you can generally use the default,<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">but for Postgres I needed a custom DDL
        because I needed the BYTEA data<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">type which isn't in the default DDL.<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">&lt;subsystem
          xmlns="urn:jboss:domain:jgroups:4.0"&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">      &lt;channels
          default="ee"&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">        &lt;channel
          name="ee" stack="tcp"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">      &lt;/channels&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;"><br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">      &lt;stacks
          default="tcp"&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">        &lt;stack
          name="tcp"&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;transport
          type="TCP" socket-binding="jgroups-tcp"&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            &lt;property<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            name="external_addr"&gt;${env.EXTERNAL_HOST_IP}&lt;/property&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;/transport&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;"><br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;protocol
          type="JDBC_PING"&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            &lt;property<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            name="connection_driver"&gt;org.postgresql.Driver&lt;/property&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            &lt;property<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            name="connection_url"&gt;jdbc:postgresql://${env.POSTGRES_TCP_ADDR}:${env.POSTGRES_TCP_PORT}/${env.POSTGRES_DATABASE}&lt;/property&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            &lt;property<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            name="connection_username"&gt;${env.POSTGRES_USER}&lt;/property&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            &lt;property<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            name="connection_password"&gt;${env.POSTGRES_PASSWORD}&lt;/property&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            &lt;property
          name="initialize_sql"&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">              CREATE
          TABLE IF NOT EXISTS jgroupsping (<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">                own_addr
          VARCHAR(200) NOT NULL,<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">                cluster_name
          VARCHAR(200) NOT NULL,<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">                ping_data
          BYTEA DEFAULT NULL,<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">                PRIMARY
          KEY (own_addr, cluster_name)<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">              )<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            &lt;/property&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;/protocol&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;"><br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;protocol
          type="MERGE3"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;protocol
          type="FD_SOCK" socket-binding="jgroups-tcp-fd"&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            &lt;property<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">            name="external_addr"&gt;${env.EXTERNAL_HOST_IP}&lt;/property&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;/protocol&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;"><br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;protocol
          type="FD"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;protocol
          type="VERIFY_SUSPECT"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;protocol
          type="pbcast.NAKACK2"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;protocol
          type="UNICAST3"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;protocol
          type="pbcast.STABLE"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;protocol
          type="pbcast.GMS"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;protocol
          type="MFC"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">          &lt;protocol
          type="FRAG2"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">        &lt;/stack&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">      &lt;/stacks&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">    &lt;/subsystem&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">3. If you're in a Docker container, you
        have to expose the JGroups ports<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">so they are visible from outside the
        container, so in standalone-ha.xml<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">in the socket bindings I have changed
        to the public interface:<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">      &lt;socket-binding
          name="jgroups-tcp" interface="public"<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">      port="7600"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">      &lt;socket-binding
          name="jgroups-tcp-fd" interface="public"<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">      port="57600"/&gt;<br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">4. For Docker, the startup script needs
        to pass the EXTERNAL_HOST_IP<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">variable. I have a wrapper start script
        that first queries the AWS<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;">instance metadata service at
        169.254.169.254 for the host's private IP address:<br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><br>
      </div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">export
          EXTERNAL_HOST_IP=$(curl -s</span><span class="font"
          style="font-family: menlo, consolas, monospace, sans-serif;"><br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">169.254.169.254/latest/meta-data/local-ipv4)</span><span
          class="font" style="font-family: menlo, consolas, monospace,
          sans-serif;"><br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">exec
          $WILDFLY_HOME/bin/standalone.sh -c standalone-keycloak-ha.xml</span><span
          class="font" style="font-family: menlo, consolas, monospace,
          sans-serif;"><br>
        </span></div>
      <div style="color: rgb(0, 0, 0); font-family: -webkit-standard;
        letter-spacing: normal;"><span class="font" style="font-family:
          menlo, consolas, monospace, sans-serif;">-Djboss.node.name=$HOSTNAME
          -Djgroups.bind_addr=global -b $HOSTNAME</span><span
          class="font" style="font-family: menlo, consolas, monospace,
          sans-serif;"><br>
        </span></div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>On Tue, Aug 16, 2016, at 09:01 AM, Haim Vana wrote:<br>
      </div>
      <blockquote type="cite">
        <div>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">Hi,</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">We are trying to set KeyCloak
                1.9.3 with HA on AWS EC2 with docker, the cluster is up
                without errors however the login fails with the below
                error:</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"><b>WARN [org.keycloak.events]
                  (default task-10) type=LOGIN_ERROR, realmId=master,
                  clientId=null, userId=null, ipAddress=172.30.200.171,
                  error=invalid_code</b></span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">we have followed this (<a
                  moz-do-not-send="true"
href="http://lists.jboss.org/pipermail/keycloak-user/2016-February/004940.html"
                  style="text-decoration: underline; color: rgb(5, 99,
                  193);">http://lists.jboss.org/pipermail/keycloak-user/2016-February/004940.html</a>
                ) post but used S3_PING instead of JDBC_PING.</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">It seems that the nodes detect
                each other:</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"><b>INFO
                  [org.infinispan.remoting.transport.jgroups.JGroupsTransport]
                  (Incoming-2,ee,6dbce1e2a05a) ISPN000094: Received new
                  cluster view for channel keycloak: [6dbce1e2a05a|1]
                  (2) [6dbce1e2a05a, 75f2b2e98cfd]</b></span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">We suspect that the nodes doesn't
                communicate with each other, when we queried the jboss
                mbean "<b>jboss.as.expr:subsystem=jgroups,channel=ee" </b>the
                result was:</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">jgroups,channel=ee =
                [6dbce1e2a05a|1] (2) [6dbce1e2a05a, 75f2b2e98cfd]</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">jgroups,channel=ee 
                receivedMessages = 0</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">jgroups,channel=ee  sentMessages
                = 0</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">And for the second node:</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">jgroups,channel=ee =
                [6dbce1e2a05a|1] (2) [6dbce1e2a05a, 75f2b2e98cfd]</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">jgroups,channel=ee 
                receivedMessages = 0</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">jgroups,channel=ee  sentMessages
                = 5</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">We also verified that the TCP
                 ports 57600 and 7600 are open.</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">Any idea what might cause it ?</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">Here is the relevant
                standalone-ha.xml configuration and below is that
                startup command:</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">&lt;subsystem
                xmlns="urn:jboss:domain:jgroups:4.0"&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">            &lt;channels
                default="ee"&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                &lt;channel
                name="ee" stack="tcp"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">            &lt;/channels&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">            &lt;stacks&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                &lt;stack
                name="udp"&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;transport
                type="UDP" socket-binding="jgroups-udp"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="PING"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="MERGE3"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="FD_SOCK" socket-binding="jgroups-udp-fd"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="FD_ALL"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="VERIFY_SUSPECT"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="pbcast.NAKACK2"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="UNICAST3"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="pbcast.STABLE"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="pbcast.GMS"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="UFC"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="MFC"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="FRAG2"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                &lt;/stack&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                &lt;stack
                name="tcp"&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;transport
                type="TCP" socket-binding="jgroups-tcp"&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                       
                &lt;property
                name="external_addr"&gt;200.129.4.189&lt;/property&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                   
                &lt;/transport&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="S3_PING"&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                        
                       &lt;property
                name="access_key"&gt;AAAAAAAAAAAAAA&lt;/property&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                               
                &lt;property
                name="secret_access_key"&gt;BBBBBBBBBBBBBB&lt;/property&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                               
                &lt;property
                name="location"&gt;CCCCCCCCCCCCCCCCCCCC&lt;/property&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                &lt;/protocol&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="MERGE3"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="FD_SOCK" socket-binding="jgroups-tcp-fd"&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                       
                &lt;property
                name="external_addr"&gt;200.129.4.189&lt;/property&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                   
                &lt;/protocol&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="FD"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="VERIFY_SUSPECT"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="pbcast.NAKACK2"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="UNICAST3"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="pbcast.STABLE"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="pbcast.GMS"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="MFC"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                    &lt;protocol
                type="FRAG2"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">                &lt;/stack&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">            &lt;/stacks&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">        &lt;/subsystem&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">        &lt;socket-binding
                name="jgroups-tcp" interface="public" port="7600"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">        &lt;socket-binding
                name="jgroups-tcp-fd" interface="public"
                port="57600"/&gt;</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">And we start the server using the
                below (<span class="colour" style="color:black"><span
                    class="font" style="font-family:'Courier New'"><span
                      class="size" style="font-size:11.5pt">$INTERNAL_HOST_IP
                      is the container internal IP address):</span></span></span></span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="highlight"
              style="background-color:white"><span class="font"
                style="font-family:Calibri, sans-serif"><span
                  class="size" style="font-size:11pt"><span
                    class="colour" style="color:black"><span
                      class="font" style="font-family:'Courier New'"><span
                        class="size" style="font-size:11.5pt">standalone.sh
                        -c=standalone-ha.xml -b=$INTERNAL_HOST_IP
                        -bmanagement=$INTERNAL_HOST_IP
                        -bprivate=$INTERNAL_HOST_IP</span></span></span></span></span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">Any help will be appreciated.</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">Thanks,</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt">Haim.</span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
          <p style="margin: 0in 0in 0.0001pt;"><span class="font"
              style="font-family:Calibri, sans-serif"><span class="size"
                style="font-size:11pt"> </span></span><br>
          </p>
        </div>
        <div>The information contained in this message is proprietary to
          the sender, protected from disclosure, and may be privileged.
          The information is intended to be conveyed only to the
          designated recipient(s) of the message. If the reader of this
          message is not the intended recipient, you are hereby notified
          that any dissemination, use, distribution or copying of this
          communication is strictly prohibited and may be unlawful. If
          you have received this communication in error, please notify
          us immediately by replying to the message and deleting it from
          your computer. Thank you.<br>
        </div>
        <div><u>_______________________________________________</u><br>
        </div>
        <div>keycloak-user mailing list<br>
        </div>
        <div><a moz-do-not-send="true"
            href="mailto:keycloak-user@lists.jboss.org"
            style="text-decoration: underline; color: rgb(5, 99, 193);">keycloak-user@lists.jboss.org</a><br>
        </div>
        <div><a moz-do-not-send="true"
            href="https://lists.jboss.org/mailman/listinfo/keycloak-user"
            style="text-decoration: underline; color: rgb(5, 99, 193);">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
        </div>
      </blockquote>
      <div><br>
      </div>
      <div id="sig3995191">
        <div class="signature">--<br>
        </div>
        <div class="signature">  Aikeaguinea<br>
        </div>
        <div class="signature">  <a class="moz-txt-link-abbreviated" href="mailto:aikeaguinea@xsmail.com">aikeaguinea@xsmail.com</a><br>
        </div>
        <div class="signature"><br>
        </div>
      </div>
      <div><br>
      </div>
      <pre>-- 
<a class="moz-txt-link-freetext" href="http://www.fastmail.com">http://www.fastmail.com</a> - Same, same, but different...
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>