Cannot connect to remote WildFly management console.
george.labuschagne Sep 6, 2018 9:19 AMHi all
I cannot connect to a remote running WildFly management console. I can however open the console if logged in locally or view the management web site.
Here is my startup parameters:
./standalone.sh -b=0.0.0.0 -bmanagement=0.0.0.0 --debug
I also tried with:
./standalone.sh -b=192.168.0.80 -bmanagement=192.168.0.80 --debug
The last lines of my log says:
13:17:37,393 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server 13:17:37,397 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://192.168.0.80:9990/management 13:17:37,398 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://192.168.0.80:9990 13:17:37,398 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 14.0.0.Final (WildFly Core 6.0.1.Final) started in 48453ms - Started 1784 of 1957 services (331 services are lazy, passive or on-demand)
The command I use to attempt to connect from a local WildFly 14 - same as server - bin directory on my local machine is:
./jboss-cli.sh --connect --controller=remote+http://192.168.0.80:9990
All required ports are opened on the server (else the web site would not work either).
I get a request to authenticate against:
./jboss-cli.sh jboss-cli.sh --connect --controller=remote+http://192.168.0.80:9990 Picked up _JAVA_OPTIONS: -Xms512m -Xmx2g Authenticating against security realm: ManagementRealm Username: myuser Password: Failed to connect to the controller: The controller is not available at 192.168.0.80:9990: java.net.ConnectException: WFLYPRT0023: Could not connect to remote+http://192.168.0.80:9990. The connection timed out: WFLYPRT0023: Could not connect to remote+http://192.168.0.80:9990. The connection timed out
The error I get is:
Failed to connect to the controller: The controller is not available at 192.168.0.80:9990: java.net.ConnectException: WFLYPRT0023: Could not connect to remote+http://192.168.0.80:9990. The connection timed out: WFLYPRT0023: Could not connect to remote+http://192.168.0.80:9990. The connection timed out
I need to be able to connect to this remote management console for remote debugging via IntelliJ.
This is nmap reports, first one from the server running WildFly, second from devbox trying to connect to WildFly:
Host is up (0.0021s latency). Not shown: 990 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 80/tcp open http 111/tcp open rpcbind 443/tcp open https 873/tcp open rsync 3306/tcp open mysql 5432/tcp open postgresql 8080/tcp open http-proxy 8443/tcp open https-alt Nmap done: 1 IP address (1 host up) scanned in 0.13 seconds
Host is up (0.0040s latency). Not shown: 994 filtered ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 873/tcp open rsync 8009/tcp closed ajp13 8080/tcp open http-proxy 8443/tcp open https-alt Nmap done: 1 IP address (1 host up) scanned in 16.17 seconds
This also appears in the server log when trying to remotely connect:
WARN [org.jboss.as.domain.management.security] (default I/O-6) WFLYDM0113: Generated self signed certificate at /home/edsadmin/devbuild/wildfly-14.0.0.Final/standalone/configuration/application.keystore. Please note that self signed certificates are not secure, and should only be used for testing purposes. Do not use this self signed certificate in production. SHA-1 fingerprint of the generated key is 37:a5:dd:3a:1b:0e:1b:ba:48:89:23:be:e6:d6:21:14:61:85:18:90 SHA-256 fingerprint of the generated key is 47:a2:5b:e4:73:d0:54:62:90:8b:a2:0f:e1:03:f2:c7:02:c6:fe:04:6f:ab:fe:85:31:35:99:31:11:b4:3c:95
OS is CentOS in both cases.
Any ideas please?