VNC connection inconsistent

classic Classic list List threaded Threaded
3 messages Options
Roy
Reply | Threaded
Open this post in threaded view
|

VNC connection inconsistent

Roy
Hello All,

I'm getting below errors when trying to connect using vnc. The errors seem
like happened inconsistently.
There are some devices was able vnc connect successfully.
But some of the connection was having this error.

Running Guacamole 1.0.0 on redhat 7.6.

Any help would be appreciated.

Guacamole logs:

Oct  1 15:14:18 RC-Server guacd[2324]: Connected to VNC repeater, using
protocol version 0.0
Oct  1 15:14:19 RC-Server guacd[2324]: VNC server closed connection
Oct  1 15:14:19 RC-Server guacd[2324]: Unable to connect to VNC server.
Oct  1 15:14:19 RC-Server guacd[2324]: User
"@0e572f1c-c32d-45ac-af1d-819fbc02716f" disconnected (0 users remain)
Oct  1 15:14:19 RC-Server guacd[2324]: Last user of connection
"$73d23af1-36c8-440e-806d-b88b6f6940a3" disconnected
Oct  1 15:14:19 RC-Server server: Exception in thread "Thread-19"
java.lang.IllegalStateException: Message will not be sent because the
WebSocket session has been closed
Oct  1 15:14:19 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:387)
Oct  1 15:14:19 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessage(WsRemoteEndpointImplBase.java:344)
Oct  1 15:14:19 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase$TextMessageSendHandler.write(WsRemoteEndpointImplBase.java:788)
Oct  1 15:14:19 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialString(WsRemoteEndpointImplBase.java:252)
Oct  1 15:14:19 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:195)
Oct  1 15:14:19 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
Oct  1 15:14:19 RC-Server server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
Oct  1 15:14:19 RC-Server server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
Oct  1 15:14:19 RC-Server server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
Oct  1 15:14:19 RC-Server server: 15:14:19.165 [http-bio-8080-exec-5] INFO
o.a.g.tunnel.TunnelRequestService - User "user" disconnected from connection
"28". Duration: 1830 milliseconds
Oct  1 15:14:22 RC-Server guacd[1710]: Connection
"$73d23af1-36c8-440e-806d-b88b6f6940a3" removed.

There is case where connection is successful, but it throw exception during
disconnected:

Oct  1 15:15:14 RC-Server guacd[2368]: Connected to VNC repeater, using
protocol version 0.0
Oct  1 15:15:15 RC-Server guacd[2368]: VNC server supports protocol version
3.8 (viewer 3.8)
Oct  1 15:15:16 RC-Server guacd[2368]: We have 1 security types to read
Oct  1 15:15:16 RC-Server guacd[2368]: 0) Received security type 1
Oct  1 15:15:16 RC-Server guacd[2368]: Selecting security type 1 (0/1 in the
list)
Oct  1 15:15:16 RC-Server guacd[2368]: Selected Security Scheme 1
Oct  1 15:15:16 RC-Server guacd[2368]: No authentication needed
Oct  1 15:15:16 RC-Server guacd[2368]: VNC authentication succeeded
Oct  1 15:15:16 RC-Server guacd[2368]: Desktop name "Remote control"
Oct  1 15:15:16 RC-Server guacd[2368]: Connected to VNC server, using
protocol version 3.8
Oct  1 15:15:16 RC-Server guacd[2368]: VNC server default format:
Oct  1 15:15:16 RC-Server guacd[2368]:  32 bits per pixel.
Oct  1 15:15:16 RC-Server guacd[2368]:  Least significant byte first in each
pixel.
Oct  1 15:15:16 RC-Server guacd[2368]:  TRUE colour: max red 255 green 255
blue 255, shift red 0 green 8 blue 16
Oct  1 15:15:16 RC-Server guacd[2368]: client2server supported messages (bit
flags)
Oct  1 15:15:16 RC-Server guacd[2368]: 00: 00ff 0081 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: 08: 0000 0000 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: 10: 0000 0000 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: 18: 0000 0000 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: server2client supported messages (bit
flags)
Oct  1 15:15:16 RC-Server guacd[2368]: 00: 001f 0080 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: 08: 0000 0000 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: 10: 0000 0000 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: 18: 0000 0000 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: Connected to Server "unknown
(LibVNCServer 0.9.12)"
Oct  1 15:15:31 RC-Server guacd[2368]: User
"@3513a2b4-ddf5-44f4-91f6-c667ab1c5311" disconnected (0 users remain)
Oct  1 15:15:31 RC-Server guacd[2368]: Last user of connection
"$f8c2436c-b6ca-4376-9f36-a9c0b6178c01" disconnected
Oct  1 15:15:31 RC-Server server: 15:15:31.671 [http-bio-8080-exec-2] INFO
o.a.g.tunnel.TunnelRequestService - User "user" disconnected from connection
"34". Duration: 22678 milliseconds
Oct  1 15:15:31 RC-Server server: Exception in thread "Thread-24"
java.lang.IllegalStateException: Message will not be sent because the
WebSocket session has been closed
Oct  1 15:15:31 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:387)
Oct  1 15:15:31 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessage(WsRemoteEndpointImplBase.java:344)
Oct  1 15:15:31 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase$TextMessageSendHandler.write(WsRemoteEndpointImplBase.java:788)
Oct  1 15:15:31 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialString(WsRemoteEndpointImplBase.java:252)
Oct  1 15:15:31 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:195)
Oct  1 15:15:31 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
Oct  1 15:15:31 RC-Server server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
Oct  1 15:15:31 RC-Server server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
Oct  1 15:15:31 RC-Server server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
Oct  1 15:15:32 RC-Server guacd[2368]: Internal VNC client disconnected
Oct  1 15:15:33 RC-Server guacd[1710]: Connection
"$f8c2436c-b6ca-4376-9f36-a9c0b6178c01" removed.


Thanks,
Roy



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: VNC connection inconsistent

vnick
On Mon, Oct 12, 2020 at 1:30 AM Roy <[hidden email]> wrote:
Hello All,

I'm getting below errors when trying to connect using vnc. The errors seem
like happened inconsistently.
There are some devices was able vnc connect successfully.
But some of the connection was having this error.

Running Guacamole 1.0.0 on redhat 7.6.

Any help would be appreciated.

Guacamole logs:

Oct  1 15:14:18 RC-Server guacd[2324]: Connected to VNC repeater, using
protocol version 0.0
Oct  1 15:14:19 RC-Server guacd[2324]: VNC server closed connection
Oct  1 15:14:19 RC-Server guacd[2324]: Unable to connect to VNC server.

As the message status, guacd is unable to connect to the VNC server.  You'll need to understand why this is the case.  Does it consistently fail on certain devices and consistently succeed on others?  Or does it sometimes succeed on a given VNC server and sometimes fail? If it's always failing when connecting to a certain set of servers, then you likely have a network issue - firewall, route, or perhaps a misconfigured port.  If it is sometimes failing and sometimes succeeding, then you may have other network issues (asymmetric routing), or the VNC server may be blocking the connection if another device is already connected.
 
Oct  1 15:14:19 RC-Server guacd[2324]: User
"@0e572f1c-c32d-45ac-af1d-819fbc02716f" disconnected (0 users remain)
Oct  1 15:14:19 RC-Server guacd[2324]: Last user of connection
"$73d23af1-36c8-440e-806d-b88b6f6940a3" disconnected
Oct  1 15:14:19 RC-Server server: Exception in thread "Thread-19"
java.lang.IllegalStateException: Message will not be sent because the
WebSocket session has been closed
Oct  1 15:14:19 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:387)
Oct  1 15:14:19 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessage(WsRemoteEndpointImplBase.java:344)
Oct  1 15:14:19 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase$TextMessageSendHandler.write(WsRemoteEndpointImplBase.java:788)
Oct  1 15:14:19 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialString(WsRemoteEndpointImplBase.java:252)
Oct  1 15:14:19 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:195)
Oct  1 15:14:19 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
Oct  1 15:14:19 RC-Server server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
Oct  1 15:14:19 RC-Server server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
Oct  1 15:14:19 RC-Server server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
Oct  1 15:14:19 RC-Server server: 15:14:19.165 [http-bio-8080-exec-5] INFO
o.a.g.tunnel.TunnelRequestService - User "user" disconnected from connection
"28". Duration: 1830 milliseconds
Oct  1 15:14:22 RC-Server guacd[1710]: Connection
"$73d23af1-36c8-440e-806d-b88b6f6940a3" removed.

There is case where connection is successful, but it throw exception during
disconnected:

Oct  1 15:15:14 RC-Server guacd[2368]: Connected to VNC repeater, using
protocol version 0.0
Oct  1 15:15:15 RC-Server guacd[2368]: VNC server supports protocol version
3.8 (viewer 3.8)
Oct  1 15:15:16 RC-Server guacd[2368]: We have 1 security types to read
Oct  1 15:15:16 RC-Server guacd[2368]: 0) Received security type 1
Oct  1 15:15:16 RC-Server guacd[2368]: Selecting security type 1 (0/1 in the
list)
Oct  1 15:15:16 RC-Server guacd[2368]: Selected Security Scheme 1
Oct  1 15:15:16 RC-Server guacd[2368]: No authentication needed
Oct  1 15:15:16 RC-Server guacd[2368]: VNC authentication succeeded
Oct  1 15:15:16 RC-Server guacd[2368]: Desktop name "Remote control"
Oct  1 15:15:16 RC-Server guacd[2368]: Connected to VNC server, using
protocol version 3.8
Oct  1 15:15:16 RC-Server guacd[2368]: VNC server default format:
Oct  1 15:15:16 RC-Server guacd[2368]:  32 bits per pixel.
Oct  1 15:15:16 RC-Server guacd[2368]:  Least significant byte first in each
pixel.
Oct  1 15:15:16 RC-Server guacd[2368]:  TRUE colour: max red 255 green 255
blue 255, shift red 0 green 8 blue 16
Oct  1 15:15:16 RC-Server guacd[2368]: client2server supported messages (bit
flags)
Oct  1 15:15:16 RC-Server guacd[2368]: 00: 00ff 0081 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: 08: 0000 0000 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: 10: 0000 0000 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: 18: 0000 0000 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: server2client supported messages (bit
flags)
Oct  1 15:15:16 RC-Server guacd[2368]: 00: 001f 0080 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: 08: 0000 0000 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: 10: 0000 0000 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: 18: 0000 0000 0000 0000 - 0000 0000
0000 0000
Oct  1 15:15:16 RC-Server guacd[2368]: Connected to Server "unknown
(LibVNCServer 0.9.12)"
Oct  1 15:15:31 RC-Server guacd[2368]: User
"@3513a2b4-ddf5-44f4-91f6-c667ab1c5311" disconnected (0 users remain)
Oct  1 15:15:31 RC-Server guacd[2368]: Last user of connection
"$f8c2436c-b6ca-4376-9f36-a9c0b6178c01" disconnected
Oct  1 15:15:31 RC-Server server: 15:15:31.671 [http-bio-8080-exec-2] INFO
o.a.g.tunnel.TunnelRequestService - User "user" disconnected from connection
"34". Duration: 22678 milliseconds
Oct  1 15:15:31 RC-Server server: Exception in thread "Thread-24"
java.lang.IllegalStateException: Message will not be sent because the
WebSocket session has been closed
Oct  1 15:15:31 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:387)
Oct  1 15:15:31 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessage(WsRemoteEndpointImplBase.java:344)
Oct  1 15:15:31 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase$TextMessageSendHandler.write(WsRemoteEndpointImplBase.java:788)
Oct  1 15:15:31 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialString(WsRemoteEndpointImplBase.java:252)
Oct  1 15:15:31 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:195)
Oct  1 15:15:31 RC-Server server: at
org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
Oct  1 15:15:31 RC-Server server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
Oct  1 15:15:31 RC-Server server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
Oct  1 15:15:31 RC-Server server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
Oct  1 15:15:32 RC-Server guacd[2368]: Internal VNC client disconnected
Oct  1 15:15:33 RC-Server guacd[1710]: Connection
"$f8c2436c-b6ca-4376-9f36-a9c0b6178c01" removed.


I'm not sure about the Websocket issues - for some reason the termination of the connection with guacd seems to be unexpected to the Websocket portion of the server.  If you're proxying behind Nginx or Apache httpd, I would make sure that you've correctly disabled packet buffering. However, the Websocket issues are *not* the cause of the failure to connect to certain VNC connections.

-Nick
Roy
Reply | Threaded
Open this post in threaded view
|

Re: VNC connection inconsistent

Roy
HI Nick,

Thanks for the advice This helps our investigation of the failure VNC
conection. I will make sure disabled the packet buffering.

Roy.



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]