You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Omer Iqbal <om...@gmail.com> on 2017/02/26 20:46:26 UTC

Windows RDP Problem

Hi Again!

I feel like I'm bombarding this list-serv with problems, sorry.

Running into an issue with RDP connection. So I have a few different VMs
running Windows 10. I can connect to some but not others, even though the
settings are the same on each. Here are the logs:

16:41:01.148 [http-nio-8080-exec-4] INFO  o.a.g.tunnel.TunnelRequestService
- User "user1" connected to connection "3".
16:41:02.186 [http-nio-8080-exec-6] INFO  o.a.g.tunnel.TunnelRequestService
- User "user1" disconnected from connection "3". Duration: 1038 milliseconds

Exception in thread "Thread-53" java.lang.IllegalStateException: Message
will not be sent because the WebSocket session has been closed
        at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMe
ssagePart(WsRemoteEndpointImplBase.java:381)
        at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMe
ssage(WsRemoteEndpointImplBase.java:338)
        at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$TextMes
sageSendHandler.write(WsRemoteEndpointImplBase.java:730)
        at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPar
tialString(WsRemoteEndpointImplBase.java:250)
        at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendStr
ing(WsRemoteEndpointImplBase.java:193)
        at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(W
sRemoteEndpointBasic.java:37)
        at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpo
int$2.run(GuacamoleWebSocketTunnelEndpoint.java:169)

16:46:18.420 [http-nio-8080-exec-5] INFO  o.a.g.tunnel.TunnelRequestService
- User "user1" connected to connection "4".
16:46:25.336 [http-nio-8080-exec-2] INFO  o.a.g.tunnel.TunnelRequestService
- User "user1" disconnected from connection "4". Duration: 6915 milliseconds

16:46:41.030 [http-nio-8080-exec-7] INFO  o.a.g.tunnel.TunnelRequestService
- User "user1" connected to connection "4".
16:46:58.867 [http-nio-8080-exec-10] INFO  o.a.g.tunnel.TunnelRequestService
- User "user1" disconnected from connection "4". Duration: 17835
milliseconds

16:47:01.711 [http-nio-8080-exec-6] INFO  o.a.g.tunnel.TunnelRequestService
- User "user1" connected to connection "1".
16:47:23.778 [http-nio-8080-exec-5] INFO  o.a.g.tunnel.TunnelRequestService
- User "user1" disconnected from connection "1". Duration: 22067
milliseconds


Connection 1 and 4 work without any issue. Anytime I connect to 3 I just
get disconnected with the same error. Not sure what else I need to be
looking at?

Re: Windows RDP Problem

Posted by Omer Iqbal <om...@gmail.com>.
Ahh, will follow up the guacd logs. Thanks!

On Sun, Feb 26, 2017 at 5:34 PM, Mike Jumper <mi...@guac-dev.org>
wrote:

> On Sun, Feb 26, 2017 at 12:46 PM, Omer Iqbal <om...@gmail.com> wrote:
>
>> Hi Again!
>>
>> I feel like I'm bombarding this list-serv with problems, sorry.
>>
>> Running into an issue with RDP connection. So I have a few different VMs
>> running Windows 10. I can connect to some but not others, even though the
>> settings are the same on each.
>>
>
> Since only one connection exhibits this problem, and consistently does so,
> there *must* be some difference. If everything were the same, then
> everything would work identically. I would recommend verifying the
> configuration of the connection, the RDP server itself, and the network
> between guacd and the RDP server.
>
> Here are the logs:
>>
>> 16:41:01.148 [http-nio-8080-exec-4] INFO  o.a.g.tunnel.TunnelRequestService
>> - User "user1" connected to connection "3".
>> 16:41:02.186 [http-nio-8080-exec-6] INFO  o.a.g.tunnel.TunnelRequestService
>> - User "user1" disconnected from connection "3". Duration: 1038 milliseconds
>>
>> Exception in thread "Thread-53" java.lang.IllegalStateException: Message
>> will not be sent because the WebSocket session has been closed
>>         at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMe
>> ssagePart(WsRemoteEndpointImplBase.java:381)
>>         at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMe
>> ssage(WsRemoteEndpointImplBase.java:338)
>>         at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$TextMes
>> sageSendHandler.write(WsRemoteEndpointImplBase.java:730)
>>         at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPar
>> tialString(WsRemoteEndpointImplBase.java:250)
>>         at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendStr
>> ing(WsRemoteEndpointImplBase.java:193)
>>         at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(W
>> sRemoteEndpointBasic.java:37)
>>         at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpo
>> int$2.run(GuacamoleWebSocketTunnelEndpoint.java:169)
>>
>> 16:46:18.420 [http-nio-8080-exec-5] INFO  o.a.g.tunnel.TunnelRequestService
>> - User "user1" connected to connection "4".
>> 16:46:25.336 [http-nio-8080-exec-2] INFO  o.a.g.tunnel.TunnelRequestService
>> - User "user1" disconnected from connection "4". Duration: 6915 milliseconds
>>
>> 16:46:41.030 [http-nio-8080-exec-7] INFO  o.a.g.tunnel.TunnelRequestService
>> - User "user1" connected to connection "4".
>> 16:46:58.867 [http-nio-8080-exec-10] INFO  o.a.g.tunnel.TunnelRequestService
>> - User "user1" disconnected from connection "4". Duration: 17835
>> milliseconds
>>
>> 16:47:01.711 [http-nio-8080-exec-6] INFO  o.a.g.tunnel.TunnelRequestService
>> - User "user1" connected to connection "1".
>> 16:47:23.778 [http-nio-8080-exec-5] INFO  o.a.g.tunnel.TunnelRequestService
>> - User "user1" disconnected from connection "1". Duration: 22067
>> milliseconds
>>
>>
>> Connection 1 and 4 work without any issue. Anytime I connect to 3 I just
>> get disconnected with the same error. Not sure what else I need to be
>> looking at?
>>
>
> You should look at the logs from guacd, which is the component of the
> Guacamole stack which handles the actual RDP connection. The web
> application doesn't connect to the RDP server, and thus can't be aware of
> the nature of RDP connection failures; all the webapp is aware of is its
> own connection to guacd and the HTTP or WebSocket connection from the user.
>
> - Mike
>
>

Re: Windows RDP Problem

Posted by Mike Jumper <mi...@guac-dev.org>.
On Sun, Feb 26, 2017 at 12:46 PM, Omer Iqbal <om...@gmail.com> wrote:

> Hi Again!
>
> I feel like I'm bombarding this list-serv with problems, sorry.
>
> Running into an issue with RDP connection. So I have a few different VMs
> running Windows 10. I can connect to some but not others, even though the
> settings are the same on each.
>

Since only one connection exhibits this problem, and consistently does so,
there *must* be some difference. If everything were the same, then
everything would work identically. I would recommend verifying the
configuration of the connection, the RDP server itself, and the network
between guacd and the RDP server.

Here are the logs:
>
> 16:41:01.148 [http-nio-8080-exec-4] INFO  o.a.g.tunnel.TunnelRequestService
> - User "user1" connected to connection "3".
> 16:41:02.186 [http-nio-8080-exec-6] INFO  o.a.g.tunnel.TunnelRequestService
> - User "user1" disconnected from connection "3". Duration: 1038 milliseconds
>
> Exception in thread "Thread-53" java.lang.IllegalStateException: Message
> will not be sent because the WebSocket session has been closed
>         at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMe
> ssagePart(WsRemoteEndpointImplBase.java:381)
>         at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMe
> ssage(WsRemoteEndpointImplBase.java:338)
>         at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$TextMes
> sageSendHandler.write(WsRemoteEndpointImplBase.java:730)
>         at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPar
> tialString(WsRemoteEndpointImplBase.java:250)
>         at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendStr
> ing(WsRemoteEndpointImplBase.java:193)
>         at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(W
> sRemoteEndpointBasic.java:37)
>         at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpo
> int$2.run(GuacamoleWebSocketTunnelEndpoint.java:169)
>
> 16:46:18.420 [http-nio-8080-exec-5] INFO  o.a.g.tunnel.TunnelRequestService
> - User "user1" connected to connection "4".
> 16:46:25.336 [http-nio-8080-exec-2] INFO  o.a.g.tunnel.TunnelRequestService
> - User "user1" disconnected from connection "4". Duration: 6915 milliseconds
>
> 16:46:41.030 [http-nio-8080-exec-7] INFO  o.a.g.tunnel.TunnelRequestService
> - User "user1" connected to connection "4".
> 16:46:58.867 [http-nio-8080-exec-10] INFO  o.a.g.tunnel.TunnelRequestService
> - User "user1" disconnected from connection "4". Duration: 17835
> milliseconds
>
> 16:47:01.711 [http-nio-8080-exec-6] INFO  o.a.g.tunnel.TunnelRequestService
> - User "user1" connected to connection "1".
> 16:47:23.778 [http-nio-8080-exec-5] INFO  o.a.g.tunnel.TunnelRequestService
> - User "user1" disconnected from connection "1". Duration: 22067
> milliseconds
>
>
> Connection 1 and 4 work without any issue. Anytime I connect to 3 I just
> get disconnected with the same error. Not sure what else I need to be
> looking at?
>

You should look at the logs from guacd, which is the component of the
Guacamole stack which handles the actual RDP connection. The web
application doesn't connect to the RDP server, and thus can't be aware of
the nature of RDP connection failures; all the webapp is aware of is its
own connection to guacd and the HTTP or WebSocket connection from the user.

- Mike