You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by "Kuriackovskij, Aleks" <ak...@akamai.com.INVALID> on 2022/06/15 11:52:50 UTC

Sessions tunnel id is null - unable to download/upload files

Hi,

I have two identical deployments of Apache Guacamole 1.3.0 running on Ubuntu 20.04 (NOT container). Nginx (local) as reverse proxy. Using mysql (local) and ldap (remote). I am 100% they are identical since both are deployed from scratch using ansible automation.
The only difference is that the one which is working ok is located quite close to myself. Another one is far and there are added some latency (not much though, still pretty comfortable for work even with RDP).

The problem is that the one which is distanced don’t allow to upload/download files via sftp. I compared both instances and noticed that when uploading or downloading files tunnel id is null, like this:
127.0.0.1 - - [15/Jun/2022:10:22:55 +0000] "GET /guacamole/api/session/tunnels/null/streams/0/pcaptoxml.py?token=9A6CC9A504421B41463F642C820E9F252449607F88917362EF704B5783A1B05A HTTP/1.1" 404 189
As a result it ends up with error 404. That is the same for both Downloads and Uploads. Refreshing the page while logged-in isn’t helping.

I tried to run guacd in debug mode but couldn’t find anything wrong:
                guacd[2193]: DEBUG:     guac_rdp_fs_open: path="/pcaptoxml.py", access=0x80000000, file_attributes=0x0, create_disposition=0x1, create_options=0x0
guacd[2193]: DEBUG:     guac_rdp_fs_open: Normalized path "/pcaptoxml.py" to "\pcaptoxml.py".
guacd[2193]: DEBUG:     guac_rdp_fs_open: Translated path "\pcaptoxml.py" to "/home/akur/pcaptoxml.py".
guacd[2193]: DEBUG:     guac_rdp_fs_open: native open: real_path="/home/akur/pcaptoxml.py", flags=0x0
guacd[2193]: DEBUG:     guac_rdp_fs_open: Opened "\pcaptoxml.py" as file_id=0
127.0.0.1 - - [15/Jun/2022:10:22:55 +0000] "GET /guacamole/api/session/tunnels/null/streams/0/pcaptoxml.py?token=9A6CC9A504421B41463F642C820E9F252449607F88917362EF704B5783A1B05A HTTP/1.1" 404 189

Any ideas why tunnel id is nulled and how to get that fixed? I suspect that is due to an additional latency between the client and the server (I am just guessing that though), if that is true is there anything can be tweaked to get that offset tolerated?

--

Kind Regards,

Aleksandr Kuriackovskij
SRE Operations @

[cid3*image001.png@01D7D583.C6D04910]



Re: Sessions tunnel id is null - unable to download/upload files

Posted by Nick Couchman <vn...@apache.org>.
On Thu, Jun 16, 2022 at 5:17 AM Kuriackovskij, Aleks
<ak...@akamai.com.invalid> wrote:

> Hi Mike,
>
>
>
> Thank you, but would you mind sending a link to an actual commit/history
> to see what was changed?
>
> Or where can I find Guacamole version with that fix? 1.6.0 isn’t
> available, the latest one is 1.4.0 as I could find. Or I am misinterpreting
> all that? Basically I would like to get a fixed version either by updating
> to the version with the fix or adding a fix manually (if it’s a few lines
> of code) 😊
>
>
>

1.4.0 is the latest release available - 1.5.0 should be out soon-ish, and
1.6.0 will follow after that.

The commit that applied this fix is in the master branch of the git repo -
here's the merge commit:

https://github.com/apache/guacamole-client/commit/a3e202e6bfb3053d949e0d73ca9364393ef610df

-Nick

Re: Sessions tunnel id is null - unable to download/upload files

Posted by "Kuriackovskij, Aleks" <ak...@akamai.com.INVALID>.
Hi Mike,

Thank you, but would you mind sending a link to an actual commit/history to see what was changed?
Or where can I find Guacamole version with that fix? 1.6.0 isn’t available, the latest one is 1.4.0 as I could find. Or I am misinterpreting all that? Basically I would like to get a fixed version either by updating to the version with the fix or adding a fix manually (if it’s a few lines of code) 😊

Thanks!

--

Kind Regards,

Aleksandr Kuriackovskij
SRE Operations @

[cid3*image001.png@01D7D583.C6D04910]



From: Michael Jumper <mj...@apache.org>
Reply to: "user@guacamole.apache.org" <us...@guacamole.apache.org>
Date: Wednesday 15 June 2022 at 21:04
To: "user@guacamole.apache.org" <us...@guacamole.apache.org>
Subject: Re: Sessions tunnel id is null - unable to download/upload files

On Wed, Jun 15, 2022 at 4:53 AM Kuriackovskij, Aleks <ak...@akamai.com.invalid> wrote:
Hi,

I have two identical deployments of Apache Guacamole 1.3.0 running on Ubuntu 20.04 (NOT container). Nginx (local) as reverse proxy. Using mysql (local) and ldap (remote). I am 100% they are identical since both are deployed from scratch using ansible automation.
The only difference is that the one which is working ok is located quite close to myself. Another one is far and there are added some latency (not much though, still pretty comfortable for work even with RDP).

The problem is that the one which is distanced don’t allow to upload/download files via sftp. I compared both instances and noticed that when uploading or downloading files tunnel id is null, like this:
127.0.0.1 - - [15/Jun/2022:10:22:55 +0000] "GET /guacamole/api/session/tunnels/null/streams/0/pcaptoxml.py?token=9A6CC9A504421B41463F642C820E9F252449607F88917362EF704B5783A1B05A HTTP/1.1" 404 189
As a result it ends up with error 404. That is the same for both Downloads and Uploads. Refreshing the page while logged-in isn’t helping.

I tried to run guacd in debug mode but couldn’t find anything wrong:
                guacd[2193]: DEBUG:     guac_rdp_fs_open: path="/pcaptoxml.py", access=0x80000000, file_attributes=0x0, create_disposition=0x1, create_options=0x0
guacd[2193]: DEBUG:     guac_rdp_fs_open: Normalized path "/pcaptoxml.py" to "\pcaptoxml.py".
guacd[2193]: DEBUG:     guac_rdp_fs_open: Translated path "\pcaptoxml.py" to "/home/akur/pcaptoxml.py".
guacd[2193]: DEBUG:     guac_rdp_fs_open: native open: real_path="/home/akur/pcaptoxml.py", flags=0x0
guacd[2193]: DEBUG:     guac_rdp_fs_open: Opened "\pcaptoxml.py" as file_id=0
127.0.0.1 - - [15/Jun/2022:10:22:55 +0000] "GET /guacamole/api/session/tunnels/null/streams/0/pcaptoxml.py?token=9A6CC9A504421B41463F642C820E9F252449607F88917362EF704B5783A1B05A HTTP/1.1" 404 189

Any ideas why tunnel id is nulled and how to get that fixed? I suspect that is due to an additional latency between the client and the server (I am just guessing that though), if that is true is there anything can be tweaked to get that offset tolerated?

This has been fixed on git master:

https://issues.apache.org/jira/browse/GUACAMOLE-1562<https://urldefense.com/v3/__https:/issues.apache.org/jira/browse/GUACAMOLE-1562__;!!GjvTz_vk!RQqtA_3ULdMst5b3gg0yaExzybe9IMIaGhOfT6KLx6NJahyTgSeRKgpaSiNWN9QRTbZk8O0Xl5pczR8$>

- Mike


Re: Sessions tunnel id is null - unable to download/upload files

Posted by Michael Jumper <mj...@apache.org>.
On Wed, Jun 15, 2022 at 4:53 AM Kuriackovskij, Aleks
<ak...@akamai.com.invalid> wrote:

> Hi,
>
>
>
> I have two identical deployments of Apache Guacamole 1.3.0 running on
> Ubuntu 20.04 (NOT container). Nginx (local) as reverse proxy. Using mysql
> (local) and ldap (remote). I am 100% they are identical since both are
> deployed from scratch using ansible automation.
>
> The only difference is that the one which is working ok is located quite
> close to myself. Another one is far and there are added some latency (not
> much though, still pretty comfortable for work even with RDP).
>
>
>
> The problem is that the one which is distanced don’t allow to
> upload/download files via sftp. I compared both instances and noticed that
> when uploading or downloading files tunnel id is null, like this:
>
> *127.0.0.1 - - [15/Jun/2022:10:22:55 +0000] "GET
> /guacamole/api/session/tunnels/null/streams/0/pcaptoxml.py?token=9A6CC9A504421B41463F642C820E9F252449607F88917362EF704B5783A1B05A
> HTTP/1.1" 404 189*
>
> As a result it ends up with error 404. That is the same for both Downloads
> and Uploads. Refreshing the page while logged-in isn’t helping.
>
>
>
> I tried to run guacd in debug mode but couldn’t find anything wrong:
>
> *                guacd[2193]: DEBUG:     guac_rdp_fs_open:
> path="/pcaptoxml.py", access=0x80000000, file_attributes=0x0,
> create_disposition=0x1, create_options=0x0*
>
> *guacd[2193]: DEBUG:     guac_rdp_fs_open: Normalized path "/pcaptoxml.py"
> to "\pcaptoxml.py".*
>
> *guacd[2193]: DEBUG:     guac_rdp_fs_open: Translated path "\pcaptoxml.py"
> to "/home/akur/pcaptoxml.py".*
>
> *guacd[2193]: DEBUG:     guac_rdp_fs_open: native open:
> real_path="/home/akur/pcaptoxml.py", flags=0x0*
>
> *guacd[2193]: DEBUG:     guac_rdp_fs_open: Opened "\pcaptoxml.py" as
> file_id=0*
>
> *127.0.0.1 - - [15/Jun/2022:10:22:55 +0000] "GET
> /guacamole/api/session/tunnels/null/streams/0/pcaptoxml.py?token=9A6CC9A504421B41463F642C820E9F252449607F88917362EF704B5783A1B05A
> HTTP/1.1" 404 189*
>
>
>
> Any ideas why tunnel id is nulled and how to get that fixed? I suspect
> that is due to an additional latency between the client and the server (I
> am just guessing that though), if that is true is there anything can be
> tweaked to get that offset tolerated?
>

This has been fixed on git master:

https://issues.apache.org/jira/browse/GUACAMOLE-1562

- Mike