Remote server rejected web socket: Duplicate connection

Hello.

We have the next error on logs. We have a lost connection on Gateway Network, but the error talk about a duoble connection, but… there is an only connection.

Could you help us?

Thank you.
Best regards.

2 Likes

Hello.

We have more information about de error:

INFO | jvm 3 | 2022/03/15 09:41:08 | I [G.L.S.T.SubscriptionManager ] [08:41:08]: [_0:0:pvh-backend_tagsubupd_cheste-edge-oee:5] Error delivering subscription updates. The remote gateway may not be available, or the session may be expired. Turn this logger to debug for full error information.
INFO | jvm 3 | 2022/03/15 09:41:08 | E [m.T.W.WebSocketConnection ] [08:41:08]: → outgoing local=‘cheste-edge-oee’ remote=‘pvh-backend’ method=doSend: Socket timeout occurred while downloading message from _0:0:Cheste-Edge-OEE, header=[opCode=MSG_SEND, subCode=0, flags=1, messageId=29146, senderId=‘pvh-backend’, targetAddress=’_0:0:Cheste-Edge-OEE’] gan-remote-connection-id=https://35.210.239.254:8060/system
INFO | jvm 3 | 2022/03/15 09:41:08 | java.net.SocketTimeoutException: Read timed out
INFO | jvm 3 | 2022/03/15 09:41:08 | at java.base/java.net.SocketInputStream.socketRead0(Native Method)
INFO | jvm 3 | 2022/03/15 09:41:08 | at java.base/java.net.SocketInputStream.socketRead(Unknown Source)
INFO | jvm 3 | 2022/03/15 09:41:08 | at java.base/java.net.SocketInputStream.read(Unknown Source)
INFO | jvm 3 | 2022/03/15 09:41:08 | at java.base/java.net.SocketInputStream.read(Unknown Source)
INFO | jvm 3 | 2022/03/15 09:41:08 | at java.base/sun.security.ssl.SSLSocketInputRecord.read(Unknown Source)
INFO | jvm 3 | 2022/03/15 09:41:08 | at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(Unknown Source)
INFO | jvm 3 | 2022/03/15 09:41:08 | at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(Unknown Source)
INFO | jvm 3 | 2022/03/15 09:41:08 | at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(Unknown Source)
INFO | jvm 3 | 2022/03/15 09:41:08 | at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(Unknown Source)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
INFO | jvm 3 | 2022/03/15 09:41:08 | at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
INFO | jvm 3 | 2022/03/15 09:41:08 | at com.inductiveautomation.metro.impl.protocol.websocket.WebSocketConnection$RunDownload.run(WebSocketConnection.java:1880)
INFO | jvm 3 | 2022/03/15 09:41:08 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
INFO | jvm 3 | 2022/03/15 09:41:08 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
INFO | jvm 3 | 2022/03/15 09:41:08 | at java.base/java.lang.Thread.run(Unknown Source)
INFO | jvm 3 | 2022/03/15 09:43:14 | I [m.T.W.WebSocketConnection ] [08:43:14]: [939068435] pvh-backend connection status has been updated from Running to Faulted: Remote connection has missed 31 pings, the web socket connection status is being set to faulted gan-remote-connection-id=https://35.210.239.254:8060/system
INFO | jvm 3 | 2022/03/15 09:43:14 | I [m.M.Routing ] [08:43:14]: Route disconnected between server ‘_0:0:pvh-backend’ and connection ‘pvh-backend|https://35.210.239.254:8060/system’
INFO | jvm 3 | 2022/03/15 09:43:18 | E [m.T.W.MetroWebSocket ] [08:43:18]: → outgoing local=‘cheste-edge-oee’ remote=‘pvh-backend’ method=onClose: Remote server rejected web socket: Duplicate connection
INFO | jvm 3 | 2022/03/15 09:43:18 | I [P.InternalDatabase ] [08:43:18]: Creating auto-backup of internal database “config.idb”…
INFO | jvm 3 | 2022/03/15 09:43:19 | I [P.InternalDatabase ] [08:43:19]: Created auto-backup of internal database “config.idb” in 694 ms
INFO | jvm 3 | 2022/03/15 09:43:44 | E [m.T.W.MetroWebSocket ] [08:43:44]: → outgoing local=‘cheste-edge-oee’ remote=‘pvh-backend’ method=onClose: Remote server forcibly closed the web socket: java.util.concurrent.TimeoutException: Idle timeout expired: 30000/30000 ms

We are waitingo for your answer.

Best regards.

If this is urgent your best bet is to call into support via telephone.

2 Likes

There was two connections, one with ethernet wire and other with WiFi.

The solution is disconnect WiFi.

1 Like