Problem: Guacamole 1.4 shows “internal error” when making any connection and in /var/log/tomcat9/catalina.out you see something like:
ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused (Connection refused)
Possible explanation:
This is due to IPv4 vs. IPv6 differences - depending on the version of Linux, guacd may listen on IPv6 by default, and Tomcat tries to connect on IPv4. Forcing one or the other to use IPv4 or IPv6 usually works - in this case, the change forces guacd to listen on IPv4, and Tomcat can connect to it.Source
Solution: create /etc/guacamole/guacd.conf with the following contents:
[server]
bind_host = 127.0.0.1
bind_port = 4822
Also make sure your /etc/guacamole/guacamole.properties has client connection info:
guacd-hostname: 127.0.0.1
guacd-port: 4822
Then restart guacd:
systemctl restart guacd
You are my hero!
Thank you so much!
You are a gem. Thank you – this sorted out exact issue for me today with 1.5. And thanks for citing your research source mailing list link too. Good work.
Many thanks indeed – spot on!!