On Wed, Jan 31, 2024 at 10:48 PM <[email protected]> wrote:
> Apparently there are two problems.
> The first is a ipv4 vs. ipv6 issue. If I use localhost in guacd.conf:
> [server]
> bind_host = localhost
> bind_port = 4822
>
> guacd binds to a ipv6 address and guacamola never finds it. Change
> guacd.conf to
> [server]
> bind_host = 127.0.0.1
> bind_port = 4822
>
> and guacamola now finds guacd.
>
>
Yes, this is definitely a known issue with systems that support both IPv4
and IPv6. Glad you got that resolved.
> Second problem:
> guacd can't find its vnc plugin. Again, systemctl status guacd yields:
> Jan 31 18:10:22 pi4dev guacd[5518]: Creating new client for protocol
> "vnc"
> Jan 31 18:10:22 pi4dev guacd[5518]: Connection ID is
> "$4e2159ab-c7ff-4243-884f-267cd3bd8ad2"
> Jan 31 18:10:22 pi4dev guacd[5567]: Cursor rendering: local
> Jan 31 18:10:22 pi4dev guacd[5567]: User
> "@6c10f1d1-cf63-404a-8479-e16259dcccbe" joined connection
> "$4e2159ab-c7ff-4243-8>
> Jan 31 18:10:22 pi4dev guacd[5567]: ConnectClientToTcpAddr6: connect
> Jan 31 18:10:22 pi4dev guacd[5567]: Unable to connect to VNC server
> Jan 31 18:10:22 pi4dev guacd[5567]: Unable to connect to VNC server.
> Jan 31 18:10:32 pi4dev guacd[5567]: User
> "@6c10f1d1-cf63-404a-8479-e16259dcccbe" disconnected (0 users remain)
> Jan 31 18:10:32 pi4dev guacd[5567]: Last user of connection
> "$4e2159ab-c7ff-4243-884f-267cd3bd8ad2" disconnected
> Jan 31 18:10:32 pi4dev guacd[5518]: Connection
> "$4e2159ab-c7ff-4243-884f-267cd3bd8ad2" removed.
Actually, guacd is finding the VNC plugin - if it weren't, you'd receive a
very specific message about it being unable to load the VNC protocol. What
you have, here, is guacd being unable to connect to your VNC server:
Jan 31 18:10:22 pi4dev guacd[5567]: ConnectClientToTcpAddr6: connect
Jan 31 18:10:22 pi4dev guacd[5567]: Unable to connect to VNC server
Jan 31 18:10:22 pi4dev guacd[5567]: Unable to connect to VNC server.
The first message, with ConnectClientToTcpAddr6, is actually from
libvncclient, which is a good indication that 1) guacd _is_ actually
correctly loading VNC support, and 2) that the VNC library is attempting to
make the connection. What I'm not sure about is the Addr6 - this may
indicate that libvncclient is resolving your VNC server to an IPv6 address,
and is failing to connect to that.
Next things to check would be:
* Start guacd in debug log mode ("-L debug" on the command line or
("log_level = debug" in the "[daemon]" section of guacd.conf)
* Verify your Guacamole connection settings have the correct hostname or IP
address and the correct port number for your VNC server.
* If it's a hostname, verify that you can correctly resolve it to the
expected IP address from the system running guacd.
* Verify that you can connect to that IP + Port combination from the
system running guacd, outside of Guacamole - you can do this by using
something like nc or telnet or tcping to attempt the connection and verify
that it works as expected.
* Verify that something like SELinux or AppArmor is not blocking guacd,
specifically, from making those outbound network connections.
-Nick