Rajesh Kondaveeti
asked on
jboss with docker
domain controller on centos <-- host machine
host controller on centos <-- docker
installed jboss on centos docker image and tried to start standalone server it starts with out any issues. but if i want to start slave and sync it to domain i get error as below:
started docker with exposing ports as below:
docker run -p 18080:808 -p 19990:9990 -it jboss_test
15:57:18,045 DEBUG [org.jboss.modules] (Controller Boot Thread) Module org.jboss.as.cli:main defined by local module loader @26538d04 (finder: local module finder @374f1544 (roots: /opt/jboss-eap-6.2/modules ,/opt/jbos s-eap-6.2/ modules/sy stem/layer s/base))
15:57:23,477 DEBUG [org.jboss.as.host.control ler] (Controller Boot Thread) failed to connect to 10.10.10.10:9999: java.net.ConnectException: JBAS012144: Could not connect to remote://10.10.10.10:9999. The connection timed out
at org.jboss.as.protocol.Prot ocolConnec tionUtils. connectSyn c(Protocol Connection Utils.java :131) [jboss-as-protocol-7.3.0.F inal-redha t-14.jar:7 .3.0.Final -redhat-14 ]
at org.jboss.as.host.controll er.RemoteD omainConne ction.open Connection (RemoteDom ainConnect ion.java:1 98) [jboss-as-host-controller- 7.3.0.Fina l-redhat-1 4.jar:7.3. 0.Final-re dhat-14]
at org.jboss.as.host.controll er.RemoteD omainConne ction$Init ialConnect Task.conne ct(RemoteD omainConne ction.java :560) [jboss-as-host-controller- 7.3.0.Fina l-redhat-1 4.jar:7.3. 0.Final-re dhat-14]
at org.jboss.as.protocol.Prot ocolConnec tionManage r.connect( ProtocolCo nnectionMa nager.java :70) [jboss-as-protocol-7.3.0.F inal-redha t-14.jar:7 .3.0.Final -redhat-14 ]
at org.jboss.as.host.controll er.RemoteD omainConne ction.conn ect(Remote DomainConn ection.jav a:136) [jboss-as-host-controller- 7.3.0.Fina l-redhat-1 4.jar:7.3. 0.Final-re dhat-14]
at org.jboss.as.host.controll er.RemoteD omainConne ctionServi ce.registe r(RemoteDo mainConnec tionServic e.java:194 ) [jboss-as-host-controller- 7.3.0.Fina l-redhat-1 4.jar:7.3. 0.Final-re dhat-14]
at org.jboss.as.host.controll er.DomainM odelContro llerServic e.connectT oDomainMas ter(Domain ModelContr ollerServi ce.java:57 7) [jboss-as-host-controller- 7.3.0.Fina l-redhat-1 4.jar:7.3. 0.Final-re dhat-14]
at org.jboss.as.host.controll er.DomainM odelContro llerServic e.boot(Dom ainModelCo ntrollerSe rvice.java :438) [jboss-as-host-controller- 7.3.0.Fina l-redhat-1 4.jar:7.3. 0.Final-re dhat-14]
at org.jboss.as.controller.Ab stractCont rollerServ ice$1.run( AbstractCo ntrollerSe rvice.java :253) [jboss-as-controller-7.3.0 .Final-red hat-14.jar :7.3.0.Fin al-redhat- 14]
at java.lang.Thread.run(Threa d.java:745 ) [rt.jar:1.7.0_80]
host controller on centos <-- docker
installed jboss on centos docker image and tried to start standalone server it starts with out any issues. but if i want to start slave and sync it to domain i get error as below:
started docker with exposing ports as below:
docker run -p 18080:808 -p 19990:9990 -it jboss_test
15:57:18,045 DEBUG [org.jboss.modules] (Controller Boot Thread) Module org.jboss.as.cli:main defined by local module loader @26538d04 (finder: local module finder @374f1544 (roots: /opt/jboss-eap-6.2/modules
15:57:23,477 DEBUG [org.jboss.as.host.control
at org.jboss.as.protocol.Prot
at org.jboss.as.host.controll
at org.jboss.as.host.controll
at org.jboss.as.protocol.Prot
at org.jboss.as.host.controll
at org.jboss.as.host.controll
at org.jboss.as.host.controll
at org.jboss.as.host.controll
at org.jboss.as.controller.Ab
at java.lang.Thread.run(Threa
ASKER
Hi ,
yes it is the correct port.
firewalls:
i have disabled the iptables on host machine . is there anything i can do in docker side?.
the jboss on docker side has a 8080 port which while i am doing telnet from host machine is getting connection refused message. * if ports are not exposed while starting docker.
i tried to expose ports also in docker and tried to start jboss but it gives the above error
yes it is the correct port.
firewalls:
i have disabled the iptables on host machine . is there anything i can do in docker side?.
the jboss on docker side has a 8080 port which while i am doing telnet from host machine is getting connection refused message. * if ports are not exposed while starting docker.
i tried to expose ports also in docker and tried to start jboss but it gives the above error
Are you able to ping?
ASKER
Hi ,
yes i am able to ping to docker container and from docker container to host.
but the catch is when i start a web server in docker with a port say 80 i get connection refused while doing wget from host
wget http://10.10.10.20:80 <-- give connection refused from host. there is something that i am missing in docker network.
yes i am able to ping to docker container and from docker container to host.
but the catch is when i start a web server in docker with a port say 80 i get connection refused while doing wget from host
wget http://10.10.10.20:80 <-- give connection refused from host. there is something that i am missing in docker network.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i was able to fix the issue with provided solution.
Any firewalls?
Check for open ports.
Is 9999 the correct port?