YunoHost-Apps / guacamole_ynh

Apache Guacamole package for YunoHost
https://guacamole.apache.org/
Apache License 2.0
10 stars 16 forks source link

Connection problems #32

Open geraldurbas opened 2 years ago

geraldurbas commented 2 years ago

On a fresh install it was necessaty to add ::1 to the hostname.

Caused by the double entry for localhost in /etc/hosts. GUCD seems to select the last entry there... Solutio ist add the correct hostname in the connection manager...

image

AirplanegoBrr commented 3 weeks ago

Please pin this issue.

or fix whats wrong

Setting the proxy hostname under Guacamole Proxy Parameters (guacd) to ::1 will fix this

This also fixed my problems with the following errors Oct 09 11:18:57 guacamole-tomcat9[116870]: 11:18:57.339 [http-nio-8080-exec-10] ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused (Connection refused)

Oct 09 11:18:57 guacamole-tomcat9[116870]: 11:18:57.466 [http-nio-8080-exec-1] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: java.net.ConnectException: Connection refused (Connection refused)

This might be the fix for #19 as well.

I can't believe this has been a problem for 2+ years.

The problem?

I believe the default hostname that guacamole tries to use (which I believe to be 127.0.0.1) doesn't work as mentioned, /etc/hosts has 127.0.0.1 defined 3 different times in the hosts file. But ::1 only has one entry. The last entry being yuno which Throws off guacamole and gets it confused

127.0.0.1 will NOT work as the proxy hostname, You MUST use the ipv6 local IP

image