Re: Guacamole server disconnect after 30 sec

2024-01-18 Thread Nick Couchman
On Thu, Jan 18, 2024 at 12:35 AM anoop yadav  wrote:

> Hi Daniel,
>
> You are right I changed the timeout for the load balancer to 2147483645
> (INT MAX - by default it was 30 sec), and now the issue is fixed, but I
> still don't understand why this timeout on the load balancer was causing
> the issue.
>
>
It will depend on what the load balancer sees as "activity" and how traffic
is routed. For example, if the load balancer doesn't see ongoing Websocket
communication as activity, and is expecting HTTP(S) commands from the
client-side, that may result in it timing out the connection. Or, if the
connection is timing out after 30 seconds because the user is not doing
anything (typing/moving mouse on client side), and the only traffic is
coming from the server-side, then it may want to close the connection. Or
it could be that the load balancer is seeing the repeated "NOP" commands
that go back-and-forth between client and guacd and deciding that those
represent a "keepalive" attempt by one end or the other, and is configured
to ignore attempts to keep connections alive.

You might dig into the load balancer configuration and see if there are
other parameters that can be adjusted to tweak how it identifies idle
connections, or just eliminate that functionality entirely for the
Guacamole traffic.

-Nick


Re: Guacamole server disconnect after 30 sec

2024-01-17 Thread anoop yadav
Hi Daniel,

You are right I changed the timeout for the load balancer to 2147483645
(INT MAX - by default it was 30 sec), and now the issue is fixed, but I
still don't understand why this timeout on the load balancer was causing
the issue.

Thanks

On Thu, Jan 18, 2024 at 1:11 AM Daniel Carroll <
apacheguacamole0...@defiant.coloradomesa.edu> wrote:

> Hi Anoop,
>
> Notice the following log line:
> [http-nio-8080-exec-17] INFO  o.a.g.r.auth.AuthenticationService - User
> \"master_admin\" successfully authenticated from [122.x.x.x, 34.x.x.x,
> 35.x.x.x].",
>
> Multiple IPs are listed.  That means that this connection is being
> proxied, twice.
> The odds are high that one of these proxies is terminating the connection
> after 30 seconds, and that's the source of this issue.
> One or both proxies will need to be reconfigured to support very long
> timeouts.
> Regards,
>
> - Daniel
>
> -Original Message-
> From: anoop yadav
> Sent: Wed Jan 17 2024 12:32:38 MST
> Subject: Guacamole server disconnect after 30 sec
>
> I am running guacamole/guacd:1.5.4 and guacamole/guacamole:1.5.4 on Google
> Kubernetes, but I am facing an issue I can connect to the RDP connection
> for just 30 seconds after that it shows a notification *"The Guacamole
> server is not currently reachable. Please check your network and try
> again."* When I click on reconnect it works again but just for 30 sec,
> during this 30-second connection works perfectly. Terminal, and File
> Explorer all are working but this message keeps on coming every 30 sec.
>
> guacamole-client is running with nodeport and ingress and guacamole-server
> is running with service.
>
> Logs from Client
>
> [http-nio-8080-exec-17] INFO  o.a.g.r.auth.AuthenticationService -
> User \"master_admin\" successfully authenticated from [122.x.x.x,
> 34.x.x.x, 35.x.x.x].",
>
> [http-nio-8080-exec-15] INFO  o.a.g.tunnel.TunnelRequestService - User
> \"master_admin\" connected to connection \"3\"."
>
> [http-nio-8080-exec-2] INFO  o.a.g.tunnel.TunnelRequestService - User
> \"master_admin\" disconnected from connection \"3\". Duration: 29667
> milliseconds",
>
> [ ... ]
>
> How can I resolve this issue?
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
> For additional commands, e-mail: user-h...@guacamole.apache.org
>
>


Re: Guacamole server disconnect after 30 sec

2024-01-17 Thread Daniel Carroll
Hi Anoop,

Notice the following log line:
[http-nio-8080-exec-17] INFO  o.a.g.r.auth.AuthenticationService - User 
\"master_admin\" successfully authenticated from [122.x.x.x, 34.x.x.x, 
35.x.x.x].",

Multiple IPs are listed.  That means that this connection is being proxied, 
twice.
The odds are high that one of these proxies is terminating the connection after 
30 seconds, and that's the source of this issue.
One or both proxies will need to be reconfigured to support very long timeouts.
Regards,

- Daniel

-Original Message-
From: anoop yadav
Sent: Wed Jan 17 2024 12:32:38 MST
Subject: Guacamole server disconnect after 30 sec

I am running guacamole/guacd:1.5.4 and guacamole/guacamole:1.5.4 on Google
Kubernetes, but I am facing an issue I can connect to the RDP connection
for just 30 seconds after that it shows a notification *"The Guacamole
server is not currently reachable. Please check your network and try
again."* When I click on reconnect it works again but just for 30 sec,
during this 30-second connection works perfectly. Terminal, and File
Explorer all are working but this message keeps on coming every 30 sec.

guacamole-client is running with nodeport and ingress and guacamole-server
is running with service.

Logs from Client

[http-nio-8080-exec-17] INFO  o.a.g.r.auth.AuthenticationService -
User \"master_admin\" successfully authenticated from [122.x.x.x,
34.x.x.x, 35.x.x.x].",

[http-nio-8080-exec-15] INFO  o.a.g.tunnel.TunnelRequestService - User
\"master_admin\" connected to connection \"3\"."

[http-nio-8080-exec-2] INFO  o.a.g.tunnel.TunnelRequestService - User
\"master_admin\" disconnected from connection \"3\". Duration: 29667
milliseconds",

[ ... ]

How can I resolve this issue?


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



Guacamole server disconnect after 30 sec

2024-01-17 Thread anoop yadav
I am running guacamole/guacd:1.5.4 and guacamole/guacamole:1.5.4 on Google
Kubernetes, but I am facing an issue I can connect to the RDP connection
for just 30 seconds after that it shows a notification *"The Guacamole
server is not currently reachable. Please check your network and try
again."* When I click on reconnect it works again but just for 30 sec,
during this 30-second connection works perfectly. Terminal, and File
Explorer all are working but this message keeps on coming every 30 sec.

guacamole-client is running with nodeport and ingress and guacamole-server
is running with service.

Logs from Client

[http-nio-8080-exec-17] INFO  o.a.g.r.auth.AuthenticationService -
User \"master_admin\" successfully authenticated from [122.x.x.x,
34.x.x.x, 35.x.x.x].",

[http-nio-8080-exec-15] INFO  o.a.g.tunnel.TunnelRequestService - User
\"master_admin\" connected to connection \"3\"."

[http-nio-8080-exec-2] INFO  o.a.g.tunnel.TunnelRequestService - User
\"master_admin\" disconnected from connection \"3\". Duration: 29667
milliseconds",


Logs from server:

guacd[1]: INFO:\tCreating new client for protocol \"rdp\"

guacd[1]: INFO:\tConnection ID is \"$e7fecdf7-1d1d-45db-9eda-\"

guacd[64]: INFO:\tNo security mode specified. Defaulting to security
mode negotiation with server.

guacd[64]: INFO:\tResize method: none

guacd[64]: INFO:\tNo clipboard line-ending normalization specified.
Defaulting to preserving the format of all line endings.

guacd[64]: INFO:\tUser \"@fecdc4a0-1651-4e8e-abf7-\" joined
connection \"$e7fecdf7-1d1d-45db-9eda-\" (1 users now present)

guacd[64]: INFO:\tLoading keymap \"base\"

guacd[64]: INFO:\tLoading keymap \"en-us-qwerty\"

guacd[64]: ERROR:\tUser is not responding.

guacd[64]: INFO:\tUser \"@fecdc4a0-1651-4e8e-abf7-xxx\" disconnected
(0 users remain)

guacd[64]: INFO:\tLast user of connection
\"$e7fecdf7-1d1d-45db-9eda-xxx\" disconnected

guacd[1]: INFO:\tConnection \"$e7fecdf7-1d1d-45db-9eda-xxx\" removed.


How can I resolve this issue?