Re: [jgroups-users] Wildfly (KeyCloak) HA on AWS EC2 with docker - cluster is up but login fails

Questions/problems related to using JGroups <[email protected]>
Newsgroups gmane.comp.java.javagroups.general
Message-ID <[email protected]>
Thanks.

Issue seems to be resolved, the problem was with the DB, it was't shared between them.
The cluster configuration was correct.



-------- Original message --------
From: "JGroups - General mailing list [via JGroups]" <[email protected]>
Date: 8/19/16 18:47 (GMT+02:00)
To: Haim Vana <[email protected]>
Subject: Re: [jgroups-users] Wildfly (KeyCloak) HA on AWS EC2 with docker - cluster is up but login fails

I'm not familiar with KeyCloak, just with the cluster, which you
mentioned, seems to work.
If you can (docker) attach to the docker container, you could use
jconsole or probe.sh to see what the cluster is doing

On 17/08/16 11:45, Questions/problems related to using JGroups wrote:

> Hi,
>
> We are trying to set Wildfly 10 (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:
>
> WARN [org.keycloak.events] (default task-10) type=LOGIN_ERROR,
> realmId=master, clientId=null, userId=null, ipAddress=172.30.200.171,
> error=invalid_code
>
> we have followed this
> (http://lists.jboss.org/pipermail/keycloak-user/2016-February/004940.html<https://emea01.safelinks.protection.outlook.com/?url=http%3a%2f%2flists.jboss.org%2fpipermail%2fkeycloak-user%2f2016-February%2f004940.html&data=01%7c01%7chaimv%40perfectomobile.com%7c59245ef626624e9fd0ec08d3c84824a0%7cceb4c662d6994e7da0bd272619a46977%7c1&sdata=8WhK1JfEYo9LftMg0TNikUVvZzQhUeL%2buqBwVqmE6lg%3d> )
> post but used S3_PING instead of JDBC_PING.
>
> It seems that the nodes detect each other:
>
> INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport]
> (Incoming-2,ee,6dbce1e2a05a) ISPN000094: Received new cluster view for
> channel keycloak: [6dbce1e2a05a|1] (2) [6dbce1e2a05a, 75f2b2e98cfd]
>
> We suspect that the nodes doesn't communicate with each other, when we
> queried the jboss mbean "jboss.as.expr:subsystem=jgroups,channel=ee" the
> result was:
> jgroups,channel=ee = [6dbce1e2a05a|1] (2) [6dbce1e2a05a, 75f2b2e98cfd]
> jgroups,channel=ee  receivedMessages = 0
> jgroups,channel=ee  sentMessages = 0
>
> And for the second node:
> jgroups,channel=ee = [6dbce1e2a05a|1] (2) [6dbce1e2a05a, 75f2b2e98cfd]
> jgroups,channel=ee  receivedMessages = 0
> jgroups,channel=ee  sentMessages = 5
>
>
> We also verified that the TCP  ports 57600 and 7600 are open.
>
> Any idea what might cause it ?
>
>
> Here is the relevant standalone-ha.xml configuration and below is that
> startup command:
>
> <subsystem xmlns="urn:jboss:domain:jgroups:4.0">
>              <channels default="ee">
>                  <channel name="ee" stack="tcp"/>
>              </channels>
>              <stacks>
>                  <stack name="udp">
>                      <transport type="UDP" socket-binding="jgroups-udp"/>
>                      <protocol type="PING"/>
>                      <protocol type="MERGE3"/>
>                      <protocol type="FD_SOCK"
> socket-binding="jgroups-udp-fd"/>
>                      <protocol type="FD_ALL"/>
>                      <protocol type="VERIFY_SUSPECT"/>
>                      <protocol type="pbcast.NAKACK2"/>
>                      <protocol type="UNICAST3"/>
>                      <protocol type="pbcast.STABLE"/>
>                      <protocol type="pbcast.GMS"/>
>                      <protocol type="UFC"/>
>                      <protocol type="MFC"/>
>                      <protocol type="FRAG2"/>
>                  </stack>
>                  <stack name="tcp">
>                      <transport type="TCP" socket-binding="jgroups-tcp">
>                          <property
> name="external_addr">200.129.4.189</property>
>                      </transport>
>                      <protocol type="S3_PING">
>                                  <property
> name="access_key">AAAAAAAAAAAAAA</property>
>                                  <property
> name="secret_access_key">BBBBBBBBBBBBBB</property>
>                                  <property
> name="location">CCCCCCCCCCCCCCCCCCCC</property>
>                  </protocol>
>                      <protocol type="MERGE3"/>
>                      <protocol type="FD_SOCK"
> socket-binding="jgroups-tcp-fd">
>                          <property
> name="external_addr">200.129.4.189</property>
>                      </protocol>
>                      <protocol type="FD"/>
>                      <protocol type="VERIFY_SUSPECT"/>
>                      <protocol type="pbcast.NAKACK2"/>
>                      <protocol type="UNICAST3"/>
>                      <protocol type="pbcast.STABLE"/>
>                      <protocol type="pbcast.GMS"/>
>                      <protocol type="MFC"/>
>                      <protocol type="FRAG2"/>
>                  </stack>
>              </stacks>
>          </subsystem>
>
>
>          <socket-binding name="jgroups-tcp" interface="public" port="7600"/>
>          <socket-binding name="jgroups-tcp-fd" interface="public"
> port="57600"/>
>
> And we start the server using the below ($INTERNAL_HOST_IP is the container
> internal IP address):
> standalone.sh -c=standalone-ha.xml -b=$INTERNAL_HOST_IP
> -bmanagement=$INTERNAL_HOST_IP -bprivate=$INTERNAL_HOST_IP
>
>
> Any help will be appreciated.
>
>
>
>
> --
> View this message in context: http://jgroups.1086181.n5.nabble.com/Wildfly-KeyCloak-HA-on-AWS-EC2-with-docker-cluster-is-up-but-login-fails-tp11187.html<https://emea01.safelinks.protection.outlook.com/?url=http%3a%2f%2fjgroups.1086181.n5.nabble.com%2fWildfly-KeyCloak-HA-on-AWS-EC2-with-docker-cluster-is-up-but-login-fails-tp11187.html&data=01%7c01%7chaimv%40perfectomobile.com%7c59245ef626624e9fd0ec08d3c84824a0%7cceb4c662d6994e7da0bd272619a46977%7c1&sdata=VzUwcgXOboLMHY9d3UpstRc7YVmW9DHgFwId%2byVLnCY%3d>
> Sent from the JGroups - General mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> javagroups-users mailing list
> [hidden email]</user/SendEmail.jtp?type=node&node=11190&i=0>
> https://lists.sourceforge.net/lists/listinfo/javagroups-users<https://emea01.safelinks.protection.outlook.com/?url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fjavagroups-users&data=01%7c01%7chaimv%40perfectomobile.com%7c59245ef626624e9fd0ec08d3c84824a0%7cceb4c662d6994e7da0bd272619a46977%7c1&sdata=8AtNvWknjLJgSQTwJqRNkXeBTSS1ao9QqbnRPygjRgo%3d>
>

--
Bela Ban, JGroups lead (http://www.jgroups.org<https://emea01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.jgroups.org&data=01%7c01%7chaimv%40perfectomobile.com%7c59245ef626624e9fd0ec08d3c84824a0%7cceb4c662d6994e7da0bd272619a46977%7c1&sdata=VYAO6w4gjkdIsQBwW%2b%2bcjo37GAFPX0Jxqgwroj25Zkg%3d>)


------------------------------------------------------------------------------
_______________________________________________
javagroups-users mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=11190&i=1>
https://lists.sourceforge.net/lists/listinfo/javagroups-users<https://emea01.safelinks.protection.outlook.com/?url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fjavagroups-users&data=01%7c01%7chaimv%40perfectomobile.com%7c59245ef626624e9fd0ec08d3c84824a0%7cceb4c662d6994e7da0bd272619a46977%7c1&sdata=8AtNvWknjLJgSQTwJqRNkXeBTSS1ao9QqbnRPygjRgo%3d>


________________________________
If you reply to this email, your message will be added to the discussion below:
http://jgroups.1086181.n5.nabble.com/Wildfly-KeyCloak-HA-on-AWS-EC2-with-docker-cluster-is-up-but-login-fails-tp11187p11190.html<https://emea01.safelinks.protection.outlook.com/?url=http%3a%2f%2fjgroups.1086181.n5.nabble.com%2fWildfly-KeyCloak-HA-on-AWS-EC2-with-docker-cluster-is-up-but-login-fails-tp11187p11190.html&data=01%7c01%7chaimv%40perfectomobile.com%7c59245ef626624e9fd0ec08d3c84824a0%7cceb4c662d6994e7da0bd272619a46977%7c1&sdata=sO9pimi65OXPMtqrgEl4CJ2xD04svEplpXCZa0ULa4s%3d>
To unsubscribe from Wildfly (KeyCloak) HA on AWS EC2 with docker - cluster is up but login fails, click here<https://emea01.safelinks.protection.outlook.com/?url=http%3a%2f%2fjgroups.1086181.n5.nabble.com%2ftemplate%2fNamlServlet.jtp%3fmacro%3dunsubscribe_by_code%26node%3d11187%26code%3daGFpbXZAcGVyZmVjdG9tb2JpbGUuY29tfDExMTg3fC0xODkzODQ2MDUw&data=01%7c01%7chaimv%40perfectomobile.com%7c59245ef626624e9fd0ec08d3c84824a0%7cceb4c662d6994e7da0bd272619a46977%7c1&sdata=xf9wJYD1h0OMRxrX2akVParOzCikjpoM8dmoop5DDrE%3d>.
NAML<https://emea01.safelinks.protection.outlook.com/?url=http%3a%2f%2fjgroups.1086181.n5.nabble.com%2ftemplate%2fNamlServlet.jtp%3fmacro%3dmacro_viewer%26id%3dinstant_html%2521nabble%253Aemail.naml%26base%3dnabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace%26breadcrumbs%3dnotify_subscribers%2521nabble%253Aemail.naml-instant_emails%2521nabble%253Aemail.naml-send_instant_email%2521nabble%253Aemail.naml&data=01%7c01%7chaimv%40perfectomobile.com%7c59245ef626624e9fd0ec08d3c84824a0%7cceb4c662d6994e7da0bd272619a46977%7c1&sdata=KaLxxLT%2fJ8dToBR%2fFfQCZF8sk6nvHfIzVA3IFxRQmyI%3d>
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.




--
View this message in context: http://jgroups.1086181.n5.nabble.com/Wildfly-KeyCloak-HA-on-AWS-EC2-with-docker-cluster-is-up-but-login-fails-tp11187p11191.html
Sent from the JGroups - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
javagroups-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/javagroups-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.