[one-users] sunstone noVNC - connect timeout

Jakub Kaláb jakub.kalab at friendlysystems.cz
Mon Jul 30 10:27:42 PDT 2012


Hello,
I'm having a problem with the opennebula sunstone vnc feature. When I try
to connect to the server using the vnc button, it opens the window and
after a short while "connect timeout" message appears. First I tried to
connect to the host vnc with vncviewer and it works allright, so there
should be no firewall problems. So I played a bit with the sunstone
configuration. I set :vnc_proxy_base_port: 0 in the sunstone.conf so that
the noVNC proxy port on the sunstone server is the same as the remote one.
I then restarted sunstone and watched the sunstone.log while I tried to use
the vnc again, this line appeared in the log (and I got the "connect
timeout" message again):

Mon Jul 30 18:22:56 2012 [I]: Starting vnc proxy:
/usr/share/one/noVNC/utils/websockify 5904 node3:5904

Then I checked these:

root at nebula # netstat --ip -lnp | grep 5904
tcp        0      0 0.0.0.0:5904            0.0.0.0:*
LISTEN      7534/python

root at nebula # ps u -p 7534
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root      7534  0.1  1.6  92924 16724 pts/1    S    19:11   0:00 python
/usr/share/one/noVNC/utils/websockify 5904 node3:5904

so the noVNC proxy opened the port correctly, but while I can connect to
the remote host correctly (using the vncviewer), when I try to connect to
this proxied port, I get the following:

root at nebula # vncviewer localhost:4
VNC Viewer Free Edition 4.1.1 for X - built Feb  5 2012 20:01:21

Mon Jul 30 19:16:29 2012
 CConn:       connected to host localhost port 5904

Mon Jul 30 19:16:32 2012
 main:        End of stream

it does connect, so the proxy is partly working, but then the stream ends
before the video transmission starts. What should I do to solve this kind
of problem? Have I missed something?

Just for completeness, this is my sunstone.conf:

root at nebula:/usr/share/one# cat /etc/one/sunstone-server.conf | egrep -v
'^#|^$'
:one_xmlrpc: http://localhost:2633/RPC2
host: 0.0.0.0
:port: 9869
:debug_level: 3
:auth: sunstone
:core_auth: cipher
:vnc_proxy_base_port: 0
:vnc_proxy_path: /usr/share/one/noVNC/utils/websockify
:vnc_proxy_support_wss: no
:vnc_proxy_cert:
:vnc_proxy_key:
:lang: en_US

and the graphics part of the template of the VM I tried it on:
GRAPHICS=[
  LISTEN="0.0.0.0",
  PORT="5904",
  TYPE="vnc" ]

Thank you. Jakub
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120730/160010a5/attachment-0002.htm>


More information about the Users mailing list