On Tue, Feb 7, 2023, 1:24 AM Brendan <[email protected]> wrote: > Hello > > I am having a problem whereby a couple of my servers won't connect in > guac. It says in the web client "An error has occurred with the guacamole > server". I ran docker logs guacamole and this is the error i get: > > 11:20:29.290 [http-nio-8080-exec-6] ERROR > o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to > guacd failed: java.net.ConnectException: Connection refused (Connection > refused) > 11:20:29.307 [http-nio-8080-exec-8] ERROR > o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: > java.net.ConnectException: Connection refused (Connection refused) >
This sounds like guacd isn't running, or something is blocking the connection from the webapp to guacd. I should note, that i have other servers working perfectly fine. I also > tried with key authentication, which also did not work. > > Any ideas? > Does your system have both IPv4 and IPv6 addresses associated with "localhost" in /etc/hosts? The guacd service will be listening on one specific address, but if "localhost" is associated with multiple, then the OS will round-robin between those addresses and mysteriously fail to connect whenever the address that guacd *isn't* listening on happens to be used. - Mike
