On Tuesday, June 4, 2019, 3:53:10 PM GMT+2, Nick Couchman <[email protected]> wrote:
> You do not want catalina.log, you want catalina.out. It's possible that > output is pointed somewhere else, but, in my experience, catalina.log and > catalina.out do not produce > the same output - they are different files. You want catalina.out. Thanks for your patience. I finally cleared things up a bit. My distro uses openrc as the default init system, and it does not handle redirecting stdout to a file. So for debugging purposes I'm running tomcat manually on the command line with exactly the same options as if running from the init script. I found out that the Internal Server Error was due to the fact that I had left the ldap jar within /etc/guacamole/extensions, and tomcat/guacamole was complaining about ldap* config parameters not found in guacamole.properties. This doesn't seem to be a problem with guacamole 1.0.0 though... Can anyone please try to place the ldap module in the extensions dir so it is loaded in the git version, and NOT define any ldap* parameters in guacamole.properties? Anyway, removing the ldap module avoids the HTTP/500 issue. However, I am now seeing the same issue I reported several weeks ago (seen only in GIT version -- not in 1.0.0 release). I slimmed down my user-mapping for testing: # cat user-mapping.xml <user-mapping> <authorize username="testme" password="testpwd"> <connection name="Alcatel PBX"> <protocol>telnet</protocol> <param name="hostname">10.215.144.96</param> </connection> </authorize> </user-mapping> This is the result when I try to connect: https://drive.google.com/file/d/1nggLD0Yx759UQLWlicVxrRM6hZXUs8j0/view?usp=sharing I am NOT pressing ENTER or any other key. You can see from the log below that everything happens in half a second. 19:19:14.608 [https-openssl-apr-8443-exec-9] DEBUG o.a.g.a.f.FileAuthenticationProvider - Reading user mapping file: "/etc/guacamole/user-mapping.xml" 19:19:14.656 [https-openssl-apr-8443-exec-9] DEBUG o.a.g.r.auth.AuthenticationService - Anonymous authentication attempt from 10.215.246.24 failed. 19:19:31.401 [https-openssl-apr-8443-exec-6] INFO o.a.g.r.auth.AuthenticationService - User "testme" successfully authenticated from 10.215.246.24. 19:19:31.423 [https-openssl-apr-8443-exec-6] DEBUG o.a.g.r.auth.AuthenticationService - Login was successful for user "testme". 19:19:32.695 [https-openssl-apr-8443-exec-9] INFO o.a.g.environment.LocalEnvironment - GUACAMOLE_HOME is "/etc/guacamole". 19:19:32.717 [https-openssl-apr-8443-exec-9] DEBUG o.a.g.net.InetGuacamoleSocket - Connecting to guacd at 10.215.144.124:4822. 19:19:32.787 [https-openssl-apr-8443-exec-9] INFO o.a.g.tunnel.TunnelRequestService - User "testme" connected to connection "Alcatel PBX". 19:19:33.292 [Thread-6] INFO o.a.g.tunnel.TunnelRequestService - User "testme" disconnected from connection "Alcatel PBX". Duration: 498 milliseconds 19:19:33.293 [Thread-6] DEBUG o.a.g.net.InetGuacamoleSocket - Closing socket to guacd. 19:19:33.704 [https-openssl-apr-8443-exec-4] DEBUG o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Connection to guacd closed. org.apache.guacamole.GuacamoleConnectionClosedException: Connection to guacd is closed. at org.apache.guacamole.io.WriterGuacamoleWriter.write(WriterGuacamoleWriter.java:64) at org.apache.guacamole.io.WriterGuacamoleWriter.write(WriterGuacamoleWriter.java:73) at org.apache.guacamole.io.WriterGuacamoleWriter.writeInstruction(WriterGuacamoleWriter.java:78) at org.apache.guacamole.protocol.FilteredGuacamoleWriter.writeInstruction(FilteredGuacamoleWriter.java:98) at org.apache.guacamole.protocol.FilteredGuacamoleWriter.write(FilteredGuacamoleWriter.java:81) at org.apache.guacamole.protocol.FilteredGuacamoleWriter.write(FilteredGuacamoleWriter.java:89) at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.onMessage(GuacamoleWebSocketTunnelEndpoint.java:345) at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$1.onMessage(GuacamoleWebSocketTunnelEndpoint.java:220) at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$1.onMessage(GuacamoleWebSocketTunnelEndpoint.java:216) at org.apache.tomcat.websocket.WsFrameBase.sendMessageText(Unknown Source) at org.apache.tomcat.websocket.server.WsFrameServer.sendMessageText(Unknown Source) at org.apache.tomcat.websocket.WsFrameBase.processDataText(Unknown Source) at org.apache.tomcat.websocket.WsFrameBase.processData(Unknown Source) at org.apache.tomcat.websocket.WsFrameBase.processInputBuffer(Unknown Source) at org.apache.tomcat.websocket.server.WsFrameServer.onDataAvailable(Unknown Source) at org.apache.tomcat.websocket.server.WsFrameServer.doOnDataAvailable(Unknown Source) at org.apache.tomcat.websocket.server.WsFrameServer.notifyDataAvailable(Unknown Source) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.upgradeDispatch(Unknown Source) at org.apache.coyote.http11.upgrade.UpgradeProcessorInternal.dispatch(Unknown Source) at org.apache.coyote.AbstractProcessorLight.process(Unknown Source) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(Unknown Source) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(Unknown Source) at org.apache.tomcat.util.net.SocketProcessorBase.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:748) Caused by: java.net.SocketException: Socket closed at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118) at java.net.SocketOutputStream.write(SocketOutputStream.java:155) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) at org.apache.guacamole.io.WriterGuacamoleWriter.write(WriterGuacamoleWriter.java:58) ... 26 common frames omitted 19:19:33.705 [https-openssl-apr-8443-exec-4] DEBUG o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Connection to guacd closed. org.apache.guacamole.GuacamoleConnectionClosedException: Connection to guacd is closed. at org.apache.guacamole.io.WriterGuacamoleWriter.write(WriterGuacamoleWriter.java:64) at org.apache.guacamole.io.WriterGuacamoleWriter.write(WriterGuacamoleWriter.java:73) at org.apache.guacamole.io.WriterGuacamoleWriter.writeInstruction(WriterGuacamoleWriter.java:78) at org.apache.guacamole.protocol.FilteredGuacamoleWriter.writeInstruction(FilteredGuacamoleWriter.java:98) at org.apache.guacamole.protocol.FilteredGuacamoleWriter.write(FilteredGuacamoleWriter.java:81) at org.apache.guacamole.protocol.FilteredGuacamoleWriter.write(FilteredGuacamoleWriter.java:89) at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.onMessage(GuacamoleWebSocketTunnelEndpoint.java:345) at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$1.onMessage(GuacamoleWebSocketTunnelEndpoint.java:220) at org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$1.onMessage(GuacamoleWebSocketTunnelEndpoint.java:216) at org.apache.tomcat.websocket.WsFrameBase.sendMessageText(Unknown Source) at org.apache.tomcat.websocket.server.WsFrameServer.sendMessageText(Unknown Source) at org.apache.tomcat.websocket.WsFrameBase.processDataText(Unknown Source) at org.apache.tomcat.websocket.WsFrameBase.processData(Unknown Source) at org.apache.tomcat.websocket.WsFrameBase.processInputBuffer(Unknown Source) at org.apache.tomcat.websocket.server.WsFrameServer.onDataAvailable(Unknown Source) at org.apache.tomcat.websocket.server.WsFrameServer.doOnDataAvailable(Unknown Source) at org.apache.tomcat.websocket.server.WsFrameServer.notifyDataAvailable(Unknown Source) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.upgradeDispatch(Unknown Source) at org.apache.coyote.http11.upgrade.UpgradeProcessorInternal.dispatch(Unknown Source) at org.apache.coyote.AbstractProcessorLight.process(Unknown Source) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(Unknown Source) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(Unknown Source) at org.apache.tomcat.util.net.SocketProcessorBase.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:748) Caused by: java.net.SocketException: Socket closed at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118) at java.net.SocketOutputStream.write(SocketOutputStream.java:155) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) at org.apache.guacamole.io.WriterGuacamoleWriter.write(WriterGuacamoleWriter.java:58) ... 26 common frames omitted 19:19:49.247 [https-openssl-apr-8443-exec-10] DEBUG o.a.g.r.auth.AuthenticationService - Anonymous authentication attempt from 10.215.246.24 failed. 19:19:49.860 [pool-1-thread-1] DEBUG o.a.g.rest.auth.HashTokenSessionMap - Checking for expired sessions... 19:19:49.860 [pool-1-thread-1] DEBUG o.a.g.rest.auth.HashTokenSessionMap - Session check completed in 1 ms. What can I try? Vieri --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
