You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Luis Cascales <lu...@runlevel.pt> on 2021/04/06 21:26:42 UTC

Apache Guacamole RDP connection not successful

Good evening,

I have installed Apache Guacamole 1.3.0 on a VM with Oracle Linux 8.2 for
testing purposes, using Apache Tomcat 8.5

While SSH session works fine, on the RDP session, it shows a screen with
another mouse pointer (one would think this is it) but it never lasts more
than 4 seconds, it disconnects. Been trying to work out what could be the
issue.

Sending the outputs of *guacd *and also  *catalina* and *localhost_access_log
*and also logs , as the error messages regarding permission denied have me
baffled, whereas the file ownership and permissions seem fine in my
configuration.

*# tail -f /var/log/messages*
Apr  6 10:20:57 rdgtwlab guacd[98736]: Connection ID is
"$dcc1d4ef-9819-409a-86df-06e9d8af0d48"
Apr  6 10:20:57 rdgtwlab guacd[98891]: Security mode: Negotiate (ANY)
Apr  6 10:20:57 rdgtwlab guacd[98891]: Resize method: none
Apr  6 10:20:57 rdgtwlab guacd[98891]: User
"@61c3d530-91cc-4f9c-ad50-66974c97ce8f" joined connection
"$dcc1d4ef-9819-409a-86df-06e9d8af0d48" (1 users now present)
Apr  6 10:20:57 rdgtwlab guacd[98891]: Loading keymap "base"
Apr  6 10:20:57 rdgtwlab guacd[98891]: Loading keymap "en-us-qwerty"
Apr  6 10:20:57 rdgtwlab guacd[98891]: Connected to RDPDR 1.13 as client
0x0002
Apr  6 10:20:57 rdgtwlab systemd[1]: Started Process Core Dump (PID
98904/UID 0).
Apr  6 10:20:58 rdgtwlab guacd[98736]: Connection
"$dcc1d4ef-9819-409a-86df-06e9d8af0d48" removed.
Apr  6 10:20:58 rdgtwlab systemd-coredump[98907]: Process 98891 (guacd) of
user 0 dumped core.#012#012Stack trace of thread 98896:#012#0
 0x00007f1aada987ef raise (libc.so.6)#012#1  0x00007f1aada82c45 abort
(libc.so.6)#012#2  0x00007f1aadadb987 __libc_message (libc.so.6)#012#3
 0x00007f1aadae2d8c malloc_printerr (libc.so.6)#012#4  0x00007f1aadae4afd
_int_free (libc.so.6)#012#5  0x00007f1aa8a75328 Stream_Free
(libwinpr2.so.2)#012#6  0x00007f1aa90031cd
channel_queue_message_free.part.0 (libfreerdp2.so.2)#012#7
 0x00007f1aa90037ea freerdp_channels_process_sync.isra.2
(libfreerdp2.so.2)#012#8  0x00007f1aa900440f freerdp_channels_check_fds
(libfreerdp2.so.2)#012#9  0x00007f1aa9001c69 freerdp_check_event_handles
(libfreerdp2.so.2)#012#10 0x00007f1aa92f0a59 guac_rdp_handle_connection
(libguac-client-rdp.so)#012#11 0x00007f1aae7b016a start_thread
(libpthread.so.0)#012#12 0x00007f1aadb5df23 __clone
(libc.so.6)#012#012Stack trace of thread 98891:#012#0  0x00007f1aae7ba7d7
recvmsg (libpthread.so.0)#012#1  0x0000000000403dae guacd_recv_fd
(guacd)#012#2  0x00000000004040b1 guacd_exec_proc (guacd)#012#3
 0x00000000004036a1 guacd_route_connection (guacd)#012#4
 0x00007f1aae7b016a start_thread (libpthread.so.0)#012#5
 0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
98893:#012#0  0x00007f1aae7b9fd0 __nanosleep (libpthread.so.0)#012#1
 0x00007f1aaf397fa0 __guac_socket_keep_alive_thread (libguac.so.19)#012#2
 0x00007f1aae7b016a start_thread (libpthread.so.0)#012#3
 0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
98894:#012#0  0x00007f1aae7b165d __GI___pthread_timedjoin_ex
(libpthread.so.0)#012#1  0x00007f1aaf39a73b guac_user_start
(libguac.so.19)#012#2  0x0000000000404316 guacd_user_thread (guacd)#012#3
 0x00007f1aae7b016a start_thread (libpthread.so.0)#012#4
 0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
98897:#012#0  0x00007f1aadb52ca1 __poll (libc.so.6)#012#1
 0x00007f1aaf39a815 guac_wait_for_fd (libguac.so.19)#012#2
 0x00007f1aaf39831b guac_socket_fd_select_handler (libguac.so.19)#012#3
 0x00007f1aaf3945de guac_parser_read (libguac.so.19)#012#4
 0x00007f1aaf39a305 guac_user_input_thread (libguac.so.19)#012#5
 0x00007f1aae7b016a start_thread (libpthread.so.0)#012#6
 0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
98899:#012#0  0x00007f1aadb52ca1 __poll (libc.so.6)#012#1
 0x00007f1aa8a5f44b WaitForMultipleObjects (libwinpr2.so.2)#012#2
 0x00007f1aa8a98a1b thread_pool_work_func (libwinpr2.so.2)#012#3
 0x00007f1aa8a9a506 thread_launcher (libwinpr2.so.2)#012#4
 0x00007f1aae7b016a start_thread (libpthread.so.0)#012#5
 0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
98900:#012#0  0x00007f1aadb52ca1 __poll (libc.so.6)#012#1
 0x00007f1aa8a5f44b WaitForMultipleObjects (libwinpr2.so.2)#012#2
 0x00007f1aa8a98a1b thread_pool_work_func (libwinpr2.so.2)#012#3
 0x00007f1aa8a9a506 thread_launcher (libwinpr2.so.2)#012#4
 0x00007f1aae7b016a start_thread (libpthread.so.0)#012#5
 0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
98901:#012#0  0x00007f1aadb52ca1 __poll (libc.so.6)#012#1
 0x00007f1aa8a5f44b WaitForMultipleObjects (libwinpr2.so.2)#012#2
 0x00007f1aa8a98a1b thread_pool_work_func (libwinpr2.so.2)#012#3
 0x00007f1aa8a9a506 thread_launcher (libwinpr2.so.2)#012#4
 0x00007f1aae7b016a start_thread (libpthread.so.0)#012#5
 0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
98902:#012#0  0x00007f1aadb52ca1 __poll (libc.so.6)#012#1
 0x00007f1aa8a5f44b WaitForMultipleObjects (libwinpr2.so.2)#012#2
 0x00007f1aa8a98a1b thread_pool_work_func (libwinpr2.so.2)#012#3
 0x00007f1aa8a9a506 thread_launcher (libwinpr2.so.2)#012#4
 0x00007f1aae7b016a start_thread (libpthread.so.0)#012#5
 0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
98903:#012#0  0x00007f1aadb52ca1 __poll (libc.so.6)#012#1
 0x00007f1aa8a5ec30 WaitForSingleObject (libwinpr2.so.2)#012#2
 0x00007f1aa8a7b476 MessageQueue_Wait (libwinpr2.so.2)#012#3
 0x00007f1aa8d407cd cliprdr_virtual_channel_client_thread
(libfreerdp-client2.so.2)#012#4  0x00007f1aa8a9a506 thread_launcher
(libwinpr2.so.2)#012#5  0x00007f1aae7b016a start_thread
(libpthread.so.0)#012#6  0x00007f1aadb5df23 __clone (libc.so.6)


*# tail -f /opt/tomcat/logs/catalina.out*
10:20:44.744 [http-nio-8080-exec-8] WARN
 o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request rejected:
Permission Denied.
10:20:46.364 [http-nio-8080-exec-9] INFO
 o.a.g.r.auth.AuthenticationService - User "admin" successfully
authenticated from 127.0.0.1.
10:20:46.514 [http-nio-8080-exec-7] INFO
 o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is
"/opt/tomcat/.guacamole".
10:20:46.583 [http-nio-8080-exec-7] INFO  o.a.g.tunnel.TunnelRequestService
- User "admin" connected to connection "Batch-Server".
10:20:55.538 [http-nio-8080-exec-8] ERROR
o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to
guacd failed: Permission Denied.
10:20:55.606 [http-nio-8080-exec-10] WARN
 o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request rejected:
Permission Denied.
10:20:57.029 [http-nio-8080-exec-2] INFO
 o.a.g.r.auth.AuthenticationService - User "admin" successfully
authenticated from 127.0.0.1.
10:20:57.118 [http-nio-8080-exec-7] INFO
 o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is
"/opt/tomcat/.guacamole".
10:20:57.156 [http-nio-8080-exec-7] INFO  o.a.g.tunnel.TunnelRequestService
- User "admin" connected to connection "QAPOSFW".
10:21:02.098 [Thread-7] INFO  o.a.g.tunnel.TunnelRequestService - User
"admin" disconnected from connection "QAPOSFW". Duration: 4942 milliseconds


*# tail -f /opt/tomcat/logs/localhost_access_log.2021-04-06.txt*
127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "DELETE
/guacamole-1.3.0/api/tokens/E034648E279BA36B0527F5A17958EC9A707A79EB81838CFF0129A20F7B076CC4
HTTP/1.1" 404 187
127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "POST
/guacamole-1.3.0/api/tokens HTTP/1.1" 200 168
127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
/guacamole-1.3.0/api/patches?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B
HTTP/1.1" 200 12
127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
/guacamole-1.3.0/api/session/data/default/self/permissions?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B
HTTP/1.1" 200 262
127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
/guacamole-1.3.0/api/session/data/default/connectionGroups/ROOT/tree?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B
HTTP/1.1" 200 386
127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
/guacamole-1.3.0/api/session/data/default/connections/QAPOSFW?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B
HTTP/1.1" 200 133
127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
/guacamole-1.3.0/websocket-tunnel?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B&GUAC_DATA_SOURCE=default&GUAC_ID=QAPOSFW&GUAC_TYPE=c&GUAC_WIDTH=1280&GUAC_HEIGHT=662&GUAC_DPI=96&GUAC_TIMEZONE=Africa%2FLuanda&GUAC_AUDIO=audio%2FL8&GUAC_AUDIO=audio%2FL16&GUAC_IMAGE=image%2Fjpeg&GUAC_IMAGE=image%2Fpng&GUAC_IMAGE=image%2Fwebp
HTTP/1.1" 101 -
127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
/guacamole-1.3.0/api/session/tunnels/a2b831cb-2072-40ca-9445-7fc00b90ba5a/protocol?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B
HTTP/1.1" 200 4833
127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
/guacamole-1.3.0/api/session/tunnels/a2b831cb-2072-40ca-9445-7fc00b90ba5a/activeConnection/connection/sharingProfiles?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B
HTTP/1.1" 404 241
127.0.0.1 - - [06/Apr/2021:10:21:02 +0100] "POST
/guacamole-1.3.0/api/tokens HTTP/1.1" 200 168

Best Regards,


Luís Cascales

*Consultant*

Tel: +351 265 400 201 | Mobile: +351 914 683 124

E-mail: luis.cascales@runlevel.pt

Runlevel - Sistemas de Informação, Lda

Travessa da Saboaria, nº 3C - 2900-597 Setúbal - Portugal

Re: Apache Guacamole RDP connection not successful

Posted by Luis Cascales <lu...@runlevel.pt>.
yes it was , and first checked if autotools packages were available, it was
straight forward.
It is now running, thank you very much Nick.

Best regards,



Luís Cascales

*Consultant*

Tel: +351 265 400 201 | Mobile: +351 914 683 124

E-mail: luis.cascales@runlevel.pt

Runlevel - Sistemas de Informação, Lda

Travessa da Saboaria, nº 3C - 2900-597 Setúbal - Portugal



On Wed, Apr 7, 2021 at 2:59 PM Nick Couchman <vn...@apache.org> wrote:

> On Wed, Apr 7, 2021 at 9:06 AM Luis Cascales <lu...@runlevel.pt>
> wrote:
>
>> I'm asking that because I found that it's missing the configure script on
>> "guacamole-server-master" , the VM running the configuration doesn't have
>> internet access, only internal network access, which will be like the
>> client environment as well.
>>
>>
> Yes, the git repos lack the configure script, but generating it is pretty
> easy:
> autoreconf -fi
>
> -Nick
>
>>

Re: Apache Guacamole RDP connection not successful

Posted by Nick Couchman <vn...@apache.org>.
On Wed, Apr 7, 2021 at 9:06 AM Luis Cascales <lu...@runlevel.pt>
wrote:

> I'm asking that because I found that it's missing the configure script on
> "guacamole-server-master" , the VM running the configuration doesn't have
> internet access, only internal network access, which will be like the
> client environment as well.
>
>
Yes, the git repos lack the configure script, but generating it is pretty
easy:
autoreconf -fi

-Nick

>

Re: Apache Guacamole RDP connection not successful

Posted by Luis Cascales <lu...@runlevel.pt>.
I'm asking that because I found that it's missing the configure script on
"guacamole-server-master" , the VM running the configuration doesn't have
internet access, only internal network access, which will be like the
client environment as well.

$ diff guacamole-server-1.3.0 guacamole-server-master
Only in guacamole-server-master: .gitignore
diff guacamole-server-1.3.0/Dockerfile guacamole-server-master/Dockerfile
59a60
>         libgcrypt-dev                 \
Only in guacamole-server-1.3.0: Makefile.in
Only in guacamole-server-master: README-unit-testing.md
Only in guacamole-server-1.3.0: aclocal.m4
Common subdirectories: guacamole-server-1.3.0/bin and
guacamole-server-master/bin
Only in guacamole-server-1.3.0: build-aux
Only in guacamole-server-1.3.0: config.h.in
Only in guacamole-server-1.3.0: configure
diff guacamole-server-1.3.0/configure.ac guacamole-server-master/
configure.ac
78,92c78,121
< # OSSP UUID
< AC_CHECK_LIB([ossp-uuid], [uuid_make], [UUID_LIBS=-lossp-uuid],
<              AC_CHECK_LIB([uuid], [uuid_make], [UUID_LIBS=-luuid],
<                           AC_MSG_ERROR("The OSSP UUID library is
required")))
<
< # Check for and validate OSSP uuid.h header
< AC_CHECK_HEADERS([ossp/uuid.h])
< AC_CHECK_DECL([uuid_make],,
<               AC_MSG_ERROR("No OSSP uuid.h found in include path"),
<               [#ifdef HAVE_OSSP_UUID_H
<                #include <ossp/uuid.h>
<                #else
<                #include <uuid.h>
<                #endif
<                ])
---
> #
> # libuuid
> #
>
> have_libuuid=disabled
> AC_ARG_WITH([libuuid],
>             [AS_HELP_STRING([--with-libuuid],
>                             [use libuuid to generate unique identifiers
@<:@default=check@:>@])],
>             [],
>             [with_libuuid=check])
>
> if test "x$with_libuuid" != "xno"
> then
>     have_libuuid=yes
>     AC_CHECK_LIB([uuid], [uuid_generate],
>                  [UUID_LIBS=-luuid]
>                  [AC_DEFINE([HAVE_LIBUUID],, [Whether libuuid is
available])],
>                  [have_libuuid=no])
> fi
>
> # OSSP UUID (if libuuid is unavilable)
> if test "x${have_libuuid}" != "xyes"
> then
>
>     AC_CHECK_LIB([ossp-uuid], [uuid_make], [UUID_LIBS=-lossp-uuid],
>                  AC_CHECK_LIB([uuid], [uuid_make], [UUID_LIBS=-luuid],
>                               AC_MSG_ERROR([
>   --------------------------------------------
>    Unable to find libuuid or the OSSP UUID library.
>    Either libuuid (from util-linux) or the OSSP UUID library is required
for
>    guacamole-server to be built.
>   --------------------------------------------])))
>
>     # Check for and validate OSSP uuid.h header
>     AC_CHECK_HEADERS([ossp/uuid.h])
>     AC_CHECK_DECL([uuid_make],,
>                   AC_MSG_ERROR("No OSSP uuid.h found in include path"),
>                   [#ifdef HAVE_OSSP_UUID_H
>                    #include <ossp/uuid.h>
>                    #else
>                    #include <uuid.h>
>                    #endif
>                    ])
> fi
153a183,186
> # Kubernetes support
> AC_SUBST([LIBGUAC_CLIENT_KUBERNETES_LTLIB],
'$(top_builddir)/src/protocols/kubernetes/libguac-client-kubernetes.la')
> AC_SUBST([LIBGUAC_CLIENT_KUBERNETES_INCLUDE],
'-I$(top_srcdir)/src/protocols/kubernetes')
>
492a526,546
> #
> # Underlying libvncserver usage of gcrypt
> #
>
> if test "x${have_libvncserver}" = "xyes"
> then
>
>     # Whether libvncserver was built against libgcrypt
>     AC_CHECK_DECL([LIBVNCSERVER_WITH_CLIENT_GCRYPT],
>                          [AC_CHECK_HEADER(gcrypt.h,,
>                                           [AC_MSG_WARN([
>   --------------------------------------------
>    libvncserver appears to be built against
>    libgcrypt, but the libgcrypt headers
>    could not be found. VNC will be disabled.
>   --------------------------------------------])
>                                            have_libvncserver=no])],,
>                     [[#include <rfb/rfbconfig.h>]])
>
> fi
>
575a630,657
> # Generic credential support within libVNCServer (authentication beyond
> # basic, standard VNC passwords)
> #
>
> if test "x${have_libvncserver}" = "xyes"
> then
>
>     have_vnc_creds=yes
>     AC_CHECK_MEMBERS([rfbClient.GetCredential],
>                      [], [have_vnc_creds=no],
>                      [[#include <rfb/rfbclient.h>]])
>
>     if test "x${have_vnc_creds}" = "xno"
>     then
>         AC_MSG_WARN([
>       --------------------------------------------
>        No generic credential support found in libvncclient.
>        VNC authentication support will be limited to passwords.
>       --------------------------------------------])
>     else
>         AC_DEFINE([ENABLE_VNC_GENERIC_CREDENTIALS],,
>                   [Whether support for generic VNC credentials is
available.])
>     fi
>
> fi
>
>
> #
817a900,907
> # Updated certificate verification callback (introduced with 2.0.0, not
present
> # in 2.0.0-rc4 or earlier)
> if test "x${have_freerdp2}" = "xyes"
> then
>     AC_CHECK_MEMBERS([freerdp.VerifyCertificateEx],,,
>                      [[#include <freerdp/freerdp.h>]])
> fi
>
1115a1206
>                  src/protocols/kubernetes/tests/Makefile
Common subdirectories: guacamole-server-1.3.0/doc and
guacamole-server-master/doc
Common subdirectories: guacamole-server-1.3.0/m4 and
guacamole-server-master/m4
Common subdirectories: guacamole-server-1.3.0/src and
guacamole-server-master/src
Common subdirectories: guacamole-server-1.3.0/util and
guacamole-server-master/util

So it's safe to say I can just replace configure.ac file?

Best Regards,



Luís Cascales

*Consultant*

Tel: +351 265 400 201 | Mobile: +351 914 683 124

E-mail: luis.cascales@runlevel.pt

Runlevel - Sistemas de Informação, Lda

Travessa da Saboaria, nº 3C - 2900-597 Setúbal - Portugal



On Wed, Apr 7, 2021 at 1:06 PM Nick Couchman <vn...@apache.org> wrote:

> On Wed, Apr 7, 2021 at 8:02 AM Luis Cascales <lu...@runlevel.pt>
> wrote:
>
>> This one?
>> https://github.com/apache/guacamole-server
>>
>
> Yep, that's the Github mirror of the official code.
>
> -Nick
>
>>

Re: Apache Guacamole RDP connection not successful

Posted by Nick Couchman <vn...@apache.org>.
On Wed, Apr 7, 2021 at 8:02 AM Luis Cascales <lu...@runlevel.pt>
wrote:

> This one?
> https://github.com/apache/guacamole-server
>

Yep, that's the Github mirror of the official code.

-Nick

>

Re: Apache Guacamole RDP connection not successful

Posted by Luis Cascales <lu...@runlevel.pt>.
This one?
https://github.com/apache/guacamole-server

Luís Cascales

*Consultant*

Tel: +351 265 400 201 | Mobile: +351 914 683 124

E-mail: luis.cascales@runlevel.pt

Runlevel - Sistemas de Informação, Lda

Travessa da Saboaria, nº 3C - 2900-597 Setúbal - Portugal



On Wed, Apr 7, 2021 at 12:17 PM Nick Couchman <vn...@apache.org> wrote:

> On Wed, Apr 7, 2021 at 7:03 AM Luis Cascales <lu...@runlevel.pt>
> wrote:
>
>> Good morning,
>>
>> I have set logging to DEBUG level and these are my findings.
>>
>> [root@rdgtwlab ~]*# tail -f /var/log/messages*
>> Apr  7 11:20:23 rdgtwlab guacd[113901]: Connection ID is
>> "$8597e2e3-07b8-40f5-8c55-9f57d6c17f23"
>> Apr  7 11:20:23 rdgtwlab guacd[114000]: Security mode: Negotiate (ANY)
>> Apr  7 11:20:23 rdgtwlab guacd[114000]: Resize method: none
>> Apr  7 11:20:23 rdgtwlab guacd[114000]: User
>> "@07ce0f5d-cc82-4aad-815d-80747a75c3f1" joined connection
>> "$8597e2e3-07b8-40f5-8c55-9f57d6c17f23" (1 users now present)
>> Apr  7 11:20:23 rdgtwlab guacd[114000]: Loading keymap "base"
>> Apr  7 11:20:23 rdgtwlab guacd[114000]: Loading keymap "en-us-qwerty"
>> Apr  7 11:20:24 rdgtwlab guacd[114000]: Connected to RDPDR 1.13 as client
>> 0x0002
>> Apr  7 11:20:24 rdgtwlab systemd[1]: Started Process Core Dump (PID
>> 114013/UID 0).
>> Apr  7 11:20:24 rdgtwlab guacd[113901]: Connection
>> "$8597e2e3-07b8-40f5-8c55-9f57d6c17f23" removed.
>> Apr  7 11:20:24 rdgtwlab systemd-coredump[114015]: Process 114000 (guacd)
>> of user 0 dumped core.#012#012Stack trace of thread 114005:#012#0
>>  0x00007f401a3657ef raise (libc.so.6)#012#1  0x00007f401a34fc45 abort
>> (libc.so.6)#012#2  0x00007f401a3a8987 __libc_message (libc.so.6)#012#3
>>  0x00007f401a3afd8c malloc_printerr (libc.so.6)#012#4  0x00007f401a3b1afd
>> _int_free (libc.so.6)#012#5  0x00007f4015342328 Stream_Free
>> (libwinpr2.so.2)#012#6  0x00007f40158d01cd
>> channel_queue_message_free.part.0 (libfreerdp2.so.2)#012#7
>>  0x00007f40158d07ea freerdp_channels_process_sync.isra.2
>> (libfreerdp2.so.2)#012#8  0x00007f40158d140f freerdp_channels_check_fds
>> (libfreerdp2.so.2)#012#9  0x00007f40158cec69 freerdp_check_event_handles
>> (libfreerdp2.so.2)#012#10 0x00007f4015bbda59 guac_rdp_handle_connection
>> (libguac-client-rdp.so)#012#11 0x00007f401b07d16a start_thread
>> (libpthread.so.0)#012#12 0x00007f401a42af23 __clone
>> (libc.so.6)#012#012Stack trace of thread 114008:#012#0  0x00007f401a41fca1
>> __poll (libc.so.6)#012#1  0x00007f401532c44b WaitForMultipleObjects
>> (libwinpr2.so.2)#012#2  0x00007f4015365a1b thread_pool_work_func
>> (libwinpr2.so.2)#012#3  0x00007f4015367506 thread_launcher
>> (libwinpr2.so.2)#012#4  0x00007f401b07d16a start_thread
>> (libpthread.so.0)#012#5  0x00007f401a42af23 __clone
>> (libc.so.6)#012#012Stack trace of thread 114009:#012#0  0x00007f401a41fca1
>> __poll (libc.so.6)#012#1  0x00007f401532c44b WaitForMultipleObjects
>> (libwinpr2.so.2)#012#2  0x00007f4015365a1b thread_pool_work_func
>> (libwinpr2.so.2)#012#3  0x00007f4015367506 thread_launcher
>> (libwinpr2.so.2)#012#4  0x00007f401b07d16a start_thread
>> (libpthread.so.0)#012#5  0x00007f401a42af23 __clone
>> (libc.so.6)#012#012Stack trace of thread 114010:#012#0  0x00007f401a41fca1
>> __poll (libc.so.6)#012#1  0x00007f401532c44b WaitForMultipleObjects
>> (libwinpr2.so.2)#012#2  0x00007f4015365a1b thread_pool_work_func
>> (libwinpr2.so.2)#012#3  0x00007f4015367506 thread_launcher
>> (libwinpr2.so.2)#012#4  0x00007f401b07d16a start_thread
>> (libpthread.so.0)#012#5  0x00007f401a42af23 __clone
>> (libc.so.6)#012#012Stack trace of thread 114011:#012#0  0x00007f401a41fca1
>> __poll (libc.so.6)#012#1  0x00007f401532c44b WaitForMultipleObjects
>> (libwinpr2.so.2)#012#2  0x00007f4015365a1b thread_pool_work_func
>> (libwinpr2.so.2)#012#3  0x00007f4015367506 thread_launcher
>> (libwinpr2.so.2)#012#4  0x00007f401b07d16a start_thread
>> (libpthread.so.0)#012#5  0x00007f401a42af23 __clone
>> (libc.so.6)#012#012Stack trace of thread 114000:#012#0  0x00007f401b0877d7
>> recvmsg (libpthread.so.0)#012#1  0x0000000000403dae guacd_recv_fd
>> (guacd)#012#2  0x00000000004040b1 guacd_exec_proc (guacd)#012#3
>>  0x00000000004036a1 guacd_route_connection (guacd)#012#4
>>  0x00007f401b07d16a start_thread (libpthread.so.0)#012#5
>>  0x00007f401a42af23 __clone (libc.so.6)#012#012Stack trace of thread
>> 114006:#012#0  0x00007f401a41fca1 __poll (libc.so.6)#012#1
>>  0x00007f401bc67815 guac_wait_for_fd (libguac.so.19)#012#2
>>  0x00007f401bc6531b guac_socket_fd_select_handler (libguac.so.19)#012#3
>>  0x00007f401bc615de guac_parser_read (libguac.so.19)#012#4
>>  0x00007f401bc67305 guac_user_input_thread (libguac.so.19)#012#5
>>  0x00007f401b07d16a start_thread (libpthread.so.0)#012#6
>>  0x00007f401a42af23 __clone (libc.so.6)#012#012Stack trace of thread
>> 114004:#012#0  0x00007f401b07e65d __GI___pthread_timedjoin_ex
>> (libpthread.so.0)#012#1  0x00007f401bc6773b guac_user_start
>> (libguac.so.19)#012#2  0x0000000000404316 guacd_user_thread (guacd)#012#3
>>  0x00007f401b07d16a start_thread (libpthread.so.0)#012#4
>>  0x00007f401a42af23 __clone (libc.so.6)#012#012Stack trace of thread
>> 114003:#012#0  0x00007f401b086fd0 __nanosleep (libpthread.so.0)#012#1
>>  0x00007f401bc64fa0 __guac_socket_keep_alive_thread (libguac.so.19)#012#2
>>  0x00007f401b07d16a start_thread (libpthread.so.0)#012#3
>>  0x00007f401a42af23 __clone (libc.so.6)#012#012Stack trace of thread
>> 114012:#012#0  0x00007f401a41fca1 __poll (libc.so.6)#012#1
>>  0x00007f401532bc30 WaitForSingleObject (libwinpr2.so.2)#012#2
>>  0x00007f4015348476 MessageQueue_Wait (libwinpr2.so.2)#012#3
>>  0x00007f401560d7cd cliprdr_virtual_channel_client_thread
>> (libfreerdp-client2.so.2)#012#4  0x00007f4015367506 thread_launcher
>> (libwinpr2.so.2)#012#5  0x00007f401b07d16a start_thread
>> (libpthread.so.0)#012#6  0x00007f401a42af23 __clone (libc.so.6)
>>
>>
> This is your issue, here - guacd is crashing/core-dumping for some unknown
> reason. The output, here, is fairly hard to parse, as syslog just pukes it
> into a single line. I think there are a couple of bugs that have been fixed
> recently that might cover this. Could you check out the latest git master
> code for guacamole-server and compile that and see if it still crashes?
>
> -Nick
>
>>

Re: Apache Guacamole RDP connection not successful

Posted by Nick Couchman <vn...@apache.org>.
On Wed, Apr 7, 2021 at 7:03 AM Luis Cascales <lu...@runlevel.pt>
wrote:

> Good morning,
>
> I have set logging to DEBUG level and these are my findings.
>
> [root@rdgtwlab ~]*# tail -f /var/log/messages*
> Apr  7 11:20:23 rdgtwlab guacd[113901]: Connection ID is
> "$8597e2e3-07b8-40f5-8c55-9f57d6c17f23"
> Apr  7 11:20:23 rdgtwlab guacd[114000]: Security mode: Negotiate (ANY)
> Apr  7 11:20:23 rdgtwlab guacd[114000]: Resize method: none
> Apr  7 11:20:23 rdgtwlab guacd[114000]: User
> "@07ce0f5d-cc82-4aad-815d-80747a75c3f1" joined connection
> "$8597e2e3-07b8-40f5-8c55-9f57d6c17f23" (1 users now present)
> Apr  7 11:20:23 rdgtwlab guacd[114000]: Loading keymap "base"
> Apr  7 11:20:23 rdgtwlab guacd[114000]: Loading keymap "en-us-qwerty"
> Apr  7 11:20:24 rdgtwlab guacd[114000]: Connected to RDPDR 1.13 as client
> 0x0002
> Apr  7 11:20:24 rdgtwlab systemd[1]: Started Process Core Dump (PID
> 114013/UID 0).
> Apr  7 11:20:24 rdgtwlab guacd[113901]: Connection
> "$8597e2e3-07b8-40f5-8c55-9f57d6c17f23" removed.
> Apr  7 11:20:24 rdgtwlab systemd-coredump[114015]: Process 114000 (guacd)
> of user 0 dumped core.#012#012Stack trace of thread 114005:#012#0
>  0x00007f401a3657ef raise (libc.so.6)#012#1  0x00007f401a34fc45 abort
> (libc.so.6)#012#2  0x00007f401a3a8987 __libc_message (libc.so.6)#012#3
>  0x00007f401a3afd8c malloc_printerr (libc.so.6)#012#4  0x00007f401a3b1afd
> _int_free (libc.so.6)#012#5  0x00007f4015342328 Stream_Free
> (libwinpr2.so.2)#012#6  0x00007f40158d01cd
> channel_queue_message_free.part.0 (libfreerdp2.so.2)#012#7
>  0x00007f40158d07ea freerdp_channels_process_sync.isra.2
> (libfreerdp2.so.2)#012#8  0x00007f40158d140f freerdp_channels_check_fds
> (libfreerdp2.so.2)#012#9  0x00007f40158cec69 freerdp_check_event_handles
> (libfreerdp2.so.2)#012#10 0x00007f4015bbda59 guac_rdp_handle_connection
> (libguac-client-rdp.so)#012#11 0x00007f401b07d16a start_thread
> (libpthread.so.0)#012#12 0x00007f401a42af23 __clone
> (libc.so.6)#012#012Stack trace of thread 114008:#012#0  0x00007f401a41fca1
> __poll (libc.so.6)#012#1  0x00007f401532c44b WaitForMultipleObjects
> (libwinpr2.so.2)#012#2  0x00007f4015365a1b thread_pool_work_func
> (libwinpr2.so.2)#012#3  0x00007f4015367506 thread_launcher
> (libwinpr2.so.2)#012#4  0x00007f401b07d16a start_thread
> (libpthread.so.0)#012#5  0x00007f401a42af23 __clone
> (libc.so.6)#012#012Stack trace of thread 114009:#012#0  0x00007f401a41fca1
> __poll (libc.so.6)#012#1  0x00007f401532c44b WaitForMultipleObjects
> (libwinpr2.so.2)#012#2  0x00007f4015365a1b thread_pool_work_func
> (libwinpr2.so.2)#012#3  0x00007f4015367506 thread_launcher
> (libwinpr2.so.2)#012#4  0x00007f401b07d16a start_thread
> (libpthread.so.0)#012#5  0x00007f401a42af23 __clone
> (libc.so.6)#012#012Stack trace of thread 114010:#012#0  0x00007f401a41fca1
> __poll (libc.so.6)#012#1  0x00007f401532c44b WaitForMultipleObjects
> (libwinpr2.so.2)#012#2  0x00007f4015365a1b thread_pool_work_func
> (libwinpr2.so.2)#012#3  0x00007f4015367506 thread_launcher
> (libwinpr2.so.2)#012#4  0x00007f401b07d16a start_thread
> (libpthread.so.0)#012#5  0x00007f401a42af23 __clone
> (libc.so.6)#012#012Stack trace of thread 114011:#012#0  0x00007f401a41fca1
> __poll (libc.so.6)#012#1  0x00007f401532c44b WaitForMultipleObjects
> (libwinpr2.so.2)#012#2  0x00007f4015365a1b thread_pool_work_func
> (libwinpr2.so.2)#012#3  0x00007f4015367506 thread_launcher
> (libwinpr2.so.2)#012#4  0x00007f401b07d16a start_thread
> (libpthread.so.0)#012#5  0x00007f401a42af23 __clone
> (libc.so.6)#012#012Stack trace of thread 114000:#012#0  0x00007f401b0877d7
> recvmsg (libpthread.so.0)#012#1  0x0000000000403dae guacd_recv_fd
> (guacd)#012#2  0x00000000004040b1 guacd_exec_proc (guacd)#012#3
>  0x00000000004036a1 guacd_route_connection (guacd)#012#4
>  0x00007f401b07d16a start_thread (libpthread.so.0)#012#5
>  0x00007f401a42af23 __clone (libc.so.6)#012#012Stack trace of thread
> 114006:#012#0  0x00007f401a41fca1 __poll (libc.so.6)#012#1
>  0x00007f401bc67815 guac_wait_for_fd (libguac.so.19)#012#2
>  0x00007f401bc6531b guac_socket_fd_select_handler (libguac.so.19)#012#3
>  0x00007f401bc615de guac_parser_read (libguac.so.19)#012#4
>  0x00007f401bc67305 guac_user_input_thread (libguac.so.19)#012#5
>  0x00007f401b07d16a start_thread (libpthread.so.0)#012#6
>  0x00007f401a42af23 __clone (libc.so.6)#012#012Stack trace of thread
> 114004:#012#0  0x00007f401b07e65d __GI___pthread_timedjoin_ex
> (libpthread.so.0)#012#1  0x00007f401bc6773b guac_user_start
> (libguac.so.19)#012#2  0x0000000000404316 guacd_user_thread (guacd)#012#3
>  0x00007f401b07d16a start_thread (libpthread.so.0)#012#4
>  0x00007f401a42af23 __clone (libc.so.6)#012#012Stack trace of thread
> 114003:#012#0  0x00007f401b086fd0 __nanosleep (libpthread.so.0)#012#1
>  0x00007f401bc64fa0 __guac_socket_keep_alive_thread (libguac.so.19)#012#2
>  0x00007f401b07d16a start_thread (libpthread.so.0)#012#3
>  0x00007f401a42af23 __clone (libc.so.6)#012#012Stack trace of thread
> 114012:#012#0  0x00007f401a41fca1 __poll (libc.so.6)#012#1
>  0x00007f401532bc30 WaitForSingleObject (libwinpr2.so.2)#012#2
>  0x00007f4015348476 MessageQueue_Wait (libwinpr2.so.2)#012#3
>  0x00007f401560d7cd cliprdr_virtual_channel_client_thread
> (libfreerdp-client2.so.2)#012#4  0x00007f4015367506 thread_launcher
> (libwinpr2.so.2)#012#5  0x00007f401b07d16a start_thread
> (libpthread.so.0)#012#6  0x00007f401a42af23 __clone (libc.so.6)
>
>
This is your issue, here - guacd is crashing/core-dumping for some unknown
reason. The output, here, is fairly hard to parse, as syslog just pukes it
into a single line. I think there are a couple of bugs that have been fixed
recently that might cover this. Could you check out the latest git master
code for guacamole-server and compile that and see if it still crashes?

-Nick

>

Re: Apache Guacamole RDP connection not successful

Posted by Luis Cascales <lu...@runlevel.pt>.
Good morning,

I have set logging to DEBUG level and these are my findings.

[root@rdgtwlab ~]*# tail -f /var/log/messages*
Apr  7 11:20:23 rdgtwlab guacd[113901]: Connection ID is
"$8597e2e3-07b8-40f5-8c55-9f57d6c17f23"
Apr  7 11:20:23 rdgtwlab guacd[114000]: Security mode: Negotiate (ANY)
Apr  7 11:20:23 rdgtwlab guacd[114000]: Resize method: none
Apr  7 11:20:23 rdgtwlab guacd[114000]: User
"@07ce0f5d-cc82-4aad-815d-80747a75c3f1" joined connection
"$8597e2e3-07b8-40f5-8c55-9f57d6c17f23" (1 users now present)
Apr  7 11:20:23 rdgtwlab guacd[114000]: Loading keymap "base"
Apr  7 11:20:23 rdgtwlab guacd[114000]: Loading keymap "en-us-qwerty"
Apr  7 11:20:24 rdgtwlab guacd[114000]: Connected to RDPDR 1.13 as client
0x0002
Apr  7 11:20:24 rdgtwlab systemd[1]: Started Process Core Dump (PID
114013/UID 0).
Apr  7 11:20:24 rdgtwlab guacd[113901]: Connection
"$8597e2e3-07b8-40f5-8c55-9f57d6c17f23" removed.
Apr  7 11:20:24 rdgtwlab systemd-coredump[114015]: Process 114000 (guacd)
of user 0 dumped core.#012#012Stack trace of thread 114005:#012#0
 0x00007f401a3657ef raise (libc.so.6)#012#1  0x00007f401a34fc45 abort
(libc.so.6)#012#2  0x00007f401a3a8987 __libc_message (libc.so.6)#012#3
 0x00007f401a3afd8c malloc_printerr (libc.so.6)#012#4  0x00007f401a3b1afd
_int_free (libc.so.6)#012#5  0x00007f4015342328 Stream_Free
(libwinpr2.so.2)#012#6  0x00007f40158d01cd
channel_queue_message_free.part.0 (libfreerdp2.so.2)#012#7
 0x00007f40158d07ea freerdp_channels_process_sync.isra.2
(libfreerdp2.so.2)#012#8  0x00007f40158d140f freerdp_channels_check_fds
(libfreerdp2.so.2)#012#9  0x00007f40158cec69 freerdp_check_event_handles
(libfreerdp2.so.2)#012#10 0x00007f4015bbda59 guac_rdp_handle_connection
(libguac-client-rdp.so)#012#11 0x00007f401b07d16a start_thread
(libpthread.so.0)#012#12 0x00007f401a42af23 __clone
(libc.so.6)#012#012Stack trace of thread 114008:#012#0  0x00007f401a41fca1
__poll (libc.so.6)#012#1  0x00007f401532c44b WaitForMultipleObjects
(libwinpr2.so.2)#012#2  0x00007f4015365a1b thread_pool_work_func
(libwinpr2.so.2)#012#3  0x00007f4015367506 thread_launcher
(libwinpr2.so.2)#012#4  0x00007f401b07d16a start_thread
(libpthread.so.0)#012#5  0x00007f401a42af23 __clone
(libc.so.6)#012#012Stack trace of thread 114009:#012#0  0x00007f401a41fca1
__poll (libc.so.6)#012#1  0x00007f401532c44b WaitForMultipleObjects
(libwinpr2.so.2)#012#2  0x00007f4015365a1b thread_pool_work_func
(libwinpr2.so.2)#012#3  0x00007f4015367506 thread_launcher
(libwinpr2.so.2)#012#4  0x00007f401b07d16a start_thread
(libpthread.so.0)#012#5  0x00007f401a42af23 __clone
(libc.so.6)#012#012Stack trace of thread 114010:#012#0  0x00007f401a41fca1
__poll (libc.so.6)#012#1  0x00007f401532c44b WaitForMultipleObjects
(libwinpr2.so.2)#012#2  0x00007f4015365a1b thread_pool_work_func
(libwinpr2.so.2)#012#3  0x00007f4015367506 thread_launcher
(libwinpr2.so.2)#012#4  0x00007f401b07d16a start_thread
(libpthread.so.0)#012#5  0x00007f401a42af23 __clone
(libc.so.6)#012#012Stack trace of thread 114011:#012#0  0x00007f401a41fca1
__poll (libc.so.6)#012#1  0x00007f401532c44b WaitForMultipleObjects
(libwinpr2.so.2)#012#2  0x00007f4015365a1b thread_pool_work_func
(libwinpr2.so.2)#012#3  0x00007f4015367506 thread_launcher
(libwinpr2.so.2)#012#4  0x00007f401b07d16a start_thread
(libpthread.so.0)#012#5  0x00007f401a42af23 __clone
(libc.so.6)#012#012Stack trace of thread 114000:#012#0  0x00007f401b0877d7
recvmsg (libpthread.so.0)#012#1  0x0000000000403dae guacd_recv_fd
(guacd)#012#2  0x00000000004040b1 guacd_exec_proc (guacd)#012#3
 0x00000000004036a1 guacd_route_connection (guacd)#012#4
 0x00007f401b07d16a start_thread (libpthread.so.0)#012#5
 0x00007f401a42af23 __clone (libc.so.6)#012#012Stack trace of thread
114006:#012#0  0x00007f401a41fca1 __poll (libc.so.6)#012#1
 0x00007f401bc67815 guac_wait_for_fd (libguac.so.19)#012#2
 0x00007f401bc6531b guac_socket_fd_select_handler (libguac.so.19)#012#3
 0x00007f401bc615de guac_parser_read (libguac.so.19)#012#4
 0x00007f401bc67305 guac_user_input_thread (libguac.so.19)#012#5
 0x00007f401b07d16a start_thread (libpthread.so.0)#012#6
 0x00007f401a42af23 __clone (libc.so.6)#012#012Stack trace of thread
114004:#012#0  0x00007f401b07e65d __GI___pthread_timedjoin_ex
(libpthread.so.0)#012#1  0x00007f401bc6773b guac_user_start
(libguac.so.19)#012#2  0x0000000000404316 guacd_user_thread (guacd)#012#3
 0x00007f401b07d16a start_thread (libpthread.so.0)#012#4
 0x00007f401a42af23 __clone (libc.so.6)#012#012Stack trace of thread
114003:#012#0  0x00007f401b086fd0 __nanosleep (libpthread.so.0)#012#1
 0x00007f401bc64fa0 __guac_socket_keep_alive_thread (libguac.so.19)#012#2
 0x00007f401b07d16a start_thread (libpthread.so.0)#012#3
 0x00007f401a42af23 __clone (libc.so.6)#012#012Stack trace of thread
114012:#012#0  0x00007f401a41fca1 __poll (libc.so.6)#012#1
 0x00007f401532bc30 WaitForSingleObject (libwinpr2.so.2)#012#2
 0x00007f4015348476 MessageQueue_Wait (libwinpr2.so.2)#012#3
 0x00007f401560d7cd cliprdr_virtual_channel_client_thread
(libfreerdp-client2.so.2)#012#4  0x00007f4015367506 thread_launcher
(libwinpr2.so.2)#012#5  0x00007f401b07d16a start_thread
(libpthread.so.0)#012#6  0x00007f401a42af23 __clone (libc.so.6)




^C
[root@rdgtwlab ~]#
[root@rdgtwlab ~]#
[root@rdgtwlab ~]#
[root@rdgtwlab ~]*# tail -f /opt/tomcat/logs/catalina.out*
11:20:23.789 [http-nio-8080-exec-3] DEBUG
o.a.g.r.auth.AuthenticationService - Login was successful for user "admin".
11:20:23.806 [http-nio-8080-exec-7] DEBUG o.a.g.rest.RESTExceptionMapper -
Client request rejected: No such token.
11:20:23.882 [http-nio-8080-exec-9] INFO
 o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is
"/opt/tomcat/.guacamole".
11:20:23.891 [http-nio-8080-exec-9] DEBUG o.a.g.net.InetGuacamoleSocket -
Connecting to guacd at 127.0.0.1:4822.
11:20:23.915 [http-nio-8080-exec-9] INFO  o.a.g.tunnel.TunnelRequestService
- User "admin" connected to connection "QAPOSFW".
11:20:24.093 [http-nio-8080-exec-7] DEBUG o.a.g.rest.RESTExceptionMapper -
Client request rejected: No readable active connection for tunnel.
11:20:28.872 [Thread-7] INFO  o.a.g.tunnel.TunnelRequestService - User
"admin" disconnected from connection "QAPOSFW". Duration: 4957 milliseconds
11:20:28.873 [Thread-7] DEBUG o.a.g.net.InetGuacamoleSocket - Closing
socket to guacd.
11:21:02.687 [pool-1-thread-1] DEBUG o.a.g.rest.auth.HashTokenSessionMap -
Checking for expired sessions...
11:21:02.687 [pool-1-thread-1] DEBUG o.a.g.rest.auth.HashTokenSessionMap -
Session check completed in 0 ms.
^C
[root@rdgtwlab ~]#
[root@rdgtwlab ~]#
[root@rdgtwlab ~]#
[root@rdgtwlab ~]*# tail -f
/opt/tomcat/logs/localhost_access_log.2021-04-07.txt*
127.0.0.1 - - [07/Apr/2021:11:20:23 +0100] "GET
/guacamole-1.3.0/api/session/data/default/self/permissions?token=9A416EDF0A818661F24A1A7125856A522F8DD9ABC70BABAFC33A1CBC9B0A09B8
HTTP/1.1" 200 262
127.0.0.1 - - [07/Apr/2021:11:20:23 +0100] "GET
/guacamole-1.3.0/websocket-tunnel?token=9A416EDF0A818661F24A1A7125856A522F8DD9ABC70BABAFC33A1CBC9B0A09B8&GUAC_DATA_SOURCE=default&GUAC_ID=QAPOSFW&GUAC_TYPE=c&GUAC_WIDTH=1280&GUAC_HEIGHT=662&GUAC_DPI=96&GUAC_TIMEZONE=Africa%2FLuanda&GUAC_AUDIO=audio%2FL8&GUAC_AUDIO=audio%2FL16&GUAC_IMAGE=image%2Fjpeg&GUAC_IMAGE=image%2Fpng&GUAC_IMAGE=image%2Fwebp
HTTP/1.1" 101 -
127.0.0.1 - - [07/Apr/2021:11:20:23 +0100] "GET
/guacamole-1.3.0/api/session/data/default/connections/QAPOSFW?token=9A416EDF0A818661F24A1A7125856A522F8DD9ABC70BABAFC33A1CBC9B0A09B8
HTTP/1.1" 200 133
127.0.0.1 - - [07/Apr/2021:11:20:24 +0100] "GET
/guacamole-1.3.0/api/session/tunnels/6a1550d4-8471-47e4-9dfe-3750fcb591eb/protocol?token=9A416EDF0A818661F24A1A7125856A522F8DD9ABC70BABAFC33A1CBC9B0A09B8
HTTP/1.1" 200 4833
127.0.0.1 - - [07/Apr/2021:11:20:24 +0100] "GET
/guacamole-1.3.0/api/session/tunnels/6a1550d4-8471-47e4-9dfe-3750fcb591eb/activeConnection/connection/sharingProfiles?token=9A416EDF0A818661F24A1A7125856A522F8DD9ABC70BABAFC33A1CBC9B0A09B8
HTTP/1.1" 404 241
127.0.0.1 - - [07/Apr/2021:11:20:28 +0100] "POST
/guacamole-1.3.0/api/tokens HTTP/1.1" 200 168
127.0.0.1 - - [07/Apr/2021:11:20:33 +0100] "POST
/guacamole-1.3.0/api/tokens HTTP/1.1" 200 168
127.0.0.1 - - [07/Apr/2021:11:20:33 +0100] "GET
/guacamole-1.3.0/api/session/data/default/users/admin?token=9A416EDF0A818661F24A1A7125856A522F8DD9ABC70BABAFC33A1CBC9B0A09B8
HTTP/1.1" 200 47
127.0.0.1 - - [07/Apr/2021:11:20:33 +0100] "GET
/guacamole-1.3.0/api/session/data/default/self/effectivePermissions?token=9A416EDF0A818661F24A1A7125856A522F8DD9ABC70BABAFC33A1CBC9B0A09B8
HTTP/1.1" 200 262
127.0.0.1 - - [07/Apr/2021:11:20:33 +0100] "GET
/guacamole-1.3.0/api/session/data/default/activeConnections?token=9A416EDF0A818661F24A1A7125856A522F8DD9ABC70BABAFC33A1CBC9B0A09B8
HTTP/1.1" 200 12

To give proper context, the approach was to try to build guacamole-server
with rpm packages, from Oracle Linux repos, or EPEL repositories due to
compatibility, or build entirely from source.
Even knowing that guacamole-server has to be built from source, as it's
clear in the documentation,  there's an existing guacd daemon rpm package ,
and also the libraries for client protocols, with the dependencies already
worked out.

guacd-1.3.0-1.el8.x86_64.rpm
libguac-1.3.0-1.el8.x86_64.rpm
libguac-client-rdp-1.3.0-1.el8.x86_64.rpm
libguac-client-ssh-1.3.0-1.el8.x86_64.rpm
libguac-client-telnet-1.3.0-1.el8.x86_64.rpm
libguac-devel-1.3.0-1.el8.x86_64.rpm

With that and the installation of Tomcat 8.5 , the access via SSH was
successful , however RDP failed even doing the ./configure script in
paralel to verify the requisites:

Library status:

     freerdp2 ............ yes
     pango ............... yes
     libavcodec .......... yes
     libavformat.......... yes
     libavutil ........... yes
     libssh2 ............. yes
     libssl .............. yes
     libswscale .......... yes
     libtelnet ........... yes
     libVNCServer ........ no
     libvorbis ........... no
     libpulse ............ no
     libwebsockets ....... yes
     libwebp ............. no
     wsock32 ............. no

   Protocol support:

      Kubernetes .... yes
      RDP ........... yes
      SSH ........... yes
      Telnet ........ yes
      VNC ........... no

   Services / tools:

      guacd ...... yes
      guacenc .... yes
      guaclog .... yes


however this was the error
Mar 29 11:49:16 rdgtwlab guacd[233715]: Support for protocol "rdp" is not
installed

Which persisted even after updating freerdp and libwinpr packages

# rpm -Uvh libwinpr-2.0.0-46.rc4.el8_2.2.x86_64.rpm
libwinpr-devel-2.0.0-46.rc4.el8_2.2.x86_64.rpm
freerdp-libs-2.0.0-46.rc4.el8_2.2.x86_64.rpm
freerdp-devel-2.0.0-46.rc4.el8_2.2.x86_64.rpm
freerdp-2.0.0-46.rc4.el8_2.2.x86_64.rpm


So it was compiled from source and the guacd service derived from rpm
package was stoped and disabled to execute the binary built from source and
consequently restarting tomcat as well

root      113901       1  0 11:19 ?        00:00:00 /usr/local/sbin/guacd
-p /var/run/guacd.pid
root      113987  113901  0 11:20 ?        00:00:00 /usr/local/sbin/guacd
-p /var/run/guacd.pid

This solved the missing support issue, and still on the status point shown
on the beginning of this email.
The question is, what else is there that should be done or is missing from
the configuration?
Guacamole.properties file by itself could be just ommited with the defaults
already assumed, and tomcat configuration files are probably ok as the
webserver is running.

Best Regards,

Luís Cascales

*Consultant*

Tel: +351 265 400 201 | Mobile: +351 914 683 124

E-mail: luis.cascales@runlevel.pt

Runlevel - Sistemas de Informação, Lda

Travessa da Saboaria, nº 3C - 2900-597 Setúbal - Portugal



On Tue, Apr 6, 2021 at 10:26 PM Luis Cascales <lu...@runlevel.pt>
wrote:

> Good evening,
>
> I have installed Apache Guacamole 1.3.0 on a VM with Oracle Linux 8.2 for
> testing purposes, using Apache Tomcat 8.5
>
> While SSH session works fine, on the RDP session, it shows a screen with
> another mouse pointer (one would think this is it) but it never lasts more
> than 4 seconds, it disconnects. Been trying to work out what could be the
> issue.
>
> Sending the outputs of *guacd *and also  *catalina* and *localhost_access_log
> *and also logs , as the error messages regarding permission denied have
> me baffled, whereas the file ownership and permissions seem fine in my
> configuration.
>
> *# tail -f /var/log/messages*
> Apr  6 10:20:57 rdgtwlab guacd[98736]: Connection ID is
> "$dcc1d4ef-9819-409a-86df-06e9d8af0d48"
> Apr  6 10:20:57 rdgtwlab guacd[98891]: Security mode: Negotiate (ANY)
> Apr  6 10:20:57 rdgtwlab guacd[98891]: Resize method: none
> Apr  6 10:20:57 rdgtwlab guacd[98891]: User
> "@61c3d530-91cc-4f9c-ad50-66974c97ce8f" joined connection
> "$dcc1d4ef-9819-409a-86df-06e9d8af0d48" (1 users now present)
> Apr  6 10:20:57 rdgtwlab guacd[98891]: Loading keymap "base"
> Apr  6 10:20:57 rdgtwlab guacd[98891]: Loading keymap "en-us-qwerty"
> Apr  6 10:20:57 rdgtwlab guacd[98891]: Connected to RDPDR 1.13 as client
> 0x0002
> Apr  6 10:20:57 rdgtwlab systemd[1]: Started Process Core Dump (PID
> 98904/UID 0).
> Apr  6 10:20:58 rdgtwlab guacd[98736]: Connection
> "$dcc1d4ef-9819-409a-86df-06e9d8af0d48" removed.
> Apr  6 10:20:58 rdgtwlab systemd-coredump[98907]: Process 98891 (guacd) of
> user 0 dumped core.#012#012Stack trace of thread 98896:#012#0
>  0x00007f1aada987ef raise (libc.so.6)#012#1  0x00007f1aada82c45 abort
> (libc.so.6)#012#2  0x00007f1aadadb987 __libc_message (libc.so.6)#012#3
>  0x00007f1aadae2d8c malloc_printerr (libc.so.6)#012#4  0x00007f1aadae4afd
> _int_free (libc.so.6)#012#5  0x00007f1aa8a75328 Stream_Free
> (libwinpr2.so.2)#012#6  0x00007f1aa90031cd
> channel_queue_message_free.part.0 (libfreerdp2.so.2)#012#7
>  0x00007f1aa90037ea freerdp_channels_process_sync.isra.2
> (libfreerdp2.so.2)#012#8  0x00007f1aa900440f freerdp_channels_check_fds
> (libfreerdp2.so.2)#012#9  0x00007f1aa9001c69 freerdp_check_event_handles
> (libfreerdp2.so.2)#012#10 0x00007f1aa92f0a59 guac_rdp_handle_connection
> (libguac-client-rdp.so)#012#11 0x00007f1aae7b016a start_thread
> (libpthread.so.0)#012#12 0x00007f1aadb5df23 __clone
> (libc.so.6)#012#012Stack trace of thread 98891:#012#0  0x00007f1aae7ba7d7
> recvmsg (libpthread.so.0)#012#1  0x0000000000403dae guacd_recv_fd
> (guacd)#012#2  0x00000000004040b1 guacd_exec_proc (guacd)#012#3
>  0x00000000004036a1 guacd_route_connection (guacd)#012#4
>  0x00007f1aae7b016a start_thread (libpthread.so.0)#012#5
>  0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
> 98893:#012#0  0x00007f1aae7b9fd0 __nanosleep (libpthread.so.0)#012#1
>  0x00007f1aaf397fa0 __guac_socket_keep_alive_thread (libguac.so.19)#012#2
>  0x00007f1aae7b016a start_thread (libpthread.so.0)#012#3
>  0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
> 98894:#012#0  0x00007f1aae7b165d __GI___pthread_timedjoin_ex
> (libpthread.so.0)#012#1  0x00007f1aaf39a73b guac_user_start
> (libguac.so.19)#012#2  0x0000000000404316 guacd_user_thread (guacd)#012#3
>  0x00007f1aae7b016a start_thread (libpthread.so.0)#012#4
>  0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
> 98897:#012#0  0x00007f1aadb52ca1 __poll (libc.so.6)#012#1
>  0x00007f1aaf39a815 guac_wait_for_fd (libguac.so.19)#012#2
>  0x00007f1aaf39831b guac_socket_fd_select_handler (libguac.so.19)#012#3
>  0x00007f1aaf3945de guac_parser_read (libguac.so.19)#012#4
>  0x00007f1aaf39a305 guac_user_input_thread (libguac.so.19)#012#5
>  0x00007f1aae7b016a start_thread (libpthread.so.0)#012#6
>  0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
> 98899:#012#0  0x00007f1aadb52ca1 __poll (libc.so.6)#012#1
>  0x00007f1aa8a5f44b WaitForMultipleObjects (libwinpr2.so.2)#012#2
>  0x00007f1aa8a98a1b thread_pool_work_func (libwinpr2.so.2)#012#3
>  0x00007f1aa8a9a506 thread_launcher (libwinpr2.so.2)#012#4
>  0x00007f1aae7b016a start_thread (libpthread.so.0)#012#5
>  0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
> 98900:#012#0  0x00007f1aadb52ca1 __poll (libc.so.6)#012#1
>  0x00007f1aa8a5f44b WaitForMultipleObjects (libwinpr2.so.2)#012#2
>  0x00007f1aa8a98a1b thread_pool_work_func (libwinpr2.so.2)#012#3
>  0x00007f1aa8a9a506 thread_launcher (libwinpr2.so.2)#012#4
>  0x00007f1aae7b016a start_thread (libpthread.so.0)#012#5
>  0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
> 98901:#012#0  0x00007f1aadb52ca1 __poll (libc.so.6)#012#1
>  0x00007f1aa8a5f44b WaitForMultipleObjects (libwinpr2.so.2)#012#2
>  0x00007f1aa8a98a1b thread_pool_work_func (libwinpr2.so.2)#012#3
>  0x00007f1aa8a9a506 thread_launcher (libwinpr2.so.2)#012#4
>  0x00007f1aae7b016a start_thread (libpthread.so.0)#012#5
>  0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
> 98902:#012#0  0x00007f1aadb52ca1 __poll (libc.so.6)#012#1
>  0x00007f1aa8a5f44b WaitForMultipleObjects (libwinpr2.so.2)#012#2
>  0x00007f1aa8a98a1b thread_pool_work_func (libwinpr2.so.2)#012#3
>  0x00007f1aa8a9a506 thread_launcher (libwinpr2.so.2)#012#4
>  0x00007f1aae7b016a start_thread (libpthread.so.0)#012#5
>  0x00007f1aadb5df23 __clone (libc.so.6)#012#012Stack trace of thread
> 98903:#012#0  0x00007f1aadb52ca1 __poll (libc.so.6)#012#1
>  0x00007f1aa8a5ec30 WaitForSingleObject (libwinpr2.so.2)#012#2
>  0x00007f1aa8a7b476 MessageQueue_Wait (libwinpr2.so.2)#012#3
>  0x00007f1aa8d407cd cliprdr_virtual_channel_client_thread
> (libfreerdp-client2.so.2)#012#4  0x00007f1aa8a9a506 thread_launcher
> (libwinpr2.so.2)#012#5  0x00007f1aae7b016a start_thread
> (libpthread.so.0)#012#6  0x00007f1aadb5df23 __clone (libc.so.6)
>
>
> *# tail -f /opt/tomcat/logs/catalina.out*
> 10:20:44.744 [http-nio-8080-exec-8] WARN
>  o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request rejected:
> Permission Denied.
> 10:20:46.364 [http-nio-8080-exec-9] INFO
>  o.a.g.r.auth.AuthenticationService - User "admin" successfully
> authenticated from 127.0.0.1.
> 10:20:46.514 [http-nio-8080-exec-7] INFO
>  o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is
> "/opt/tomcat/.guacamole".
> 10:20:46.583 [http-nio-8080-exec-7] INFO
>  o.a.g.tunnel.TunnelRequestService - User "admin" connected to connection
> "Batch-Server".
> 10:20:55.538 [http-nio-8080-exec-8] ERROR
> o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to
> guacd failed: Permission Denied.
> 10:20:55.606 [http-nio-8080-exec-10] WARN
>  o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request rejected:
> Permission Denied.
> 10:20:57.029 [http-nio-8080-exec-2] INFO
>  o.a.g.r.auth.AuthenticationService - User "admin" successfully
> authenticated from 127.0.0.1.
> 10:20:57.118 [http-nio-8080-exec-7] INFO
>  o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is
> "/opt/tomcat/.guacamole".
> 10:20:57.156 [http-nio-8080-exec-7] INFO
>  o.a.g.tunnel.TunnelRequestService - User "admin" connected to connection
> "QAPOSFW".
> 10:21:02.098 [Thread-7] INFO  o.a.g.tunnel.TunnelRequestService - User
> "admin" disconnected from connection "QAPOSFW". Duration: 4942 milliseconds
>
>
> *# tail -f /opt/tomcat/logs/localhost_access_log.2021-04-06.txt*
> 127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "DELETE
> /guacamole-1.3.0/api/tokens/E034648E279BA36B0527F5A17958EC9A707A79EB81838CFF0129A20F7B076CC4
> HTTP/1.1" 404 187
> 127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "POST
> /guacamole-1.3.0/api/tokens HTTP/1.1" 200 168
> 127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
> /guacamole-1.3.0/api/patches?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B
> HTTP/1.1" 200 12
> 127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
> /guacamole-1.3.0/api/session/data/default/self/permissions?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B
> HTTP/1.1" 200 262
> 127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
> /guacamole-1.3.0/api/session/data/default/connectionGroups/ROOT/tree?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B
> HTTP/1.1" 200 386
> 127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
> /guacamole-1.3.0/api/session/data/default/connections/QAPOSFW?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B
> HTTP/1.1" 200 133
> 127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
> /guacamole-1.3.0/websocket-tunnel?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B&GUAC_DATA_SOURCE=default&GUAC_ID=QAPOSFW&GUAC_TYPE=c&GUAC_WIDTH=1280&GUAC_HEIGHT=662&GUAC_DPI=96&GUAC_TIMEZONE=Africa%2FLuanda&GUAC_AUDIO=audio%2FL8&GUAC_AUDIO=audio%2FL16&GUAC_IMAGE=image%2Fjpeg&GUAC_IMAGE=image%2Fpng&GUAC_IMAGE=image%2Fwebp
> HTTP/1.1" 101 -
> 127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
> /guacamole-1.3.0/api/session/tunnels/a2b831cb-2072-40ca-9445-7fc00b90ba5a/protocol?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B
> HTTP/1.1" 200 4833
> 127.0.0.1 - - [06/Apr/2021:10:20:57 +0100] "GET
> /guacamole-1.3.0/api/session/tunnels/a2b831cb-2072-40ca-9445-7fc00b90ba5a/activeConnection/connection/sharingProfiles?token=0B7DCF50BD58BA9C3C527E3E7225820D7E8EC78D95EDC3236BD79DE8F9941C7B
> HTTP/1.1" 404 241
> 127.0.0.1 - - [06/Apr/2021:10:21:02 +0100] "POST
> /guacamole-1.3.0/api/tokens HTTP/1.1" 200 168
>
> Best Regards,
>
>
> Luís Cascales
>
> *Consultant*
>
> Tel: +351 265 400 201 | Mobile: +351 914 683 124
>
> E-mail: luis.cascales@runlevel.pt
>
> Runlevel - Sistemas de Informação, Lda
>
> Travessa da Saboaria, nº 3C - 2900-597 Setúbal - Portugal
>
>