3 Replies Latest reply on Feb 27, 2018 5:45 PM by joseph.pugh

    Domain Controller Failover Error

    joseph.pugh

      I've read the WildFly book and the online documentation for configuring the Domain Controller failover.  I recently tested my setup and the following error was logged on the Host controller attempting to connect to the backup domain controller (actual IP address obfuscated):

       

      [Host Controller] 15:38:42,578 WARN [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0001: Could not connect to remote domain controller remote://XXX.XXX.XXX.XXX:9999 – java.io.IOException: Unknown service name

       

      I haven't been able to find any information on this error.  I've tested networking and the port on the backup domain controller is available.  Here is the <domain-controller> entry from the Host controller attempting to connect

       

      <domain-controller>

              <remote protocol="remote" host="${jboss.domain.master.address:Y.YY.Y}" port="${jboss.domain.master.port:9999}" security-realm="ManagementRealm" username="user">

                <discovery-options>

                  <static-discovery name="discovery" protocol="${jboss.domain.master.protocol:remote}" host="${jboss.domain.master.address:X.X.X.X}" port="${jboss.domain.master.port:9999}"/>

                </discovery-options>

              </remote>

          </domain-controller>

       

      Thanks in advance to anyone who can share their ideas or provide insight into the error.  If needed I can provide additional configuration information.

        • 1. Re: Domain Controller Failover Error
          andey

          Can you try to add this property to your host-controller startup parameters, like below:

           

          $JBOSS_HOME/bin/domain.sh -Djboss.domain.master.address=xxx.xxx.xxx.xxx --host-config=host-slave.xml -Djboss.host.domain.connection.timeout=60000

           

          If you are starting your JBoss as a service, you will need to add this property to your domain.conf file, like below:

           

          JAVA_OPTS="$JAVA_OPTS -Djboss.host.domain.connection.timeout=60000"

          • 2. Re: Domain Controller Failover Error
            joseph.pugh

            Anup Dey,

            Thanks for your suggestion.  Would you mind clarifying your thought behind it?

             

            The log entry I listed is presented 10 times as I would expect based on how the Host Controller attempts to connect to a Domain Controller.  Should I expect a different message if the Domain Controller is not responding in a timely manner?

            • 3. Re: Domain Controller Failover Error
              joseph.pugh

              Found the solution in the RedHat JBoss EAP documentation. 

               

              1.7. About Domain Controller Discovery and Failover - Red Hat Customer Portal

               

              The "Promoting a host controller to be the domain controller" section/information isn't presented in the WildFly documentation.

               

              The commands are presented at various locations, but never referenced/used in an example that shows their use for promoting the Host Controller running with the --backup flag.