New Host Controller can not connect to Domain Controller with connection timed out error in JBoss EAP 6/7.

Solution Verified - Updated -

Issue

  • Host controller can not connect with the Domain controller. It is possible to ping from Host to Domain, open connection with telnet and Domain Controller is listening on right ip and port:
netstat -nlp | grep :9999
tcp        0      0 ip:9999         0.0.0.0:*                   LISTEN      12283/java          

Host Controller log:

[Host Controller] 11:28:31,807 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller at remote://primarydomain:9999 -- java.net.ConnectException: JBAS012144: Could not connect to remote://primarydomain:9999. The connection timed out
[Host Controller] 11:28:37,810 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller at remote://primarydomain:9999 -- java.net.ConnectException: JBAS012144: Could not connect to remote://primarydomain:9999. The connection timed out
[Host Controller] 11:28:43,812 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller at remote://primarydomain:9999 -- java.net.ConnectException: JBAS012144: Could not connect to remote://primarydomain:9999. The connection timed out
[Host Controller] 11:28:49,815 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller at remote://primarydomain:9999 -- java.net.ConnectException: JBAS012144: Could not connect to remote://primarydomain:9999. The connection timed out
11:28:53,325 INFO  [org.jboss.as.process] (Shutdown thread) JBAS012016: Shutting down process controller
11:28:53,326 INFO  [org.jboss.as.process.Host Controller.status] (Shutdown thread) JBAS012018: Stopping process 'Host Controller'
ping[Host Controller] 11:28:55,818 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller at remote://primarydomain:9999 -- java.net.ConnectException: JBAS012144: Could not connect to remote://primarydomain:9999. The connection timed out
 [Host Controller] 11:29:01,820 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller at remote://primarydomain:9999 -- java.net.ConnectException: JBAS012144: Could not connect to remote://primarydomain:9999. The connection timed out
[Host Controller] 11:29:01,825 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could not connect to remote domain controller at remote://primarydomain:9999 -- java.lang.IllegalStateException: JBAS010951: Could not connect to master in 5 attempts within 30000 ms
[Host Controller] 11:29:01,825 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS016581: No domain controller discovery options remain.
[Host Controller] 11:29:01,826 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010901: Could not connect to master. Aborting. Error was: java.lang.IllegalStateException: JBAS016519: Tried all domain controller discovery option(s) but unable to connect
  • We are having this behavior when it comes to connecting to JBoss CLI by console, usually, the second attempt allows the connection, our JBoss version is "JBoss Enterprise Application Platform - Version 6.2.4.GA"
$ ./jboss/bin/jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect 10.0.0.40
The controller is not available at 10.0.0.40:9999: java.net.ConnectException: JBAS012144: Could not connect to remote://10.0.0.40:9999. The connection timed out: JBAS012144: Could not connect to remote://10.0.0.40:9999. The connection timed out
[disconnected /] connect 10.0.0.40
[standalone@10.2.2.40:9999 /]

please your help identifying why this connection problem happens

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 6.x
Red Hat JBoss Enterprise Application Platform (EAP) 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content