Remote Control Broker

So, the Remote Control Server install/config went fine. It’s the Broker that kicking my butt. As far as I can tell, I’ve got it configured properly. I’m doing this on a test server, so there’s no firewall involved. The idea is if I get this working I migrate the settings to the final server in the DMZ. When I choose “Start Broker Session”, it get to the point where the Controller opens, then get an error that it won’t connect. I’ve enabled the trace for the controller, and all seems fine until:

2018-07-30 20:03:05.673 GMT 42 INFO - Protocol SSL_TLSv2 not supported
2018-07-30 20:03:05.673 GMT 42 INFO - Protocol SSL_TLS not supported
2018-07-30 20:03:05.673 GMT 42 FINE - Successfully initialised context with protocol TLSv1.2
2018-07-30 20:03:05.673 GMT 42 INFO - Using default random number generator
2018-07-30 20:03:05.673 GMT 42 INFO - Using TLS provider: SunJSSE
2018-07-30 20:03:05.673 GMT 42 FINEST - Enabling cipher suites, excluding RC4
2018-07-30 20:03:05.673 GMT 42 FINEST - Enabled updated cipher suites on SSLSocket
2018-07-30 20:03:05.673 GMT 42 INFO - TLS Socket has the following protocols enabled: TLSv1,TLSv1.1,TLSv1.2
2018-07-30 20:03:05.673 GMT 42 INFO - Restricting it to AES encryption options
2018-07-30 20:03:06.683 GMT 42 SEVERE - Unable to initiate TLS socket
2018-07-30 20:03:06.683 GMT 42 SEVERE - TLS connection error
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at com.ibm.uk.greenock.ayudame.protocol.forthv2.ForthRelayConnection.createSSLSocket(Unknown Source)
at com.ibm.uk.greenock.ayudame.protocol.forthv2.ForthRelayConnection.connect(Unknown Source)
at com.ibm.uk.greenock.ayudame.protocol.forthv2.ForthRelaySessionManager.establishSessionAndLogin(Unknown Source)
at com.ibm.uk.greenock.ayudame.protocol.forthv2.ForthRelaySessionManager.createSessionSequentially(Unknown Source)
at com.ibm.uk.greenock.ayudame.protocol.forthv2.ForthRelaySessionManager.createSession(Unknown Source)
at com.ibm.uk.greenock.ayudame.app.TRCSessionModel.startOutgoingSession(Unknown Source)
at com.ibm.uk.greenock.ayudame.app.TRCSessionModel.startSession(Unknown Source)
at com.ibm.uk.greenock.ayudame.app.TRCSessionModel.startModel(Unknown Source)
at com.ibm.uk.greenock.ayudame.app.SessionModel.start(Unknown Source)
at com.ibm.uk.greenock.ayudame.app.Launcher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2018-07-30 20:03:06.683 GMT 42 INFO - Failed connection to [Brokername] on port [8880]
2018-07-30 20:03:06.683 GMT 42 FINE - ConnectionException details:
com.ibm.uk.greenock.ayudame.app.ConnectionException
at com.ibm.uk.greenock.ayudame.protocol.forthv2.ForthRelayConnection.connect(Unknown Source)
at com.ibm.uk.greenock.ayudame.protocol.forthv2.ForthRelaySessionManager.establishSessionAndLogin(Unknown Source)
at com.ibm.uk.greenock.ayudame.protocol.forthv2.ForthRelaySessionManager.createSessionSequentially(Unknown Source)
at com.ibm.uk.greenock.ayudame.protocol.forthv2.ForthRelaySessionManager.createSession(Unknown Source)
at com.ibm.uk.greenock.ayudame.app.TRCSessionModel.startOutgoingSession(Unknown Source)
at com.ibm.uk.greenock.ayudame.app.TRCSessionModel.startSession(Unknown Source)
at com.ibm.uk.greenock.ayudame.app.TRCSessionModel.startModel(Unknown Source)
at com.ibm.uk.greenock.ayudame.app.SessionModel.start(Unknown Source)
at com.ibm.uk.greenock.ayudame.app.Launcher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2018-07-30 20:03:08.203 GMT 42 INFO - Stopping Remote Control Controller Trace log

I’m using a non-standard port because I’ll be piggybacking on an existing DMZ server that is using 80/443 already. Again, there’s no firewall in between any of the controller/server/broker. Obviously I’m missing something somewhere.

Hi jkj1962,

Sorry for the late answer.
The error that you got is a “Connection refused”.
Are you sure that the broker is running and listening on port 8880 ?

You can use the following commands to check that:

  • Windows: netstat -abo | findstr 8880
    -Linux: lsof -Pan -i | grep :8880

If the port is not reported you have to check the broker configuration and ensure that the lines DefaultPortToListen and xxx.ConnectionType = Inbound are not commented.
You should have something like this:

...
DefaultPortToListen = 8181
...
myInbound.ConnectionType = Inbound
...
myInbound.AllowEndpoints = yes
...

I appreciate the response. I had put this aside for other things.

I do have those settings, but there is nothing listening on port 8880. I suspect there might be an issue with the certificate, and the broker service just isn’t starting up properly because of it. I’m going to have to put in a PMR I guess.