Closed fischer-felix closed 2 years ago
Hi, sorry for the delayed response, I've been sick and offline for the past 10 days. This issue appears when there is a configuration error on the guacd side. Can you confirm that your firewall accepts connections on port 4822? Some errors reports I found pointed to the fact that the host needs to be explicitly specified (apparently mostly CentOS users are affected). In your report, that would be the lines
guacd[163]: INFO: Guacamole proxy daemon (guacd) version 1.4.0 started
guacd[163]: INFO: Listening on host ::1, port 4822
If the config folder has been properly created, you can edit guacamole.properties with the following lines and restart the container:
guacd-hostname: 127.0.0.1 (or if your machine has a defined hostname, use that defined hostname)
guacd-port: 4822
I edited guacamole.properties in the config directory, however it did not fix the issue. Logs still say
guacd[150]: INFO: Guacamole proxy daemon (guacd) version 1.4.0 started
guacd[150]: INFO: Listening on host ::1, port 4822
and
20:37:59.569 [http-nio-8080-exec-2] ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused (Connection refused)
20:37:59.599 [http-nio-8080-exec-1] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: java.net.ConnectException: Connection refused (Connection refused)
As far as I can see, my firewall config should not matter, but just to rule that out, I have opened up port 4822 everywhere, which changed nothing.
I will probably try some other docker images and see if it is specific to your image or if this is a more common issue.
I tried to keep looking for solutions for you. Everything I found came back to forcing the host name and port on which guacd will listen. Running a container with a custom guacd.conf worked for me, but in your case, there may be some conflicts between ipv4 and ipv6 (your guacd is listening on ipv6). I am sorry I don't a solution for you, but if you ever find one, even with another image, do not hesitate to share it! Have you tried the official docker images?
I have found MaxWaldof/guacamole to be working well for me, it is a fork of oznu's docker image as well, so should be pretty similar. I also had some issues with RDP, but I'm pretty sure those were related to my server setup and not the actual image. VNC and SSH work flawlessly.
Thanks for the update! I've checked what is different, and what MaxWaldof does is to force binding the guacd daemon to the 0.0.0.0 address.
I will not change the way guacd is launched, unless I see others with the same issue, as I prefer to let Docker manage the networks settings, but I will add a section in the docker-compose example to disable ipv6, as it boils down to this.
Glad that you found an image that works for you, and sorry I could not find a solution earlier.
Describe Your Problem:
Error "An internal error has occurred within the Guacamole server, and the connection has been terminated. If the problem persists, please notify your system administrator, or check your system logs." when trying to launch any connection.
Logs:
Screenshots:
Environment: