Can´t connect via RDP to remote host

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

Can´t connect via RDP to remote host

lexcorp
I'm able to connect to some machines via RDP but not others.

[sysadmin@srvens01pro ~]$ sudo tail -f /var/log/guacd.log

Oct  7 19:25:50 srvens01pro server: 19:25:50.166 [pool-1-thread-1] DEBUG
o.a.g.rest.auth.HashTokenSessionMap - Checking for expired sessions...
Oct  7 19:25:50 srvens01pro server: 19:25:50.166 [pool-1-thread-1] DEBUG
o.a.g.rest.auth.HashTokenSessionMap - Session check completed in 0 ms.
Oct  7 19:26:00 srvens01pro server: 19:26:00.396 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  7 19:26:00 srvens01pro server: 19:26:00.398 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  7 19:26:00 srvens01pro server: 19:26:00.401 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  7 19:26:00 srvens01pro server: 19:26:00.403 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  7 19:26:00 srvens01pro server: 19:26:00.404 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  7 19:26:00 srvens01pro server: 19:26:00.405 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  7 19:26:00 srvens01pro server: 19:26:00.407 [http-bio-8080-exec-1]
DEBUG o.a.g.net.InetGuacamoleSocket - Connecting to guacd at
10.120.5.42:3389.
Oct  7 19:26:15 srvens01pro server: 19:26:15.429 [http-bio-8080-exec-1]
ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket
tunnel to guacd failed: Connection to guacd timed out.
Oct  7 19:26:15 srvens01pro server: 19:26:15.429 [http-bio-8080-exec-1]
DEBUG o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Error connecting WebSocket
tunnel.
Oct  7 19:26:15 srvens01pro server:
org.apache.guacamole.GuacamoleUpstreamTimeoutException: Connection to guacd
timed out.
Oct  7 19:26:15 srvens01pro server: at
org.apache.guacamole.io.ReaderGuacamoleReader.read(ReaderGuacamoleReader.java:180)
Oct  7 19:26:15 srvens01pro server: at
org.apache.guacamole.io.ReaderGuacamoleReader.readInstruction(ReaderGuacamoleReader.java:195)
Oct  7 19:26:15 srvens01pro server: at
org.apache.guacamole.protocol.ConfiguredGuacamoleSocket.expect(ConfiguredGuacamoleSocket.java:82)
Oct  7 19:26:15 srvens01pro server: at
org.apache.guacamole.protocol.ConfiguredGuacamoleSocket.<init>(ConfiguredGuacamoleSocket.java:144)
Oct  7 19:26:15 srvens01pro server: at
org.apache.guacamole.auth.jdbc.tunnel.AbstractGuacamoleTunnelService.assignGuacamoleTunnel(AbstractGuacamoleTunnelService.java:519)
Oct  7 19:26:15 srvens01pro server: at
org.apache.guacamole.auth.jdbc.tunnel.AbstractGuacamoleTunnelService.getGuacamoleTunnel(AbstractGuacamoleTunnelService.java:674)
Oct  7 19:26:15 srvens01pro server: at
org.mybatis.guice.transactional.TransactionalMethodInterceptor.invoke(TransactionalMethodInterceptor.java:96)
Oct  7 19:26:15 srvens01pro server: at
org.apache.guacamole.auth.jdbc.connection.ConnectionService.connect(ConnectionService.java:519)
Oct  7 19:26:15 srvens01pro server: at
org.apache.guacamole.auth.jdbc.connection.ModeledConnection.connect(ModeledConnection.java:264)
Oct  7 19:26:15 srvens01pro server: at
org.apache.guacamole.tunnel.TunnelRequestService.createConnectedTunnel(TunnelRequestService.java:216)
Oct  7 19:26:15 srvens01pro server: at
org.apache.guacamole.tunnel.TunnelRequestService.createTunnel(TunnelRequestService.java:347)
Oct  7 19:26:15 srvens01pro server: at
org.apache.guacamole.tunnel.websocket.RestrictedGuacamoleWebSocketTunnelEndpoint.createTunnel(RestrictedGuacamoleWebSocketTunnelEndpoint.java:113)
Oct  7 19:26:15 srvens01pro server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.onOpen(GuacamoleWebSocketTunnelEndpoint.java:200)
Oct  7 19:26:15 srvens01pro server: at
org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:137)
Oct  7 19:26:15 srvens01pro server: at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:663)
Oct  7 19:26:15 srvens01pro server: at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
Oct  7 19:26:15 srvens01pro server: at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Oct  7 19:26:15 srvens01pro server: at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Oct  7 19:26:15 srvens01pro server: at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
Oct  7 19:26:15 srvens01pro server: at java.lang.Thread.run(Thread.java:748)
Oct  7 19:26:15 srvens01pro server: Caused by:
java.net.SocketTimeoutException: Read timed out
Oct  7 19:26:15 srvens01pro server: at
java.net.SocketInputStream.socketRead0(Native Method)
Oct  7 19:26:15 srvens01pro server: at
java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
Oct  7 19:26:15 srvens01pro server: at
java.net.SocketInputStream.read(SocketInputStream.java:171)
Oct  7 19:26:15 srvens01pro server: at
java.net.SocketInputStream.read(SocketInputStream.java:141)
Oct  7 19:26:15 srvens01pro server: at
sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
Oct  7 19:26:15 srvens01pro server: at
sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
Oct  7 19:26:15 srvens01pro server: at
sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
Oct  7 19:26:15 srvens01pro server: at
java.io.InputStreamReader.read(InputStreamReader.java:184)
Oct  7 19:26:15 srvens01pro server: at
org.apache.guacamole.io.ReaderGuacamoleReader.read(ReaderGuacamoleReader.java:169)
Oct  7 19:26:15 srvens01pro server: ... 19 common frames omitted



--
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: Can´t connect via RDP to remote host

vnick
On Wed, Oct 7, 2020 at 5:09 PM lexcorp <[hidden email]> wrote:
I'm able to connect to some machines via RDP but not others.

[sysadmin@srvens01pro ~]$ sudo tail -f /var/log/guacd.log

Oct  7 19:25:50 srvens01pro server: 19:25:50.166 [pool-1-thread-1] DEBUG
o.a.g.rest.auth.HashTokenSessionMap - Checking for expired sessions...
Oct  7 19:25:50 srvens01pro server: 19:25:50.166 [pool-1-thread-1] DEBUG
o.a.g.rest.auth.HashTokenSessionMap - Session check completed in 0 ms.
Oct  7 19:26:00 srvens01pro server: 19:26:00.396 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  7 19:26:00 srvens01pro server: 19:26:00.398 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  7 19:26:00 srvens01pro server: 19:26:00.401 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  7 19:26:00 srvens01pro server: 19:26:00.403 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  7 19:26:00 srvens01pro server: 19:26:00.404 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  7 19:26:00 srvens01pro server: 19:26:00.405 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  7 19:26:00 srvens01pro server: 19:26:00.407 [http-bio-8080-exec-1]
DEBUG o.a.g.net.InetGuacamoleSocket - Connecting to guacd at
10.120.5.42:3389.

It looks like you have misconfigured the connection and put the RDP host and port in the box meant for the guacd host and port.  If you're using the JDBC module and the web interface to configure connections, the guacd proxy fields are above the RDP host/port fields, so make sure you've configured things in the right place.  If you're using user-mapping.xml or LDAP make sure you're specifying the correct connection parameters for the RDP host and port, and not trying to specify the guacd proxy host/port parameters.

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

Re: Can´t connect via RDP to remote host

lexcorp
This post was updated on .
It's correct Nick, I had entered the data in the wrong place, after those
modifications I was able to connect with the remote computers, besides that
I also noticed that there were two guacd processes running, which caused an
error in the remote hosts connections.

Now I have the following error on a couple of remote machines:

Oct  8 01:24:01 srvens01pro guacd[31913]: Creating new client for protocol
"rdp"
Oct  8 01:24:01 srvens01pro server: 01:24:01.481 [http-bio-8080-exec-3]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  8 01:24:01 srvens01pro server: 01:24:01.483 [http-bio-8080-exec-3]
DEBUG o.a.g.net.InetGuacamoleSocket - Connecting to guacd at localhost:4822.
Oct  8 01:24:01 srvens01pro guacd[31913]: Connection ID is
"$ecf87126-40c0-4acd-b2a5-57d7c254750b"
Oct  8 01:24:01 srvens01pro guacd[31978]: No security mode specified.
Defaulting to security mode negotiation with server.
Oct  8 01:24:01 srvens01pro server: 01:24:01.529 [http-bio-8080-exec-3] INFO
o.a.g.tunnel.TunnelRequestService - User "rperez" connected to connection
"5".
Oct  8 01:24:01 srvens01pro guacd[31978]: Resize method: none
Oct  8 01:24:01 srvens01pro guacd[31978]: User
"@98047fe3-b774-4a05-a80f-08763f402ddd" joined connection
"$ecf87126-40c0-4acd-b2a5-57d7c254750b" (1 users now present)
Oct  8 01:24:01 srvens01pro guacd[31978]: Loading keymap "base"
Oct  8 01:24:01 srvens01pro guacd[31978]: Loading keymap "en-us-qwerty"
Oct  8 01:24:01 srvens01pro server: 01:24:01.538 [http-bio-8080-exec-9]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  8 01:24:01 srvens01pro server: 01:24:01.540 [http-bio-8080-exec-9]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  8 01:24:01 srvens01pro server: 01:24:01.542 [http-bio-8080-exec-9]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  8 01:24:01 srvens01pro server: 01:24:01.544 [http-bio-8080-exec-9]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  8 01:24:01 srvens01pro server: 01:24:01.546 [http-bio-8080-exec-9]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  8 01:24:01 srvens01pro server: 01:24:01.548 [http-bio-8080-exec-9]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  8 01:24:01 srvens01pro server: 01:24:01.550 [http-bio-8080-exec-9]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  8 01:24:01 srvens01pro server: 01:24:01.551 [http-bio-8080-exec-9]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  8 01:24:01 srvens01pro server: 01:24:01.555 [http-bio-8080-exec-9]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  8 01:24:01 srvens01pro server: 01:24:01.556 [http-bio-8080-exec-9]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  8 01:24:16 srvens01pro guacd[31978]: Error connecting to RDP server
Oct  8 01:24:16 srvens01pro guacd[31978]: User
"@98047fe3-b774-4a05-a80f-08763f402ddd" disconnected (0 users remain)
Oct  8 01:24:16 srvens01pro guacd[31978]: Last user of connection
"$ecf87126-40c0-4acd-b2a5-57d7c254750b" disconnected
Oct  8 01:24:16 srvens01pro guacd[31913]: Connection
"$ecf87126-40c0-4acd-b2a5-57d7c254750b" removed.
Oct  8 01:24:16 srvens01pro server: 01:24:16.554 [http-bio-8080-exec-3] INFO
o.a.g.tunnel.TunnelRequestService - User "rperez" disconnected from
connection "5". Duration: 15024 milliseconds
Oct  8 01:24:16 srvens01pro server: 01:24:16.554 [http-bio-8080-exec-3]
DEBUG o.a.g.net.InetGuacamoleSocket - Closing socket to guacd.
Oct  8 01:24:16 srvens01pro server: 01:24:16.555 [Thread-66] DEBUG
o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Connection to guacd closed.
Oct  8 01:24:16 srvens01pro server:
org.apache.guacamole.GuacamoleConnectionClosedException: Connection to guacd
is closed.
Oct  8 01:24:16 srvens01pro server: at
org.apache.guacamole.io.ReaderGuacamoleReader.read(ReaderGuacamoleReader.java:183)
Oct  8 01:24:16 srvens01pro server: at
org.apache.guacamole.io.ReaderGuacamoleReader.readInstruction(ReaderGuacamoleReader.java:195)
Oct  8 01:24:16 srvens01pro server: at
org.apache.guacamole.protocol.FilteredGuacamoleReader.readInstruction(FilteredGuacamoleReader.java:81)
Oct  8 01:24:16 srvens01pro server: at
org.apache.guacamole.protocol.FilteredGuacamoleReader.readInstruction(FilteredGuacamoleReader.java:81)
Oct  8 01:24:16 srvens01pro server: at
org.apache.guacamole.protocol.FilteredGuacamoleReader.read(FilteredGuacamoleReader.java:64)
Oct  8 01:24:16 srvens01pro server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:246)
Oct  8 01:24:16 srvens01pro server: Caused by: java.net.SocketException:
Socket closed
Oct  8 01:24:16 srvens01pro server: at
java.net.SocketInputStream.read(SocketInputStream.java:204)
Oct  8 01:24:16 srvens01pro server: at
java.net.SocketInputStream.read(SocketInputStream.java:141)
Oct  8 01:24:16 srvens01pro server: at
sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
Oct  8 01:24:16 srvens01pro server: at
sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
Oct  8 01:24:16 srvens01pro server: at
sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
Oct  8 01:24:16 srvens01pro server: at
java.io.InputStreamReader.read(InputStreamReader.java:184)
Oct  8 01:24:16 srvens01pro server: at
org.apache.guacamole.io.ReaderGuacamoleReader.read(ReaderGuacamoleReader.java:169)
Oct  8 01:24:16 srvens01pro server: ... 5 common frames omitted


I am using JDBC authentication
MariaDB Database 10.3.24
Centos 7
Apache Guacamole Server 1.2.0
Apache Guacamole Client 1.2.0




Also recieve this error:

Oct  8 01:50:15 srvens01pro guacd[368]: Error connecting to RDP server
Oct  8 01:50:15 srvens01pro guacd[368]: User "@de655eac-f37d-47ce-b9f4-8a0a046aab5f" disconnected (0 users remain)
Oct  8 01:50:15 srvens01pro guacd[368]: Last user of connection "$09e7a6a1-a1e7-4c6e-ba0a-a71a2776afec" disconnected
Oct  8 01:50:15 srvens01pro server: Exception in thread "Thread-78" java.lang.IllegalStateException: Message will not be sent because the WebSocket session has been closed
Oct  8 01:50:15 srvens01pro server: at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:387)
Oct  8 01:50:15 srvens01pro server: at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessage(WsRemoteEndpointImplBase.java:344)
Oct  8 01:50:15 srvens01pro server: at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$TextMessageSendHandler.write(WsRemoteEndpointImplBase.java:788)
Oct  8 01:50:15 srvens01pro server: at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialString(WsRemoteEndpointImplBase.java:252)
Oct  8 01:50:15 srvens01pro server: at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:195)
Oct  8 01:50:15 srvens01pro server: at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
Oct  8 01:50:15 srvens01pro server: at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
Oct  8 01:50:15 srvens01pro server: at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
Oct  8 01:50:15 srvens01pro server: at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
Oct  8 01:50:15 srvens01pro server: 01:50:15.309 [http-bio-8080-exec-6] INFO  o.a.g.tunnel.TunnelRequestService - User "rperez" disconnected from connection "16". Duration: 15026 milliseconds
Oct  8 01:50:15 srvens01pro server: 01:50:15.309 [http-bio-8080-exec-6] DEBUG o.a.g.net.InetGuacamoleSocket - Closing socket to guacd.
Oct  8 01:50:15 srvens01pro guacd[31913]: Connection "$09e7a6a1-a1e7-4c6e-ba0a-a71a2776afec" removed.


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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org

Reply | Threaded
Open this post in threaded view
|

Re: Can´t connect via RDP to remote host

lexcorp
Sorry Nick, It was my mistake.

The node configuration had changed and therefore did not establish a
connection with the remote host.

It is fixed by setting the network node to the correct vlan.



--
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]