itiligent / Easy-Guacamole-Installer

Automated install of Gucamole with options for HTTPS reverse proxy, Active Directory integration, MFA, LetsEncrypt, dark theme, MySQL backup, email alerts & more.
GNU Affero General Public License v3.0
280 stars 49 forks source link

Ubuntu 24.04 unable to connect #59

Closed LeePorte closed 2 months ago

LeePorte commented 2 months ago

Describe the issue:

Steps to reproduce the issue:

Describe the software environment:

Logs / screenshots / error outputs etc

[2024-09-04 12:54:54] [info] 12:54:54.926 [http-nio-8080-exec-5] INFO  o.a.g.tunnel.TunnelRequestService - User "guacadmin" connected to connection "1".
[2024-09-04 12:54:57] [info] 12:54:57.437 [http-nio-8080-exec-4] INFO  o.a.g.tunnel.TunnelRequestService - User "guacadmin" disconnected from connection "1". Duration: 2511 milliseconds
[2024-09-04 12:55:00] [info] 12:55:00.600 [http-nio-8080-exec-3] INFO  o.a.g.tunnel.TunnelRequestService - User "guacadmin" connected to connection "1".
[2024-09-04 12:55:04] [info] 12:55:04.291 [http-nio-8080-exec-8] INFO  o.a.g.tunnel.TunnelRequestService - User "guacadmin" disconnected from connection "1". Duration: 3691 milliseconds
[2024-09-04 13:00:32] [info] 13:00:32.560 [http-nio-8080-exec-5] INFO  o.a.g.tunnel.TunnelRequestService - User "guacadmin" connected to connection "1".
[2024-09-04 13:00:36] [info] 13:00:36.294 [http-nio-8080-exec-10] INFO  o.a.g.tunnel.TunnelRequestService - User "guacadmin" disconnected from connection "1". Duration: 3734 milliseconds
[2024-09-04 13:00:36] [info] Exception in thread "Thread-14" java.lang.IllegalStateException: Message will not be sent because the WebSocket session has been closed
[2024-09-04 13:00:36] [info] #011at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:442)
[2024-09-04 13:00:36] [info] #011at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:314)
[2024-09-04 13:00:36] [info] #011at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:254)
[2024-09-04 13:00:36] [info] #011at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:195)
[2024-09-04 13:00:36] [info] #011at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
[2024-09-04 13:00:36] [info] #011at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
[2024-09-04 13:00:36] [info] #011at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
[2024-09-04 13:00:36] [info] #011at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
[2024-09-04 13:01:10] [info] 13:01:10.085 [http-nio-8080-exec-1] INFO  o.a.g.tunnel.TunnelRequestService - User "guacadmin" connected to connection "1".
[2024-09-04 13:01:13] [info] 13:01:13.732 [http-nio-8080-exec-5] INFO  o.a.g.tunnel.TunnelRequestService - User "guacadmin" disconnected from connection "1". Duration: 3647 milliseconds
[2024-09-04 13:01:13] [info] Exception in thread "Thread-16" java.lang.IllegalStateException: Message will not be sent because the WebSocket session has been closed
[2024-09-04 13:01:13] [info] #011at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:442)
[2024-09-04 13:01:13] [info] #011at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:314)
[2024-09-04 13:01:13] [info] #011at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:254)
[2024-09-04 13:01:13] [info] #011at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:195)
[2024-09-04 13:01:13] [info] #011at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
[2024-09-04 13:01:13] [info] #011at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
[2024-09-04 13:01:13] [info] #011at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
[2024-09-04 13:01:13] [info] #011at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)

catalina startup

04-Sep-2024 12:44:55.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/9.0.70 (Ubuntu)
04-Sep-2024 12:44:55.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          May 27 2023 15:51:32 UTC
04-Sep-2024 12:44:55.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.70.0
04-Sep-2024 12:44:55.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
04-Sep-2024 12:44:55.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            6.8.0-41-generic
04-Sep-2024 12:44:55.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
04-Sep-2024 12:44:55.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/lib/jvm/java-21-openjdk-amd64
04-Sep-2024 12:44:55.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           21.0.4+7-Ubuntu-1ubuntu224.04
04-Sep-2024 12:44:55.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Ubuntu
04-Sep-2024 12:44:55.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /var/lib/tomcat9
04-Sep-2024 12:44:55.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/share/tomcat9
04-Sep-2024 12:44:55.399 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
04-Sep-2024 12:44:55.399 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
04-Sep-2024 12:44:55.399 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
04-Sep-2024 12:44:55.399 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
04-Sep-2024 12:44:55.399 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
04-Sep-2024 12:44:55.399 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties
04-Sep-2024 12:44:55.400 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
04-Sep-2024 12:44:55.400 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true
04-Sep-2024 12:44:55.400 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
04-Sep-2024 12:44:55.400 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
04-Sep-2024 12:44:55.400 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
04-Sep-2024 12:44:55.400 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
04-Sep-2024 12:44:55.400 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/var/lib/tomcat9
04-Sep-2024 12:44:55.400 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomcat9
04-Sep-2024 12:44:55.400 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/tmp
04-Sep-2024 12:44:55.419 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.35] using APR version [1.7.2].
04-Sep-2024 12:44:55.420 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
04-Sep-2024 12:44:55.420 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
04-Sep-2024 12:44:55.425 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 3.0.13 30 Jan 2024]
04-Sep-2024 12:44:56.106 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
04-Sep-2024 12:44:56.156 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [1489] milliseconds
04-Sep-2024 12:44:56.236 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
04-Sep-2024 12:44:56.237 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.70 (Ubuntu)]
04-Sep-2024 12:44:56.263 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/var/lib/tomcat9/webapps/guacamole.war]
04-Sep-2024 12:44:59.914 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
04-Sep-2024 12:45:02.748 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/var/lib/tomcat9/webapps/guacamole.war] has finished in [6,482] ms
04-Sep-2024 12:45:02.749 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/var/lib/tomcat9/webapps/ROOT]
04-Sep-2024 12:45:03.254 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
04-Sep-2024 12:45:03.262 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/var/lib/tomcat9/webapps/ROOT] has finished in [513] ms
04-Sep-2024 12:45:03.266 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
04-Sep-2024 12:45:03.281 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [7123] milliseconds

Remmina connection

Remmina-connection

Ubuntu desktop sharing settings

ubuntu-desktop-sharing

Troubleshooting steps already taken?:

itiligent commented 2 months ago

RDP can be a an of worms with Ubuntu. Take a look here first as this issue was resolved previouslyin #55 If no success there, confirm RDP works to another system not in virtual box. Check all the ususal networking suspects

LeePorte commented 2 months ago

RDP is working to a 22.04 physical box using the inbuilt desktop sharing. I'm currently using it to write this reply. I'm guessing that the issue you meant to reference was https://github.com/itiligent/Guacamole-Installer/issues/55. Ideally I'd like to use the inbuilt desktop sharing rather than installing XRDP.

I'll have to spin up another physical box using 24.04 to test with.

itiligent commented 2 months ago

Try changing the default password that the native ubuntu client creates, then in guacamole set the connection security mode to 'any' and try again with your new password

See here https://www.reddit.com/r/homelab/comments/14isie2/cant_rdp_to_ubuntu_2304_with_guacamole_but/

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Lee Porte @.> Sent: Thursday, September 5, 2024 5:21:02 PM To: itiligent/Guacamole-Installer @.> Cc: David Harrop @.>; Comment @.> Subject: Re: [itiligent/Guacamole-Installer] Ubuntu 24.04 unable to connect (Issue #59)

RDP is working to a 22.04 physical box using the inbuilt desktop sharing. I'm currently using it to write this reply. I'm guessing that the issue you meant to reference was #55https://github.com/itiligent/Guacamole-Installer/issues/55. Ideally I'd like to use the inbuilt desktop sharing rather than installing XRDP.

I'll have to spin up another physical box using 24.04 to test with.

— Reply to this email directly, view it on GitHubhttps://github.com/itiligent/Guacamole-Installer/issues/59#issuecomment-2330789726, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWTGATDBK7PXSKBDG2YEBVDZVAA55AVCNFSM6AAAAABNUF7KYCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZQG44DSNZSGY. You are receiving this because you commented.Message ID: @.***>

LeePorte commented 2 months ago

Sadly that doesn't seem to make any difference

guac-24

guac-24-not-responding

itiligent commented 2 months ago

Many others have reported exact same issue. The only current workaround is the soution in #55 as it looks like there are some features in latest freerdp that guac has not added support for as yet. Will need to wait for Guac 1.6.0 for a fix.

https://lists.apache.org/thread/3p3ttc1n826j1k6c84jqn22dwlgj6zd0

itiligent commented 2 months ago

Correction: Gnome devs have removed some legacy graphical performance features in their later RDP implementation under the asumption that RDP clients implement the Remote FX feature - this is why Remina clients will work as many report. Untill Guac catches up you cant use the Ubuntu native RDP un Ubuntu. XRDP is all there is unfortunately. This is fairly normal when using a distro that was released only a few months ago.

LeePorte commented 2 months ago

OK that's reasonable. As much as anything I wanted to make sure I wasn't doing something to cause the issue.

itiligent commented 2 months ago

Lol you actually have caused the issue..... by using very latest Ubuntu! :-) To be fair I've see this sort of thing with Debian also. It looks like guac 1.6 is not too far away, but this RDP fix might not make it to 1.6 as notice the apache wiki shows no movement on this. Thre is always VNC through guacalmole in the maentime of you want to keep things really native btw

LeePorte commented 2 months ago

Well, hence the testing on a VM before doing anything to a machine where it matters :-D

I was only prompted as the LTS upgrade notifications have started rolling out for Ubuntu.