hi.
I’m using openvidu and kurento on docker.
My problem is that if I only stop and start the kurento container, openvidu does not reconnect. This problem only occurs when openvidu and kurento are on the same host. There is no problem if they are on different hosts.
I use openvidu: 2.15, kurento: 6.15.
log when reconnect fails
[INFO] 2021-01-11 15:09:27,517 [nioEventLoopGroup-2-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] channel closed
[DEBUG] 2021-01-11 15:09:27,517 [nioEventLoopGroup-2-1] org.kurento.jsonrpc.client.AbstractJsonRpcClientWebSocket - [KurentoClient] JsonRpcWsClient disconnected from ws://192.168.13.79:8888/kurento because Channel closed.
[DEBUG] 2021-01-11 15:09:27,518 [nioEventLoopGroup-2-1] org.kurento.jsonrpc.client.JsonRpcClient - Disabling heartbeat. Interrupt if running is false
[INFO] 2021-01-11 15:09:27,518 [AbstractJsonRpcClientWebSocket-reqResEventExec-e2-t0] io.openvidu.server.kurento.kms.KmsManager - Kurento Client "disconnected" event for KMS ws://192.168.13.79:8888/kurento [org.kurento.client.KurentoClient@7c56720b]. Waiting reconnection
[DEBUG] 2021-01-11 15:09:27,544 [AbstractJsonRpcClientWebSocket-disconnectExec-e3-t0] org.kurento.jsonrpc.client.AbstractJsonRpcClientWebSocket - [KurentoClient] JsonRpcWsClient reconnecting to ws://192.168.13.79:8888/kurento.
[DEBUG] 2021-01-11 15:09:27,561 [AbstractJsonRpcClientWebSocket-disconnectExec-e3-t0] org.kurento.jsonrpc.client.AbstractJsonRpcClientWebSocket - [KurentoClient] Connecting webSocket client to server ws://192.168.13.79:8888/kurento
[INFO] 2021-01-11 15:09:27,562 [AbstractJsonRpcClientWebSocket-disconnectExec-e3-t0] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Connecting native client
[INFO] 2021-01-11 15:09:27,563 [AbstractJsonRpcClientWebSocket-disconnectExec-e3-t0] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Closing previously existing channel when connecting native client
[DEBUG] 2021-01-11 15:09:27,563 [AbstractJsonRpcClientWebSocket-disconnectExec-e3-t0] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Closing client
[INFO] 2021-01-11 15:09:27,565 [nioEventLoopGroup-2-2] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Initiating new Netty channel. Will create new handler too!
[DEBUG] 2021-01-11 15:09:27,568 [nioEventLoopGroup-2-2] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] channel active
[DEBUG] 2021-01-11 15:09:27,569 [nioEventLoopGroup-2-2] io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker13 - WebSocket version 13 client handshake key: 7nds75+yFzAZRtINXvipqA==, expected response: rjj3TeeZZIg7bW14DflZq52cIlQ=
[DEBUG] 2021-01-11 15:09:53,589 [Timer-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Closing client
[DEBUG] 2021-01-11 15:09:53,594 [nioEventLoopGroup-2-1] io.netty.buffer.PoolThreadCache - Freed 5 thread-local buffer(s) from thread: nioEventLoopGroup-2-1
[ERROR] 2021-01-11 15:09:53,598 [Timer-1] io.openvidu.server.kurento.kms.KmsManager - According to Timer KMS with uri ws://192.168.13.79:8888/kurento and KurentoClient [org.kurento.client.KurentoClient@7c56720b] is not reconnected yet. Exception org.kurento.commons.TimeoutRuntimeException
[DEBUG] 2021-01-11 15:09:55,604 [nioEventLoopGroup-2-2] io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-2-2
[WARN] 2021-01-11 15:10:18,628 [Timer-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Trying to close a JsonRpcClientNettyWebSocket with channel == null
[WARN] 2021-01-11 15:10:18,629 [Timer-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Trying to close a JsonRpcClientNettyWebSocket with group == null
[ERROR] 2021-01-11 15:10:18,630 [Timer-1] io.openvidu.server.kurento.kms.KmsManager - According to Timer KMS with uri ws://192.168.13.79:8888/kurento and KurentoClient [org.kurento.client.KurentoClient@7c56720b] is not reconnected yet. Exception org.kurento.commons.TimeoutRuntimeException
[WARN] 2021-01-11 15:10:43,672 [Timer-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Trying to close a JsonRpcClientNettyWebSocket with channel == null
[WARN] 2021-01-11 15:10:43,673 [Timer-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Trying to close a JsonRpcClientNettyWebSocket with group == null
[ERROR] 2021-01-11 15:10:43,674 [Timer-1] io.openvidu.server.kurento.kms.KmsManager - According to Timer KMS with uri ws://192.168.13.79:8888/kurento and KurentoClient [org.kurento.client.KurentoClient@7c56720b] is not reconnected yet. Exception org.kurento.commons.TimeoutRuntimeException
[WARN] 2021-01-11 15:11:08,703 [Timer-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Trying to close a JsonRpcClientNettyWebSocket with channel == null
[WARN] 2021-01-11 15:11:08,703 [Timer-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Trying to close a JsonRpcClientNettyWebSocket with group == null
[ERROR] 2021-01-11 15:11:08,703 [Timer-1] io.openvidu.server.kurento.kms.KmsManager - According to Timer KMS with uri ws://192.168.13.79:8888/kurento and KurentoClient [org.kurento.client.KurentoClient@7c56720b] is not reconnected yet. Exception org.kurento.commons.TimeoutRuntimeException
[WARN] 2021-01-11 15:11:33,708 [Timer-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Trying to close a JsonRpcClientNettyWebSocket with channel == null
[WARN] 2021-01-11 15:11:33,709 [Timer-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Trying to close a JsonRpcClientNettyWebSocket with group == null
[ERROR] 2021-01-11 15:11:33,711 [Timer-1] io.openvidu.server.kurento.kms.KmsManager - According to Timer KMS with uri ws://192.168.13.79:8888/kurento and KurentoClient [org.kurento.client.KurentoClient@7c56720b] is not reconnected yet. Exception org.kurento.commons.TimeoutRuntimeException
[WARN] 2021-01-11 15:11:58,739 [Timer-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Trying to close a JsonRpcClientNettyWebSocket with channel == null
[WARN] 2021-01-11 15:11:58,739 [Timer-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Trying to close a JsonRpcClientNettyWebSocket with group == null
[ERROR] 2021-01-11 15:11:58,740 [Timer-1] io.openvidu.server.kurento.kms.KmsManager - According to Timer KMS with uri ws://192.168.13.79:8888/kurento and KurentoClient [org.kurento.client.KurentoClient@7c56720b] is not reconnected yet. Exception org.kurento.commons.TimeoutRuntimeException
[WARN] 2021-01-11 15:12:23,754 [Timer-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Trying to close a JsonRpcClientNettyWebSocket with channel == null
[WARN] 2021-01-11 15:12:23,755 [Timer-1] org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket - [KurentoClient] Trying to close a JsonRpcClientNettyWebSocket with group == null
[ERROR] 2021-01-11 15:12:23,756 [Timer-1] io.openvidu.server.kurento.kms.KmsManager - According to Timer KMS with uri ws://192.168.13.79:8888/kurento and KurentoClient [org.kurento.client.KurentoClient@7c56720b] is not reconnected yet. Exception org.kurento.commons.TimeoutRuntimeException