Hi Team,
I am working on Guacamole Client and Server. I did the following steps:-
AIM : To integrate Guacamole using a single URL which contains all the
information instead of usermapping.xml or noauth-config.xml files.
Installed Guacamole client, Tomcat, in Windows 10.
Installed Gucamole Server on Linux ( Listening on port 4822 ) : Below is
the output of netstat -ntpl
[image: Inline image 1]
Configuration in *guacamole.properties*
*# Hostname and port of guacamole proxy*
*guacd-hostname:172.15.9.56*
*guacd-port:4822*
*# Auth provider class (authenticates user/pass combination, needed if
using the provided login screen)*
* auth-provider: net.sourceforge.guacamole.net
<http://net.sourceforge.guacamole.net>.basic.BasicFileAuthenticationProvider*
* basic-user-mapping: user-mapping.xml*
*# NoAuth properties*
*# noauth-config: noauth-config.xml*
I want to use NoAuthenticatorProvider.jar to directly get the RDP. I was*
getting the RDP session directly without authentification *when I had
configured everything on the same Server ( Guacamole Client and Guacamole
Server and Tomcat ) .
Now when I have installed the *Gucamole Client and Tomcat * on Windows and
provided the IP ( *172.15.9.56 *) in *gucamole.properties* I am getting
the following error: - ( from Logs )
14:01:07.885 [http-nio-8080-exec-4] INFO o.a.g.environment.LocalEnvironment
- Inside getProperty method of Local Environment , Value of property is :
*172.15.9.56*
14:01:07.885 [http-nio-8080-exec-4] INFO o.a.g.environment.LocalEnvironment
- Inside getProperty method of Local Environment , Value of property is :
localhost
14:01:07.885 [http-nio-8080-exec-4] INFO o.a.g.environment.LocalEnvironment
- Inside getProperty method with two arguments of Local Environment ,
property is : org.apache.guacamole.environment.Environment$2@6ba060f3
14:01:07.885 [http-nio-8080-exec-4] INFO GuacamoleProperty Interface -
Entering into getName() of IntegerGuacamoleProperty:Environment Class
14:01:07.885 [http-nio-8080-exec-4] INFO GuacamoleProperty Interface -
Entering into getName() of IntegerGuacamoleProperty:Environment Class
14:01:07.885 [http-nio-8080-exec-4] INFO o.a.g.environment.LocalEnvironment
- Inside getProperty method with 1 arguments of Local Environment ,
property is : org.apache.guacamole.environment.Environment$2@6ba060f3,
property Name :guacd-port, properties : 4822
14:01:07.885 [http-nio-8080-exec-4] INFO GuacamoleProperty Interface -
Entering into getName() of IntegerGuacamoleProperty:Environment Class
14:01:07.885 [http-nio-8080-exec-4] INFO GuacamoleProperty Interface -
Entering into parseValue of IntegerGuacamoleProperty Class
14:01:07.885 [http-nio-8080-exec-4] INFO o.a.g.environment.LocalEnvironment
- Inside getProperty method of Local Environment , Value of property is :
4822
14:01:07.885 [http-nio-8080-exec-4] INFO o.a.g.environment.LocalEnvironment
- Inside getProperty method of Local Environment , Value of property is :
4822
14:01:07.885 [http-nio-8080-exec-4] INFO o.a.g.environment.LocalEnvironment
- Inside getProperty method with two arguments of Local Environment ,
property is : org.apache.guacamole.environment.Environment$3@7c51782d
14:01:07.885 [http-nio-8080-exec-4] INFO GuacamoleProperty Interface -
Entering into getName() of BooleanGuacamoleProperty:Environment Class
14:01:07.885 [http-nio-8080-exec-4] INFO GuacamoleProperty Interface -
Entering into getName() of BooleanGuacamoleProperty:Environment Class
14:01:07.885 [http-nio-8080-exec-4] INFO o.a.g.environment.LocalEnvironment
- Inside getProperty method with 1 arguments of Local Environment ,
property is : org.apache.guacamole.environment.Environment$3@7c51782d,
property Name :guacd-ssl, properties : null
14:01:07.885 [http-nio-8080-exec-4] INFO GuacamoleProperty Interface -
Entering into getName() of BooleanGuacamoleProperty:Environment Class
14:01:07.886 [http-nio-8080-exec-4] INFO GuacamoleProperty Interface -
Entering into parseValue of BooleanGuacamoleProperty Class
14:01:07.886 [http-nio-8080-exec-4] INFO o.a.g.environment.LocalEnvironment
- Inside getProperty method of Local Environment , Value of property is :
null
14:01:07.886 [http-nio-8080-exec-4] INFO o.a.g.environment.LocalEnvironment
- Inside getProperty method of Local Environment , Value of property is :
false
14:01:07.886 [http-nio-8080-exec-4] DEBUG o.a.g.net.InetGuacamoleSocket -
Connecting to guacd at *172.15.9.56*:4822.
14:01:08.889 [http-nio-8080-exec-4] ERROR o.a.g.w.
GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd
failed: java.net.ConnectException: Connection refused: connect
14:01:08.895 [http-nio-8080-exec-4] DEBUG o.a.g.w.
GuacamoleWebSocketTunnelEndpoint - Error connecting WebSocket tunnel.
org.apache.guacamole.GuacamoleServerException: java.net.ConnectException:
Connection refused: connect
at
org.apache.guacamole.net.InetGuacamoleSocket.<init>(InetGuacamoleSocket.java:116)
~[guacamole-common-0.9.10-incubating.jar:na]
at org.apache.guacamole.net.auth.simple.SimpleConnection.
connect(SimpleConnection.java:137) ~[guacamole-ext-0.9.12-incubating.jar:na]
at
org.apache.guacamole.tunnel.TunnelRequestService.createConnectedTunnel(TunnelRequestService.java:173)
~[classes/:na]
at
org.apache.guacamole.tunnel.TunnelRequestService.createTunnel(TunnelRequestService.java:351)
~[classes/:na]
at org.apache.guacamole.tunnel.websocket.RestrictedGuacamoleWebSocketTu
nnelEndpoint.createTunnel(RestrictedGuacamoleWebSocketTunnelEndpoint.java:124)
~[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:133) [tomcat-websocket.jar:9.0.0.M22]
at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:842)
[tomcat-coyote.jar:9.0.0.M22]
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1372)
[tomcat-coyote.jar:9.0.0.M22]
at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
[tomcat-coyote.jar:9.0.0.M22]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[na:1.8.0_144]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[na:1.8.0_144]
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[tomcat-util.jar:9.0.0.M22]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_144]
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
~[na:1.8.0_144]
at java.net.DualStackPlainSocketImpl.socketConnect(
DualStackPlainSocketImpl.java:85) ~[na:1.8.0_144]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
~[na:1.8.0_144]
at java.net.AbstractPlainSocketImpl.connectToAddress(
AbstractPlainSocketImpl.java:206) ~[na:1.8.0_144]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
~[na:1.8.0_144]
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
~[na:1.8.0_144]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
~[na:1.8.0_144]
at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_144]
at
org.apache.guacamole.net.InetGuacamoleSocket.<init>(InetGuacamoleSocket.java:102)
~[guacamole-common-0.9.10-incubating.jar:na]
... 13 common frames omitted
14:01:08.908 [http-nio-8080-exec-2] INFO o.a.g.tunnel.TunnelRequestService
- Entering into createTunnel method of of TunnelRequestService
14:01:08.908 [http-nio-8080-exec-2] INFO o.a.g.tunnel.TunnelRequestService
- Entering into getClientInformation method of of TunnelRequestService
14:01:08.908 [http-nio-8080-exec-2] INFO o.a.g.tunnel.TunnelRequestService
- Value of width is 1920
14:01:08.908 [http-nio-8080-exec-2] INFO o.a.g.tunnel.TunnelRequestService
- Value of width is 1920
14:01:08.908 [http-nio-8080-exec-2] INFO o.a.g.tunnel.TunnelRequestService
- Value of height is 504
14:01:08.908 [http-nio-8080-exec-2] INFO o.a.g.tunnel.TunnelRequestService
- Value of dpi is 96
I request youi to please help to resolve the above issue. I would be very
grateful to you.
Thanks and Regards,
Amarjeet Singh
+91 8130604385
Software Engineer, Pune Maharashtra, India.