[one-users] VNC proxy is working but Sustone VNC window does show error

Пярн Артур dekkart at yandex.ru
Thu Aug 23 05:54:02 PDT 2012


Just in case, my configuration:
10.2.2.2 - KVM host with VMs
10.18.1.7 - only OpenNebula and Sunstone front-end

* Can you connect directly without no VNC to those VMs (10.2.2.2:5916 for example) with a standard vnc client

Yes, with no problem

If I start proxy manualy "/srv/cloud/one/share/noVNC/utils/websockify 35792 10.2.2.2:5916", I can't connetct from VNC client to 10.18.1.7:35792, it shows me "ignoring socket not ready":

root at ubuntu:/srv/cloud/one/share/noVNC/utils#  /srv/cloud/one/share/noVNC/utils/websockify 35792 10.2.2.2:5916
WARNING: no 'numpy' module, HyBi protocol is slower or disabled
WebSocket server settings:
  - Listen on :35792
  - Flash security policy server
  - No SSL/TLS support (no cert file)
  - proxying from :35792 to 10.2.2.2:5916

  1: 10.2.0.3: ignoring socket not ready
  2: 10.2.0.3: ignoring socket not ready

I found that I can connect to 10.18.1.7: 35792 from browser (http://10.18.1.7:6080/vnc.html) when I start both launch.sh script and also websockify 35792 10.2.2.2:5916


23.08.2012, 16:20, "Hector Sanjuan" <hsanjuan at opennebula.org>:
> Your "working" screenshot shows a VNC session to a VM deployed in the same
> host as the sunstone frontend (10.18.1.7:6080), but from sunstone you are
> trying to open connections to VMs in a different host (10.2.2.2). My
> questions then,
>
> * Can you connect directly without no VNC to those VMs (10.2.2.2:5916 for
> example) with a standard vnc client
>
> * If you manually launch the proxy with the webserver option like you did,
> would something like
> http://10.18.1.7:6080/vnc.html?host=10.2.2.2&port=5916 work? This should
> not work if sunstone doesnt. Perhaps you can get some useful info from the
> websockify stdout when attempting it if it doesnt work.
>
> (in response to your latest email, dont worry about the timeout thing)
>
> Hector
>
> En Thu, 23 Aug 2012 14:08:05 +0200, Пярн Артур <dekkart at yandex.ru>
> escribió:
>
>>  Sure, logs below. sunstone.error is empty. It's our DEMO network, no
>>  firewall, so no way.
>>
>>  --------------------------------------
>>           Server configuration
>>  --------------------------------------
>>  {:vnc_proxy_path=>"/srv/cloud/one/share/noVNC/utils/websockify",
>>   :auth=>"sunstone",
>>   :vnc_proxy_key=>nil,
>>   :vnc_proxy_support_wss=>false,
>>   :debug_level=>3,
>>   :vnc_proxy_base_port=>29876,
>>   :host=>"0.0.0.0",
>>   :port=>8888,
>>   :one_xmlrpc=>"http://localhost:2633/RPC2",
>>   :core_auth=>"cipher",
>>   :lang=>"en_US",
>>   :vnc_proxy_cert=>nil}
>>  == Sinatra/1.3.2 has taken the stage on 8888 for development with backup
>>  from Thin
>>  Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET /
>>  HTTP/1.1" 200 1595 0.0075
>>  Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
>>  /css/login.css HTTP/1.1" 304 - 0.0022
>>  Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
>>  /vendor/jQueryUI/jquery-ui-1.8.16.custom.css HTTP/1.1" 304 - 0.0023
>>  Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
>>  /vendor/jQuery/jquery-1.7.1.min.js HTTP/1.1" 304 - 0.0019
>>  Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
>>  /js/opennebula.js HTTP/1.1" 304 - 0.0015
>>  Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
>>  /js/login.js HTTP/1.1" 304 - 0.0011
>>  Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
>>  /images/ajax-loader.gif HTTP/1.1" 304 - 0.0006
>>  Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
>>  /images/opennebula-sunstone-big.png HTTP/1.1" 304 - 0.0013
>>  Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
>>  /images/panel.png HTTP/1.1" 304 - 0.0014
>>  Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
>>  /images/login.png HTTP/1.1" 304 - 0.0007
>>  Thu Aug 23 12:04:44 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:44] "GET
>>  /images/login_over.png HTTP/1.1" 304 - 0.0006
>>  Thu Aug 23 12:04:44 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:44] "POST
>>  /login HTTP/1.1" 204 - 0.0682
>>  Thu Aug 23 12:04:44 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:44] "GET /
>>  HTTP/1.1" 200 4636 0.0065
>>  Thu Aug 23 12:04:44 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:44] "GET
>>  /vendor/noVNC/include/plain.css HTTP/1.1" 404 466 0.0017
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /host/monitor?title=graph1&monitor_resources=cpu_usage%2Cused_cpu%2Cmax_cpu&histor$
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /host/monitor?title=graph2&monitor_resources=mem_usage%2Cused_mem%2Cmax_mem&histor$
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /vm/monitor?title=graph3&monitor_resources=total%2Cactive%2Cerror&history_length=4$
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /config HTTP/1.1" 200 44 0.0026
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /vm/monitor?title=graph4&monitor_resources=net_tx%2Cnet_rx&history_length=40
>>  HTTP/$
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /user?timeout=false HTTP/1.1" 200 637 0.0188
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /group?timeout=false HTTP/1.1" 200 291 0.0187
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /acl?timeout=false HTTP/1.1" 200 377 0.0176
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /vmtemplate?timeout=false HTTP/1.1" 200 4406 0.0591
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /image?timeout=false HTTP/1.1" 200 902 0.0545
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /vm?timeout=false HTTP/1.1" 200 8422 0.0668
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /cluster?timeout=false HTTP/1.1" 200 27 0.0123
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /vm?timeout=false HTTP/1.1" 200 8422 0.0668
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /cluster?timeout=false HTTP/1.1" 200 27 0.0123
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /host?timeout=false HTTP/1.1" 200 2507 0.0145
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /datastore?timeout=false HTTP/1.1" 200 1502 0.0153
>>  Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
>>  /vnet?timeout=false HTTP/1.1" 200 1406 0.0057
>>  Thu Aug 23 12:04:54 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:54] "GET
>>  /vm/12 HTTP/1.1" 200 1836 0.0683
>>  Thu Aug 23 12:04:54 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:54] "GET
>>  /vm/12/monitor?title=CPU&monitor_resources=cpu_usage&humanize_figures=false&histor$
>>  Thu Aug 23 12:04:54 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:54] "GET
>>  /vm/12/monitor?title=Network+transmission&monitor_resources=net_tx&humanize_figure$
>>  Thu Aug 23 12:04:54 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:54] "GET
>>  /vm/12/monitor?title=Network+reception&monitor_resources=net_rx&humanize_figures=t$
>>  Thu Aug 23 12:04:54 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:54] "GET
>>  /vm/12/monitor?title=Memory&monitor_resources=mem_usage&humanize_figures=true&hist$
>>  Thu Aug 23 12:04:54 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:54] "GET
>>  /vm/12/log HTTP/1.1" 200 4327 0.0124
>>  Thu Aug 23 12:05:00 2012 [I]: Starting vnc proxy:
>>  /srv/cloud/one/share/noVNC/utils/websockify  35788 10.2.2.2:5912
>>  Thu Aug 23 12:05:00 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:05:00] "POST
>>  /vm/12/startvnc HTTP/1.1" 200 30 0.0081
>>  Thu Aug 23 12:05:09 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:05:09] "POST
>>  /vm/12/stopvnc HTTP/1.1" 200 - 0.0026
>>  Thu Aug 23 12:05:11 2012 [I]: Starting vnc proxy:
>>  /srv/cloud/one/share/noVNC/utils/websockify  35792 10.2.2.2:5916
>>  Thu Aug 23 12:05:11 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:05:11] "POST
>>  /vm/16/startvnc HTTP/1.1" 200 30 0.0080
>>
>>  23.08.2012, 15:15, "Hector Sanjuan" <hsanjuan at opennebula.org>:
>>>  Hello,
>>>
>>>  its a bit strange, can you send sunstone.log and sunstone.error if not
>>>  empty? Any chance that the port used by the proxy launched by susntone
>>>  is
>>>  not accesible because of a firewall etc?
>>>
>>>  Hector
>>>
>>>  En Thu, 23 Aug 2012 13:04:01 +0200, Пярн Артур <dekkart at yandex.ru>
>>>  escribió:
>>>>   Hi everybody!
>>>>
>>>>   Another strange problem with VNC:
>>>>   everything is fine, when I click on VNC icon in Sunstone - noVNC proxy
>>>>   is working (I can see it in "ps aux" output) and I can start session
>>>>   from browser directly
>>>>   (http://10.18.1.7:6080/vnc.html?host=10.18.1.7&port=6080) and I can
>>>>  also
>>>>   connect directly to VM from VNC client.
>>>>   BUT!
>>>>   Beautiufll Sunstone VNC connection windows doesn't show anyting!
>>>>   There is message on white background "Server disconnected (code:
>>>>  1006)"
>>>>
>>>>   I can't understand what's wrong. Screenshot is in the attach.
>>>>
>>>>   Thank you very much in advance!!
>>>>
>>>>   --
>>>>   Best regards,
>>>>   Artur Pyarn
>>>  --
>>>  Hector Sanjuan
>>>  OpenNebula Developer
>>>  _______________________________________________
>>>  Users mailing list
>>>  Users at lists.opennebula.org
>>>  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
> --
> Hector Sanjuan
> OpenNebula Developer

-- 
С уважением, Артур Пярн



More information about the Users mailing list