Re: Creation of WebSocket tunnel to guacd failed - Guacamole 1.5.4

2024-02-18 Thread Jimmy
Hi Viji Sankar,

From the log message, we can see that the Apache Guacamole Client couldn't 
connect to the guacd (the Apache Guacamole Server).
Is the guacd running on the same pod as the guacamole client is running?
If so, you need to check if the guacd is running.
If not, you need to check if the port (default 4823) of the guacd is exposed.

Best regards,
Jimmy

On Sunday, February 18th, 2024 at 11:24 PM, Viji Sankar 
 wrote:

> Hi Team,
>
> We are using the Guacamole 1.5.4 version and deployed to Azure kubernetes 
> server configuring NGINX proxy to expose inside our one pod(NGINX, GUACD, 
> GUACAMOLE containers). We are currently facing an issue when connecting the 
> Ubuntu server using Guacamole, at the same time windows is connecting using 
> Guacamole. Below are logs that we are getting in the container,
>
> ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel 
> to guacd failed: Connection to guacd timed out.
>
> Kindly help us to resolve this issue.
>
> Thank you in Advance.
>
> Regards,
>
> Viji S
>
> _
> EMAIL LEGAL MENTION / DISCLAIMER
>
> This message contains information that may be privileged or confidential and 
> is the property of the Expleo Services SAS, RCS Versailles 831 178 348, 
> located, 3 avenue des Prés, 78180 Montigny Le Bretonneux - France. It is 
> intended only for the person to whom it is addressed. If you are not the 
> intended recipient, you are not authorized to read, print, retain, copy, 
> disseminate, distribute, or use this message or any part thereof. If you 
> receive this message in error, please notify the sender immediately and 
> delete all copies of this message.
>
> Ce message contient des informations qui peuvent être privilégiées ou 
> confidentielles et elles sont de la propriété d'Expleo Services SAS, RCS 
> Versailles 831 178 348, situé, 3 avenue des Prés, 78180 Montigny le 
> Bretonneux-France. Il est destiné uniquement à la personne à qui est adressé. 
> Si vous n'êtes pas le destinataire visé, vous n'êtes pas autorisé à lire, 
> imprimer, conserver, copier, diffuser, distribuer ou utiliser ce message ou 
> toute partie de celui-ci. Si vous recevez ce message par erreur, veuillez en 
> avertir immédiatement l'expéditeur et supprimer toutes les copies de ce 
> message.

Re: Log in to Gnome Shell RDP

2024-01-23 Thread Jimmy
Hi Horváth Csaba,

Did you try to connect to your Gnome's built-in RDP server with the MS
Remote Desktop Connection application (mstsc.exe)?
I'd like to know if you're able to connect to it with mstsc.exe.

Best regards,
Jimmy


On Tuesday, January 23rd, 2024 at 12:38 PM, Horváth Csaba 
 wrote:

> Hi,
> 
> I recently switched to Gnome3/Gnome Shell from KDE, and set up
> Gnome-Remote-Desktop. This is Gnome's built-in RDP server, mostly
> replacing VNC. (Gnome by default runs on Wayland, which is not
> supporting VNC.) The OS is Debian Testing (12).
> 
> So i had a working Guacamole installation, set up for VNC, worked
> well, for my home computers. Now i try to set a connection for the
> Gnome-style RDP, this doesn't.
> 
> This is my user-mapping, of course i altered hostname, username, password
> 
> 
> 
> rdp
> 
> myhostname
> 
> 3389
> 
> myuser
> 
> mypassword
> 
> any
> 
> true
> 
> WORKGROUP
> 
> 
> 
> 
> No matter what i set for security, and ignore-cert. I get this in syslog :
> 
> 2024-01-23T21:30:17.343814+01:00 homeserver guacd[257623]: Connection
> ID is "$8bd99bb8-018e-4c41-8794-ce4588d9c6a1"
> 2024-01-23T21:30:17.494015+01:00 homeserver guacd[1689041]: Security
> mode: Negotiate (ANY)
> 2024-01-23T21:30:17.494382+01:00 homeserver guacd[1689041]: Resize method: 
> none
> 2024-01-23T21:30:17.495475+01:00 homeserver guacd[1689041]: User
> "@cd339928-f5a6-4e50-8eef-9bab5f96d204" joined connection
> "$8bd99bb8-018e-4c41-8794-ce4588d9c6a1" (1 users now present)
> 2024-01-23T21:30:17.505494+01:00 homeserver guacd[1689041]: Loading
> keymap "base"
> 2024-01-23T21:30:17.505820+01:00 homeserver guacd[1689041]: Loading
> keymap "en-us-qwerty"
> 2024-01-23T21:30:20.148883+01:00 homeserver guacd[1689041]: RDP server
> closed/refused connection: Server refused connection (wrong security
> type?)
> 2024-01-23T21:30:20.163722+01:00 homeserver guacd[1689041]: User
> "@cd339928-f5a6-4e50-8eef-9bab5f96d204" disconnected (0 users remain)
> 2024-01-23T21:30:20.164061+01:00 homeserver guacd[1689041]: Last user
> of connection "$8bd99bb8-018e-4c41-8794-ce4588d9c6a1" disconnected
> 2024-01-23T2uspect1:30:20.179494+01:00 homeserver guacd[257623]:
> Connection "$8bd99bb8-018e-4c41-8794-ce4588d9c6a1" removed.
> 
> The guacamole.war is the latest, but this was the situation with 1.3 too,
> 
> The question is, has anyone specific experience with Gnome Shell's
> RDP? I suspect the problem there. There are tons of results in Google
> for "install Vino and turn on VNC" but those are irrelevant since most
> Linux distros switched to Wayland.
> 
> Thanks for any help :)
> 
> Cs.
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
> For additional commands, e-mail: user-h...@guacamole.apache.org

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



Re: Aw: Re: 1.5.4 - The connection has been closed because the server is taking too long to respond.

2024-01-17 Thread Jimmy
Hi Michael,

When the guacd fails the connection to a sftp server, the guacd stops the 
connection to the RDP server.
The "SSH handshake failed." error message shows that the guacd failed the the 
connection to a sftp server configured by you.
As you can see the following code, you can know what I mean:
https://github.com/apache/guacamole-server/blob/master/src/common-ssh/ssh.c#L522-L528

https://github.com/apache/guacamole-server/blob/master/src/protocols/rdp/rdp.c#L775-L785

Best regards,
Jimmy

On Wednesday, January 17th, 2024 at 10:23 PM, michael böhm 
 wrote:

> Hi Jimmy,
>
> it cannot be a general configuration issue at the ssh / sftp server as it 
> works about 60 times in guacd daemon's lifetime. After restarting guacd 
> container it works for another about 60 times until it stops working again.
>
> Other users have the problem with 1.5.4 as well but I'm not aware of a 
> solution yet.
>
> Is there anything else I can provide to help troubleshoot the problem?
>
> Thanks and best wishes
>
> Michael
> Gesendet: Dienstag, 16. Januar 2024 um 20:38 Uhr
> Von: "Jimmy" 
> An: user@guacamole.apache.org
> Betreff: Re: Aw: 1.5.4 - The connection has been closed because the server is 
> taking too long to respond.
> Hello michael böhm,
> From the guacd's log, it seems that your sftp configuration has a problem.
>
> ```
> guacd | guacd[47140]: INFO: No security mode specified. Defaulting to 
> security mode negotiation with server.
> guacd | guacd[47140]: INFO: Resize method: display-update
> guacd | guacd[47140]: INFO: No clipboard line-ending normalization specified. 
> Defaulting to preserving the format of all line endings.
> guacd | guacd[47140]: INFO: User "@0fbf93c3-a8f2-4612-9212-56ec2772e71b" 
> joined connection "$8ceea3c6-da39-4690-9b21-73e5375122ec" (1 users now 
> present)
> guacd | guacd[47140]: ERROR: SSH handshake failed.
> guacd | guacd[1]: INFO: Connection "$8ceea3c6-da39-4690-9b21-73e5375122ec" 
> removed.
> ```
>
> The above highlighted log message shows that the guacd is unable to connect 
> the sftp server configured by you.
> If the sftp connection fails, you can't connect to the RDP server.
>
> So, please check the sftp configuration and the sftp server.
>
> Best regards,
> Jimmy
>
> On Thursday, January 11th, 2024 at 1:13 AM, michael böhm 
>  wrote:
>
>> Hello everyone,
>>
>> some info about the system in case it helps:
>>
>> root@nguac3:~# hostnamectl
>> Static hostname: nguac3
>> Icon name: computer-vm
>> Chassis: vm
>> Machine ID: 916d16333d104ef693511097facf33ca
>> Boot ID: c2c0feca91334509ad999e5b849b2a69
>> Virtualization: xen
>> Operating System: Ubuntu 22.04.3 LTS
>> Kernel: Linux 5.15.0-91-generic
>> Architecture: x86-64
>> Hardware Vendor: Xen
>> Hardware Model: HVM domU
>>
>> root@nguac3:~# docker --version
>> Docker version 24.0.7, build afdd53b
>>
>> root@nguac3:~# docker exec guacd /opt/guacamole/sbin/guacd -v
>> Guacamole proxy daemon (guacd) version 1.5.4
>>
>> root@nguac3:~# docker inspect guacd
>> [
>> {
>> "Id": "5ceb278b2846958f626ee03ff34bd638c2532d6d29ddd29a323c09e9e9ac9054",
>> "Created": "2023-12-21T14:07:35.028804323Z",
>> "Path": "/bin/sh",
>> "Args": [
>> "-c",
>> "/opt/guacamole/sbin/guacd -b 0.0.0.0 -L $GUACD_LOG_LEVEL -f"
>> ],
>> "State": {
>> "Status": "running",
>> "Running": true,
>> "Paused": false,
>> "Restarting": false,
>> "OOMKilled": false,
>> "Dead": false,
>> "Pid": 609404,
>> "ExitCode": 0,
>> "Error": "",
>> "StartedAt": "2024-01-11T08:53:25.71992483Z",
>> "FinishedAt": "2024-01-11T08:53:24.232531017Z",
>> "Health": {
>> "Status": "starting",
>> "FailingStreak": 0,
>> "Log": [
>> {
>> "Start": "2024-01-11T09:32:31.39633778+01:00",
>> "End": "2024-01-11T09:32:31.45900887+01:00",
>> "ExitCode": 0,
>> "Output": ""
>> },
>> {
>> "Start": "2024-01-11T09:37:31.465054013+01:00",
>> "End": "2024-01-11T09:37:31.533937216+01:00",
>> "ExitCode": 0,
>> "Output": ""
>> },
>> {
>> "Start": "2024-01-11T09:42:31.547868328+01:00",
>&g

Re: Aw: 1.5.4 - The connection has been closed because the server is taking too long to respond.

2024-01-16 Thread Jimmy
Hello michael böhm,
From the guacd's log, it seems that your sftp configuration has a problem.

```
guacd | guacd[47140]: INFO: No security mode specified. Defaulting to security 
mode negotiation with server.
guacd | guacd[47140]: INFO: Resize method: display-update
guacd | guacd[47140]: INFO: No clipboard line-ending normalization specified. 
Defaulting to preserving the format of all line endings.
guacd | guacd[47140]: INFO: User "@0fbf93c3-a8f2-4612-9212-56ec2772e71b" joined 
connection "$8ceea3c6-da39-4690-9b21-73e5375122ec" (1 users now present)
guacd | guacd[47140]: ERROR: SSH handshake failed.
guacd | guacd[1]: INFO: Connection "$8ceea3c6-da39-4690-9b21-73e5375122ec" 
removed.
```

The above highlighted log message shows that the guacd is unable to connect the 
sftp server configured by you.
If the sftp connection fails, you can't connect to the RDP server.

So, please check the sftp configuration and the sftp server.

Best regards,
Jimmy

On Thursday, January 11th, 2024 at 1:13 AM, michael böhm  
wrote:

> Hello everyone,
>
> some info about the system in case it helps:
>
> root@nguac3:~# hostnamectl
> Static hostname: nguac3
> Icon name: computer-vm
> Chassis: vm
> Machine ID: 916d16333d104ef693511097facf33ca
> Boot ID: c2c0feca91334509ad999e5b849b2a69
> Virtualization: xen
> Operating System: Ubuntu 22.04.3 LTS
> Kernel: Linux 5.15.0-91-generic
> Architecture: x86-64
> Hardware Vendor: Xen
> Hardware Model: HVM domU
>
> root@nguac3:~# docker --version
> Docker version 24.0.7, build afdd53b
>
> root@nguac3:~# docker exec guacd /opt/guacamole/sbin/guacd -v
> Guacamole proxy daemon (guacd) version 1.5.4
>
> root@nguac3:~# docker inspect guacd
> [
> {
> "Id": "5ceb278b2846958f626ee03ff34bd638c2532d6d29ddd29a323c09e9e9ac9054",
> "Created": "2023-12-21T14:07:35.028804323Z",
> "Path": "/bin/sh",
> "Args": [
> "-c",
> "/opt/guacamole/sbin/guacd -b 0.0.0.0 -L $GUACD_LOG_LEVEL -f"
> ],
> "State": {
> "Status": "running",
> "Running": true,
> "Paused": false,
> "Restarting": false,
> "OOMKilled": false,
> "Dead": false,
> "Pid": 609404,
> "ExitCode": 0,
> "Error": "",
> "StartedAt": "2024-01-11T08:53:25.71992483Z",
> "FinishedAt": "2024-01-11T08:53:24.232531017Z",
> "Health": {
> "Status": "starting",
> "FailingStreak": 0,
> "Log": [
> {
> "Start": "2024-01-11T09:32:31.39633778+01:00",
> "End": "2024-01-11T09:32:31.45900887+01:00",
> "ExitCode": 0,
> "Output": ""
> },
> {
> "Start": "2024-01-11T09:37:31.465054013+01:00",
> "End": "2024-01-11T09:37:31.533937216+01:00",
> "ExitCode": 0,
> "Output": ""
> },
> {
> "Start": "2024-01-11T09:42:31.547868328+01:00",
> "End": "2024-01-11T09:42:31.612246246+01:00",
> "ExitCode": 0,
> "Output": ""
> },
> {
> "Start": "2024-01-11T09:47:31.636506015+01:00",
> "End": "2024-01-11T09:47:31.704388969+01:00",
> "ExitCode": 0,
> "Output": ""
> },
> {
> "Start": "2024-01-11T09:52:31.736864224+01:00",
> "End": "2024-01-11T09:52:31.804027504+01:00",
> "ExitCode": 0,
> "Output": ""
> }
> ]
> }
> },
> "Image": 
> "sha256:de48d9e3ee9d40db46fbfd1675ae624331d682fa1ed28f450e2da93c71c792aa",
> "ResolvConfPath": 
> "/var/lib/docker/containers/5ceb278b2846958f626ee03ff34bd638c2532d6d29ddd29a323c09e9e9ac9054/resolv.conf",
> "HostnamePath": 
> "/var/lib/docker/containers/5ceb278b2846958f626ee03ff34bd638c2532d6d29ddd29a323c09e9e9ac9054/hostname",
> "HostsPath": 
> "/var/lib/docker/containers/5ceb278b2846958f626ee03ff34bd638c2532d6d29ddd29a323c09e9e9ac9054/hosts",
> "LogPath": "",
> "Name": "/guacd",
> "RestartCount": 0,
> "Driver": "overlay2",
> "Platform": "linux",
> "MountLabel": "",
> "ProcessLabel": "",
> "AppArmorProfile": "docker-default",
> "ExecIDs": null,
> "HostConfig": {
> "Binds": [
> "/etc/timezone:/etc/timezone:ro",
> "/etc/loca