3 Replies Latest reply on May 22, 2014 8:39 AM by erasmo2 marciano2

    Problems setting up HA cluster

    Rick Frey Newbie

      Hello Everyone,

       

      I'm trying to set up a ha cluster according to the guideline AS7 Cluster Howto - JBoss AS 7.1 - Project Documentation Editor (don't be irritated that I'm the last author. I only cleaned up the grammar and formatting as I was going through the guide.)

       

      I have the following infrastructure:

      2 CentOS Servers in the same subnet with all ports open between them

      SSH port 22 open on the above servers to me, so that I can access them using PuTTY

       

      I followed the guide up to the point Dry Run and can get everything working. Then my problem arises.

       

      I set up an SSH tunnel for port 127.0.0.1:9990 to port 19990 on my computer so that I can get to the admin-console. With the set up as in the guideline, I have no access to the admin-console. After changing the master's host.xml (line 5 of the following excerpt) from the IP address of the server to 127.0.0.1, I am able to access the console from my computer over the tunnel I set up with PuTTY (http://127.0.0.1:19990/console)

          <interfaces>
             <interface name="management">
                <!-- <any-address/> -->
                <!-- <inet-address value="${jboss.bind.address.management:192.166.62.200}"/> -->
                <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
             </interface>
             <interface name="public">
                <inet-address value="${jboss.bind.address:127.0.0.1}"/>
             </interface>
             <interface name="unsecure">
               <!-- Used for IIOP sockets in the standard configuration.
             To secure JacORB you need to setup SSL -->
               <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
             </interface>
          </interfaces>
      

      Great! I thought , but then the slave stopped being able to connect to the master:

      [Host Controller] 09:38:35,300 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller 192.166.62.200:9999: java.net.ConnectException: JBAS012144: Could not connect to remote://192.166.62.200:9999. The connection timed out

      What I would like to do is configure the management interface so that the 9990 port uses 127.0.0.1 and the 9999 port 192.166.62.200, the actual IP of the master. But I can't find a way to configure different IPs for the native-interface and the http-interface of the management-interfaces.

       

      I know that I could open up the firewall so that I can access the 9990 port from my computer and then get to the console with http://<full-ip-address>:9990/console but I would like to know if I can also make some configuration work with my present setup.

       

      BTW, using <any-address> also didn't help me. The master starts, but with errors:

      [Server:server-one] 10:27:46,274 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.host.controller.client: org.jboss.msc.service.StartException in service jboss.host.controller.client: java.net.ConnectException: JBAS012144: Could not connect to remote://0.0.0.0:9999. The connection timed out
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerServerClient.start(HostControllerServerClient.java:161) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
      [Server:server-one]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      [Server:server-one]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_55]
      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_55]
      [Server:server-one]     at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_55]
      [Server:server-one] Caused by: java.net.ConnectException: JBAS012144: Could not connect to remote://0.0.0.0:9999. The connection timed out
      [Server:server-one]     at org.jboss.as.protocol.ProtocolChannelClient.connectSync(ProtocolChannelClient.java:155) [jboss-as-protocol-7.1.1.Final.jar:7.1.1.Final]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerServerConnection.openChannel(HostControllerServerConnection.java:158) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerServerConnection.connect(HostControllerServerConnection.java:86) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerServerClient.start(HostControllerServerClient.java:135) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
      [Server:server-one]     ... 5 more
      [Server:server-one]
      [Server:server-one] 10:27:46,290 ERROR [org.jboss.as] (MSC service thread 1-1) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 16839ms - Started 163 of 240 services (1 services failed or missing dependencies, 75 services are passive or on-demand)
      [Server:server-two] 10:27:46,315 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.host.controller.client: org.jboss.msc.service.StartException in service jboss.host.controller.client: java.net.ConnectException: JBAS012144: Could not connect to remote://0.0.0.0:9999. The connection timed out
      [Server:server-two]     at org.jboss.as.server.mgmt.domain.HostControllerServerClient.start(HostControllerServerClient.java:161) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
      [Server:server-two]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      [Server:server-two]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      [Server:server-two]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_55]
      [Server:server-two]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_55]
      [Server:server-two]     at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_55]
      [Server:server-two] Caused by: java.net.ConnectException: JBAS012144: Could not connect to remote://0.0.0.0:9999. The connection timed out
      [Server:server-two]     at org.jboss.as.protocol.ProtocolChannelClient.connectSync(ProtocolChannelClient.java:155) [jboss-as-protocol-7.1.1.Final.jar:7.1.1.Final]
      [Server:server-two]     at org.jboss.as.server.mgmt.domain.HostControllerServerConnection.openChannel(HostControllerServerConnection.java:158) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
      [Server:server-two]     at org.jboss.as.server.mgmt.domain.HostControllerServerConnection.connect(HostControllerServerConnection.java:86) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
      [Server:server-two]     at org.jboss.as.server.mgmt.domain.HostControllerServerClient.start(HostControllerServerClient.java:135) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
      [Server:server-two]     ... 5 more
      [Server:server-two]
      [Server:server-two] 10:27:46,331 ERROR [org.jboss.as] (MSC service thread 1-3) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 16701ms - Started 163 of 240 services (1 services failed or missing dependencies, 75 services are passive or on-demand)