guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EricSten <iam.erics...@gmail.com>
Subject GUACD timeout - WebSocket
Date Thu, 18 May 2017 23:18:52 GMT
I'm trying to build a new install of Guacamole 0.9.12 (I have a 0.9.9 install
running properly on another system) and am running into issues.  The
installation is on a FreeBSD jail in FreeNAS. 

I've installed the client and server packages and all required additional
packages without an error.  Tomcat 8 is running and I can authenticate into
Guacamole using a user mapping.  The problem occurs when I try to access any
server defined in the user mapping.  The browser session says it is
connecting to Guacamole and waiting for a response but it just times out.  I
turned on debug logging and this is the error I'm getting:

18:23:53.300 [http-nio-8080-exec-19] DEBUG o.a.g.net.InetGuacamoleSocket -
Connecting to guacd at localhost:4822.
18:24:02.922 [pool-9-thread-1] DEBUG o.a.g.rest.auth.HashTokenSessionMap -
Checking for expired sessions...
18:24:02.922 [pool-9-thread-1] DEBUG o.a.g.rest.auth.HashTokenSessionMap -
Session check completed in 0 ms.
18:24:08.306 [http-nio-8080-exec-19] ERROR
o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to
guacd failed: Connection to guacd timed out.
18:24:08.308 [http-nio-8080-exec-19] DEBUG
o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Error connecting WebSocket
tunnel.
org.apache.guacamole.GuacamoleUpstreamTimeoutException: Connection to guacd
timed out.
        at
org.apache.guacamole.io.ReaderGuacamoleReader.read(ReaderGuacamoleReader.java:182)
~[guacamole-common-0.9.10-incubating.jar:na]
        at
org.apache.guacamole.io.ReaderGuacamoleReader.readInstruction(ReaderGuacamoleReader.java:197)
~[guacamole-common-0.9.10-incubating.jar:na]
        at
org.apache.guacamole.protocol.ConfiguredGuacamoleSocket.expect(ConfiguredGuacamoleSocket.java:76)
~[guacamole-common-0.9.10-incubating.jar:na]
        at
org.apache.guacamole.protocol.ConfiguredGuacamoleSocket.<init>(ConfiguredGuacamoleSocket.java:138)
~[guacamole-common-0.9.10-incubating.jar:na]
        at
org.apache.guacamole.net.auth.simple.SimpleConnection.connect(SimpleConnection.java:129)
~[guacamole-ext-0.9.12-incubating.jar:na]
        at
org.apache.guacamole.tunnel.TunnelRequestService.createConnectedTunnel(TunnelRequestService.java:163)
~[classes/:na]
        at
org.apache.guacamole.tunnel.TunnelRequestService.createTunnel(TunnelRequestService.java:332)
~[classes/:na]
        at
org.apache.guacamole.tunnel.websocket.RestrictedGuacamoleWebSocketTunnelEndpoint.createTunnel(RestrictedGuacamoleWebSocketTunnelEndpoint.java:113)
~[classes/:na]
        at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.onOpen(GuacamoleWebSocketTunnelEndpoint.java:112)
~[guacamole-common-0.9.10-incubating.jar:na]
        at
org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:127)
[tomcat-websocket.jar:8.0.43]
        at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:717)
[tomcat-coyote.jar:8.0.43]
        at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1533)
[tomcat-coyote.jar:8.0.43]
        at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1489)
[tomcat-coyote.jar:8.0.43]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_131]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_131]
        at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[tomcat-util.jar:8.0.43]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
~[na:1.8.0_131]
        at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
~[na:1.8.0_131]
        at java.net.SocketInputStream.read(SocketInputStream.java:171)
~[na:1.8.0_131]
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
~[na:1.8.0_131]
        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
~[na:1.8.0_131]
        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
~[na:1.8.0_131]
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
~[na:1.8.0_131]
        at java.io.InputStreamReader.read(InputStreamReader.java:184)
~[na:1.8.0_131]
        at
org.apache.guacamole.io.ReaderGuacamoleReader.read(ReaderGuacamoleReader.java:171)
~[guacamole-common-0.9.10-incubating.jar:na]
        ... 16 common frames omitted

Running a sockstat -4 shows that the guacd service is listening on port 4822

USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
www      jsvc       75841 50 tcp4 6 *:8080                *:*
www      jsvc       75841 55 tcp4 6 *:8009                *:*
www      jsvc       75841 89 tcp4   127.0.0.1:55101       127.0.0.1:4822
www      jsvc       75841 90 tcp4   127.0.0.1:64001       127.0.0.1:4822
www      jsvc       75841 92 tcp4   127.0.0.1:31918       127.0.0.1:4822
www      jsvc       75841 93 tcp4   127.0.0.1:31403       127.0.0.1:4822
www      jsvc       75841 117 tcp4  127.0.0.1:10208       127.0.0.1:4822
guacamole guacd     75744 4  tcp4   127.0.0.1:4822        *:*
guacamole guacd     75744 5  tcp4   127.0.0.1:4822        127.0.0.1:55101
guacamole guacd     75744 7  tcp4   127.0.0.1:4822        127.0.0.1:64001
guacamole guacd     75744 9  tcp4   127.0.0.1:4822        127.0.0.1:31918
guacamole guacd     75744 10 tcp4   127.0.0.1:4822        127.0.0.1:10208
guacamole guacd     75744 12 tcp4   127.0.0.1:4822        127.0.0.1:31403
admin    sshd       74852 5  tcp4   192.168.0.71:22      
192.168.0.130:55836
root     sshd       74849 5  tcp4   192.168.0.71:22      
192.168.0.130:55836
root     sshd       74631 5  tcp4   *:22                  *:*
root     syslogd    71571 7  udp4   *:514                 *:*

Any suggestions on what might be causing the time outs?

  Thanks
  
      Eric Sten



--
View this message in context: http://apache-guacamole-incubating-users.2363388.n4.nabble.com/GUACD-timeout-WebSocket-tp981.html
Sent from the Apache Guacamole (incubating) - Users mailing list archive at Nabble.com.

Mime
View raw message