Hi Mike We have a VPN from the Guacamole server (Ubuntu 14.04) to our customer and from there the customer has private ADSL links to most of their remote locations. A handful of their remote locations though don't have ADSL available and are connected to their network (and therefore to the Guacamole server) over 4G.
Here is the catalina.out log when I just tried to connect: 09:32:01.057 [http-bio-8080-exec-7] INFO o.g.g.n.b.r.a.AuthenticationService - User "XXX" successfully authenticated from 10.253.XXX.XXX. 09:32:02.781 [http-bio-8080-exec-6] INFO o.g.g.net.basic.TunnelRequestService - User "XXX" connected to connection "My Connection". 09:32:02.781 [http-bio-8080-exec-6] INFO o.g.g.n.b.BasicGuacamoleTunnelServlet - Using HTTP tunnel (not WebSocket). Performance may be sub-optimal. 09:32:22.149 [http-bio-8080-exec-3] INFO o.g.g.net.basic.TunnelRequestService - User "XXX" disconnected from connection "My Connection". Duration: 19368 milliseconds 09:32:22.149 [http-bio-8080-exec-3] ERROR o.g.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: Connection to guacd timed out. 09:32:22.150 [http-bio-8080-exec-6] INFO o.g.g.net.basic.TunnelRequestService - User "XXX" disconnected from connection "My Connection". Duration: 19369 milliseconds From: Mike Jumper [mailto:[email protected]] Sent: Saturday, 22 October 2016 6:21 AM To: [email protected] Subject: Re: VNC connection to 4G/LTE sites disconnect on connection On Thu, Oct 20, 2016 at 1:55 PM, Paul Azad <[email protected]<mailto:[email protected]>> wrote: Hi We are having issues connecting to devices using VNC over a 4G connection. The connection connects, we see the first screen (sometimes we don't even see that), and then we get a message saying reconnect in 15 seconds. Using UltraVNC at the same time has no issues though, and connecting to ADSL sites has no issue either. This is what I see in the tomcat log file: Oct 21 07:27:18 DC2Guacamole guacd[16559]: Creating new client for protocol "vnc" Hi Paul, Log messages from guacd shouldn't be in the Tomcat log file (though on some systems both Tomcat and guacd will effectively be logging to the same place ... see below). Though the messages from guacd are helpful here, there should also be messages from Tomcat somewhere. Is there Tomcat-specific log file on your system which would have the log messages from the web application itself? This will typically be "catalina.out" in /var/log/tomcat (or similar). On some systems, Tomcat will log to the systemd journal, which can be accessed via the journalctl command. Oct 21 07:27:18 DC2Guacamole guacd[16559]: Connection ID is "$2e258498-da39-4cbd-99b0-91d98ba85c6a" Oct 21 07:27:18 DC2Guacamole guacd[5213]: Cursor rendering: local Oct 21 07:27:18 DC2Guacamole guacd[5213]: User "@4d0df3b7-d56a-4a1b-be5d-a7ac94da8a93" joined connection "$2e258498-da39-4cbd-99b0-91d98ba85c6a" (1 users now present) Oct 21 07:27:18 DC2Guacamole guacd[5213]: VNC server supports protocol version 3.8 (viewer 3.8) Oct 21 07:27:18 DC2Guacamole guacd[5213]: We have 2 security types to read Oct 21 07:27:18 DC2Guacamole guacd[5213]: 0) Received security type 2 Oct 21 07:27:18 DC2Guacamole guacd[5213]: Selecting security type 2 (0/2 in the list) Oct 21 07:27:18 DC2Guacamole guacd[5213]: 1) Received security type 16 Oct 21 07:27:18 DC2Guacamole guacd[5213]: Selected Security Scheme 2 Oct 21 07:27:18 DC2Guacamole guacd[5213]: VNC authentication succeeded Oct 21 07:27:19 DC2Guacamole guacd[5213]: Desktop name "hj3428-ncr" Oct 21 07:27:19 DC2Guacamole guacd[5213]: Connected to VNC server, using protocol version 3.8 Oct 21 07:27:19 DC2Guacamole guacd[5213]: VNC server default format: Oct 21 07:27:19 DC2Guacamole guacd[5213]: 32 bits per pixel. Oct 21 07:27:19 DC2Guacamole guacd[5213]: Least significant byte first in each pixel. Oct 21 07:27:19 DC2Guacamole guacd[5213]: TRUE colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Oct 21 07:27:19 DC2Guacamole guacd[5213]: Recording of session will be saved to "/opt/guacamole/video/VNC-2001130". Oct 21 07:27:19 DC2Guacamole guacd[5213]: Got new framebuffer size: 1440x900 Oct 21 07:27:20 DC2Guacamole guacd[5213]: read (104: Connection reset by peer) Oct 21 07:27:20 DC2Guacamole guacd[5213]: Error handling message from VNC server. Oct 21 07:27:20 DC2Guacamole guacd[5213]: Internal VNC client disconnected Oct 21 07:27:20 DC2Guacamole guacd[5213]: User "@4d0df3b7-d56a-4a1b-be5d-a7ac94da8a93" disconnected (0 users remain) Oct 21 07:27:20 DC2Guacamole guacd[5213]: Last user of connection "$2e258498-da39-4cbd-99b0-91d98ba85c6a" disconnected Oct 21 07:27:23 DC2Guacamole guacd[16559]: Connection "$2e258498-da39-4cbd-99b0-91d98ba85c6a" removed. Any help would be great, as we want to stop using UltraVNC asap. Differences in the network between the Guacamole web application and the user's browser shouldn't have any bearing on the VNC connection itself. If you're seeing errors like "connection reset by peer" and "error handling message from VNC server", that suggests something is amiss between guacd and the VNC server. Unless you meant that the network between guacd and the VNC server is the one going over 4G in this case? Thanks, - Mike
