Menu

Help: guacamole client does not connect to X11VNC server

Help
2016-08-03
2016-08-09
  • Bertold Keuleers

    I've spend days figuring out why my guacamole client cannot connect with X11VNC server. I think I followed all the correct configurations.

    This is my Catalina.out:
    Aug 03, 2016 5:12:14 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 54906 ms
    17:12:26.669 [http-bio-8181-exec-1] WARN o.g.g.n.b.r.a.AuthenticationService - Authentication attempt from [195.0.32.253, 85.158.137.195] for user "USERNAME" failed.
    17:12:31.955 [http-bio-8181-exec-4] WARN o.g.g.n.b.r.a.AuthenticationService - Authentication attempt from [195.0.32.253, 85.158.137.195] for user "USERNAME" failed.
    17:12:38.872 [http-bio-8181-exec-1] WARN o.g.g.n.b.r.a.AuthenticationService - Authentication attempt from [195.0.32.253, 85.158.137.195] for user "USERNAME" failed.
    17:14:59.793 [http-bio-8181-exec-6] INFO o.g.g.n.b.r.a.AuthenticationService - User "USERNAME" successfully authenticated from [195.0.32.253, 85.158.137.195].
    17:15:00.641 [http-bio-8181-exec-20] INFO o.g.g.environment.LocalEnvironment - No guacamole.properties file found within GUACAMOLE_HOME or the classpath. Using defaults.
    17:15:00.883 [http-bio-8181-exec-20] ERROR o.g.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: End of stream while waiting for "ready".
    17:15:02.230 [http-bio-8181-exec-10] INFO o.g.g.environment.LocalEnvironment - No guacamole.properties file found within GUACAMOLE_HOME or the classpath. Using defaults.
    17:15:02.283 [http-bio-8181-exec-10] ERROR o.g.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: End of stream while waiting for "ready".
    17:15:03.064 [http-bio-8181-exec-10] INFO o.g.g.environment.LocalEnvironment - No guacamole.properties file found within GUACAMOLE_HOME or the classpath. Using defaults.
    17:15:03.107 [http-bio-8181-exec-10] ERROR o.g.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: End of stream while waiting for "ready".

    This is my syslog out:
    Aug 3 16:52:04 keuleers-desktop guacd[1788]: Listening on host 127.0.0.1, port 4822
    Aug 3 16:55:53 keuleers-desktop guacd[1864]: Protocol "vnc" selected
    Aug 3 16:55:53 keuleers-desktop guacd[1864]: Error reading "connect": Illegal state: Instruction read did not have expected opcode
    Aug 3 16:55:54 keuleers-desktop guacd[1866]: Protocol "vnc" selected
    Aug 3 16:55:54 keuleers-desktop guacd[1866]: Error reading "connect": Illegal state: Instruction read did not have expected opcode
    Aug 3 16:55:55 keuleers-desktop guacd[1868]: Protocol "vnc" selected
    Aug 3 16:55:55 keuleers-desktop guacd[1868]: Error reading "connect": Illegal state: Instruction read did not have expected opcode
    Aug 3 16:55:56 keuleers-desktop guacd[1870]: Protocol "vnc" selected
    Aug 3 16:55:56 keuleers-desktop guacd[1870]: Error reading "connect": Illegal state: Instruction read did not have expected opcode
    Aug 3 17:08:34 keuleers-desktop guacd[2307]: Guacamole proxy daemon (guacd) version 0.8.3
    Aug 3 17:08:34 keuleers-desktop guacd[2307]: Unable to bind socket to host ::1, port 4822: Address family not supported by protocol
    Aug 3 17:08:34 keuleers-desktop guacd[2307]: Successfully bound socket to host 127.0.0.1, port 4822
    Aug 3 17:08:34 keuleers-desktop guacd[2307]: Exiting and passing control to PID 2308
    Aug 3 17:08:34 keuleers-desktop guacd[2308]: Exiting and passing control to PID 2309
    Aug 3 17:08:34 keuleers-desktop guacd[2309]: Listening on host 127.0.0.1, port 4822
    Aug 3 17:15:00 keuleers-desktop guacd[2631]: Protocol "vnc" selected
    Aug 3 17:15:00 keuleers-desktop guacd[2631]: Error reading "connect": Illegal state: Instruction read did not have expected opcode
    Aug 3 17:15:02 keuleers-desktop guacd[2632]: Protocol "vnc" selected
    Aug 3 17:15:02 keuleers-desktop guacd[2632]: Error reading "connect": Illegal state: Instruction read did not have expected opcode
    Aug 3 17:15:03 keuleers-desktop guacd[2634]: Protocol "vnc" selected
    Aug 3 17:15:03 keuleers-desktop guacd[2634]: Error reading "connect": Illegal state: Instruction read did not have expected opcode

    This is my user-mapping.xml
    <user-mapping>

     <!-- Per-user authentication and config information --> 
     <authorize username="USERNAME" password="PASSWORD">
    

    <connection name="test">
    <protocol>vnc</protocol>
    <param name="hostname">localhost</param>
    <param name="port">5900</param>
    </connection>
    </authorize>

     <authorize  
             username="user2" 
             password="passwd2"> 
         <protocol>rdp</protocol> 
         <param name="hostname">192.168.0.170</param> 
         <param name="port">3389</param> 
         <param name="password"></param>
    

    </authorize>

    </user-mapping>

    this is my guacamole.properties
    guacd-hostname: localhost
    guacd-port: 4822

    auth-provider: net.sourceforge.guacamole.BasicFileAuthenticationProvider
    basic-user-mapping: /usr/share/tomcat7/.guacamole/user-mapping.xml

    Any help would be greatly appreciated.
    I'm currently running
    ubuntu 16.04
    guacd 0.8.3
    guacamole-server 0.9.9
    guacamole-client 0.9.9

    If I try to connect with user "USERNAME" pw "PASSWORD", the user is identified but linking it to my VNC failes. The catalina.out shows 'GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: End of stream while waiting for "ready".'

    What could possibly be the problem? The GUACD daemon is listening on port 4822 and I can connect to X11vnc server using an other VNC client.

     

    Last edit: Bertold Keuleers 2016-08-03
  • Michael Jumper

    Michael Jumper - 2016-08-09

    Hi Bertold,

    Guacamole has moved to the Apache Incubator (see the stickied announcement). Please use the Apache Guacamole project's mailing lists instead:

    http://guacamole.incubator.apache.org/support/#mailing-lists

    We're keeping these forums open for the time being so we can redirect users to the new lists (especially since the documentation has not yet been updated to cover this), but project has moved, and the community needs to move as well. The mailing lists are where any future discussions should occur.

    Thanks!