<div dir="ltr">Hello Paweł,<div><br></div><div>Maybe your issue is somehow connected to the Same-Origin-Policy discussed in</div><div>the following thread:  </div><div><br></div><div><a href="http://lists.opennebula.org/pipermail/users-opennebula.org/2014-February/026405.html">http://lists.opennebula.org/pipermail/users-opennebula.org/2014-February/026405.html</a></div>

<div><br></div><div>Best,</div><div>Valentin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 4:16 PM, Daniel Molina <span dir="ltr"><<a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 22 July 2014 16:44,  <span dir="ltr"><<a href="mailto:pawel.orzechowski@budikom.net" target="_blank">pawel.orzechowski@budikom.net</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:Verdana,Geneva,sans-serif">
<p>I had similar situation. When I switched on "secure websockets connection" in my profile settings I could not open VNC connection to any virtual machine.</p>
<p>Isn't it a bug?</p></div></blockquote><div><br></div><div>What is the error message that is shown in Susntone?</div><div><br></div><div>Cheers</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="font-family:Verdana,Geneva,sans-serif">
<p>Pawel</p>
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px">
<pre>I have found my mistake!
It was silly - Some time ago I pressed "Secure websockets connection" chekbox in configuration tab and forgot about it.
So now it's working!
THANK YOU.

23.08.2012, 17:17, "Пярн Артур" <<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">dekkart at yandex.ru</a>>:
><em> If I go direclty from browser to <a href="http://10.18.1.7:35792/" target="_blank">http://10.18.1.7:35792/</a>
</em>><em> it shows me in websockify output the following message: "Normal web request received but disallowed"
</em>>><em> 23.08.2012, 16:54, "Пярн Артур" <<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">dekkart at yandex.ru</a>>:
</em>>>><em>  Just in case, my configuration:
</em>>><em>  10.2.2.2 - KVM host with VMs
</em>>><em>  10.18.1.7 - only OpenNebula and Sunstone front-end
</em>>>>><em>  * Can you connect directly without no VNC to those VMs (<a href="http://10.2.2.2:5916" target="_blank">10.2.2.2:5916</a> for example) with a standard vnc client
</em>>>>><em>  Yes, with no problem
</em>>>>><em>  If I start proxy manualy "/srv/cloud/one/share/noVNC/utils/websockify 35792 <a href="http://10.2.2.2:5916" target="_blank">10.2.2.2:5916</a>", I can't connetct from VNC client to <a href="http://10.18.1.7:35792" target="_blank">10.18.1.7:35792</a>, it shows me "ignoring socket not ready":
</em>>>>><em>  <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">root at ubuntu</a>:/srv/cloud/one/share/noVNC/utils#  /srv/cloud/one/share/noVNC/utils/websockify 35792 <a href="http://10.2.2.2:5916" target="_blank">10.2.2.2:5916</a>
</em>>><em>  WARNING: no 'numpy' module, HyBi protocol is slower or disabled
</em>>><em>  WebSocket server settings:
</em>>><em>    - Listen on :35792
</em>>><em>    - Flash security policy server
</em>>><em>    - No SSL/TLS support (no cert file)
</em>>><em>    - proxying from :35792 to <a href="http://10.2.2.2:5916" target="_blank">10.2.2.2:5916</a>
</em>>>>><em>    1: <a href="http://10.2.0.3" target="_blank">10.2.0.3</a>: ignoring socket not ready
</em>>><em>    2: <a href="http://10.2.0.3" target="_blank">10.2.0.3</a>: ignoring socket not ready
</em>>>>><em>  I found that I can connect to <a href="http://10.18.1.7" target="_blank">10.18.1.7</a>: 35792 from browser (<a href="http://10.18.1.7:6080/vnc.html" target="_blank">http://10.18.1.7:6080/vnc.html</a>) when I start both launch.sh script and also websockify 35792 <a href="http://10.2.2.2:5916" target="_blank">10.2.2.2:5916</a>
</em>>>>><em>  23.08.2012, 16:20, "Hector Sanjuan" <<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">hsanjuan at opennebula.org</a>>:
</em>>>><em>   Your "working" screenshot shows a VNC session to a VM deployed in the same
</em>>>><em>   host as the sunstone frontend (<a href="http://10.18.1.7:6080" target="_blank">10.18.1.7:6080</a>), but from sunstone you are
</em>>>><em>   trying to open connections to VMs in a different host (10.2.2.2). My
</em>>>><em>   questions then,
</em>>>>>>><em>   * Can you connect directly without no VNC to those VMs (<a href="http://10.2.2.2:5916" target="_blank">10.2.2.2:5916</a> for
</em>>>><em>   example) with a standard vnc client
</em>>>>>>><em>   * If you manually launch the proxy with the webserver option like you did,
</em>>>><em>   would something like
</em>>>><em>   <a href="http://10.18.1.7:6080/vnc.html?host=10.2.2.2&port=5916" target="_blank">http://10.18.1.7:6080/vnc.html?host=10.2.2.2&port=5916</a> work? This should
</em>>>><em>   not work if sunstone doesnt. Perhaps you can get some useful info from the
</em>>>><em>   websockify stdout when attempting it if it doesnt work.
</em>>>>>>><em>   (in response to your latest email, dont worry about the timeout thing)
</em>>>>>>><em>   Hector
</em>>>>>>><em>   En Thu, 23 Aug 2012 14:08:05 +0200, Пярн Артур <<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">dekkart at yandex.ru</a>>
</em>>>><em>   escribió:
</em>>>>><em>    Sure, logs below. sunstone.error is empty. It's our DEMO network, no
</em>>>>><em>    firewall, so no way.
</em>>>>>>>>><em>    --------------------------------------
</em>>>>><em>             Server configuration
</em>>>>><em>    --------------------------------------
</em>>>>><em>    {:vnc_proxy_path=>"/srv/cloud/one/share/noVNC/utils/websockify",
</em>>>>><em>     :auth=>"sunstone",
</em>>>>><em>     :vnc_proxy_key=>nil,
</em>>>>><em>     :vnc_proxy_support_wss=>false,
</em>>>>><em>     :debug_level=>3,
</em>>>>><em>     :vnc_proxy_base_port=>29876,
</em>>>>><em>     :host=>"0.0.0.0",
</em>>>>><em>     :port=>8888,
</em>>>>><em>     :one_xmlrpc=>"<a href="http://localhost:2633/RPC2" target="_blank">http://localhost:2633/RPC2</a>",
</em>>>>><em>     :core_auth=>"cipher",
</em>>>>><em>     :lang=>"en_US",
</em>>>>><em>     :vnc_proxy_cert=>nil}
</em>>>>><em>    == Sinatra/1.3.2 has taken the stage on 8888 for development with backup
</em>>>>><em>    from Thin
</em>>>>><em>    Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET /
</em>>>>><em>    HTTP/1.1" 200 1595 0.0075
</em>>>>><em>    Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
</em>>>>><em>    /css/login.css HTTP/1.1" 304 - 0.0022
</em>>>>><em>    Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
</em>>>>><em>    /vendor/jQueryUI/jquery-ui-1.8.16.custom.css HTTP/1.1" 304 - 0.0023
</em>>>>><em>    Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
</em>>>>><em>    /vendor/jQuery/jquery-1.7.1.min.js HTTP/1.1" 304 - 0.0019
</em>>>>><em>    Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
</em>>>>><em>    /js/opennebula.js HTTP/1.1" 304 - 0.0015
</em>>>>><em>    Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
</em>>>>><em>    /js/login.js HTTP/1.1" 304 - 0.0011
</em>>>>><em>    Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
</em>>>>><em>    /images/ajax-loader.gif HTTP/1.1" 304 - 0.0006
</em>>>>><em>    Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
</em>>>>><em>    /images/opennebula-sunstone-big.png HTTP/1.1" 304 - 0.0013
</em>>>>><em>    Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
</em>>>>><em>    /images/panel.png HTTP/1.1" 304 - 0.0014
</em>>>>><em>    Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
</em>>>>><em>    /images/login.png HTTP/1.1" 304 - 0.0007
</em>>>>><em>    Thu Aug 23 12:04:44 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:44] "GET
</em>>>>><em>    /images/login_over.png HTTP/1.1" 304 - 0.0006
</em>>>>><em>    Thu Aug 23 12:04:44 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:44] "POST
</em>>>>><em>    /login HTTP/1.1" 204 - 0.0682
</em>>>>><em>    Thu Aug 23 12:04:44 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:44] "GET /
</em>>>>><em>    HTTP/1.1" 200 4636 0.0065
</em>>>>><em>    Thu Aug 23 12:04:44 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:44] "GET
</em>>>>><em>    /vendor/noVNC/include/plain.css HTTP/1.1" 404 466 0.0017
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /host/monitor?title=graph1&monitor_resources=cpu_usage%2Cused_cpu%2Cmax_cpu&histor$
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /host/monitor?title=graph2&monitor_resources=mem_usage%2Cused_mem%2Cmax_mem&histor$
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /vm/monitor?title=graph3&monitor_resources=total%2Cactive%2Cerror&history_length=4$
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /config HTTP/1.1" 200 44 0.0026
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /vm/monitor?title=graph4&monitor_resources=net_tx%2Cnet_rx&history_length=40
</em>>>>><em>    HTTP/$
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /user?timeout=false HTTP/1.1" 200 637 0.0188
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /group?timeout=false HTTP/1.1" 200 291 0.0187
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /acl?timeout=false HTTP/1.1" 200 377 0.0176
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /vmtemplate?timeout=false HTTP/1.1" 200 4406 0.0591
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /image?timeout=false HTTP/1.1" 200 902 0.0545
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /vm?timeout=false HTTP/1.1" 200 8422 0.0668
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /cluster?timeout=false HTTP/1.1" 200 27 0.0123
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /vm?timeout=false HTTP/1.1" 200 8422 0.0668
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /cluster?timeout=false HTTP/1.1" 200 27 0.0123
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /host?timeout=false HTTP/1.1" 200 2507 0.0145
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /datastore?timeout=false HTTP/1.1" 200 1502 0.0153
</em>>>>><em>    Thu Aug 23 12:04:46 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:46] "GET
</em>>>>><em>    /vnet?timeout=false HTTP/1.1" 200 1406 0.0057
</em>>>>><em>    Thu Aug 23 12:04:54 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:54] "GET
</em>>>>><em>    /vm/12 HTTP/1.1" 200 1836 0.0683
</em>>>>><em>    Thu Aug 23 12:04:54 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:54] "GET
</em>>>>><em>    /vm/12/monitor?title=CPU&monitor_resources=cpu_usage&humanize_figures=false&histor$
</em>>>>><em>    Thu Aug 23 12:04:54 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:54] "GET
</em>>>>><em>    /vm/12/monitor?title=Network+transmission&monitor_resources=net_tx&humanize_figure$
</em>>>>><em>    Thu Aug 23 12:04:54 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:54] "GET
</em>>>>><em>    /vm/12/monitor?title=Network+reception&monitor_resources=net_rx&humanize_figures=t$
</em>>>>><em>    Thu Aug 23 12:04:54 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:54] "GET
</em>>>>><em>    /vm/12/monitor?title=Memory&monitor_resources=mem_usage&humanize_figures=true&hist$
</em>>>>><em>    Thu Aug 23 12:04:54 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:54] "GET
</em>>>>><em>    /vm/12/log HTTP/1.1" 200 4327 0.0124
</em>>>>><em>    Thu Aug 23 12:05:00 2012 [I]: Starting vnc proxy:
</em>>>>><em>    /srv/cloud/one/share/noVNC/utils/websockify  35788 <a href="http://10.2.2.2:5912" target="_blank">10.2.2.2:5912</a>
</em>>>>><em>    Thu Aug 23 12:05:00 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:05:00] "POST
</em>>>>><em>    /vm/12/startvnc HTTP/1.1" 200 30 0.0081
</em>>>>><em>    Thu Aug 23 12:05:09 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:05:09] "POST
</em>>>>><em>    /vm/12/stopvnc HTTP/1.1" 200 - 0.0026
</em>>>>><em>    Thu Aug 23 12:05:11 2012 [I]: Starting vnc proxy:
</em>>>>><em>    /srv/cloud/one/share/noVNC/utils/websockify  35792 <a href="http://10.2.2.2:5916" target="_blank">10.2.2.2:5916</a>
</em>>>>><em>    Thu Aug 23 12:05:11 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:05:11] "POST
</em>>>>><em>    /vm/16/startvnc HTTP/1.1" 200 30 0.0080
</em>>>>>>>>><em>    23.08.2012, 15:15, "Hector Sanjuan" <<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">hsanjuan at opennebula.org</a>>:
</em>>>>>><em>    Hello,
</em>>>>>>>>>>><em>    its a bit strange, can you send sunstone.log and sunstone.error if not
</em>>>>>><em>    empty? Any chance that the port used by the proxy launched by susntone
</em>>>>>><em>    is
</em>>>>>><em>    not accesible because of a firewall etc?
</em>>>>>>>>>>><em>    Hector
</em>>>>>>>>>>><em>    En Thu, 23 Aug 2012 13:04:01 +0200, Пярн Артур <<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">dekkart at yandex.ru</a>>
</em>>>>>><em>    escribió:
</em>>>>>>><em>     Hi everybody!
</em>>>>>>>>>>>>><em>     Another strange problem with VNC:
</em>>>>>>><em>     everything is fine, when I click on VNC icon in Sunstone - noVNC proxy
</em>>>>>>><em>     is working (I can see it in "ps aux" output) and I can start session
</em>>>>>>><em>     from browser directly
</em>>>>>>><em>     (<a href="http://10.18.1.7:6080/vnc.html?host=10.18.1.7&port=6080" target="_blank">http://10.18.1.7:6080/vnc.html?host=10.18.1.7&port=6080</a>) and I can
</em>>>>>>><em>    also
</em>>>>>>><em>     connect directly to VM from VNC client.
</em>>>>>>><em>     BUT!
</em>>>>>>><em>     Beautiufll Sunstone VNC connection windows doesn't show anyting!
</em>>>>>>><em>     There is message on white background "Server disconnected (code:
</em>>>>>>><em>    1006)"
</em>>>>>>>>>>>>><em>     I can't understand what's wrong. Screenshot is in the attach.
</em>>>>>>>>>>>>><em>     Thank you very much in advance!!
</em>>>>>>>>>>>>><em>     --
</em>>>>>>><em>     Best regards,
</em>>>>>>><em>     Artur Pyarn
</em>>>>>><em>    --
</em>>>>>><em>    Hector Sanjuan
</em>>>>>><em>    OpenNebula Developer
</em>>>>>><em>    _______________________________________________
</em>>>>>><em>    Users mailing list
</em>>>>>><em>    <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">Users at lists.opennebula.org</a>
</em>>>>>><em>    <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</em>>>><em>   --
</em>>>><em>   Hector Sanjuan
</em>>>><em>   OpenNebula Developer
</em>>><em>  --
</em>>><em>  С уважением, Артур Пярн
</em>>><em>  _______________________________________________
</em>>><em>  Users mailing list
</em>>><em>  <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">Users at lists.opennebula.org</a>
</em>>><em>  <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</em>>><em> --
</em>><em> С уважением, Артур Пярн
</em>><em> _______________________________________________
</em>><em> Users mailing list
</em>><em> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">Users at lists.opennebula.org</a>
</em>><em> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</em>
-- 
С уважением, Артур Пярн</pre>
<p> </p>
</blockquote>
<p> </p>
<div>-- <br>
<pre>Paweł Orzechowski
<a href="mailto:pawel.orzechowski@budikom.net" target="_blank">pawel.orzechowski@budikom.net</a>
<strong><a href="http://budikom.net" target="_blank">budikom.net</a></strong>
ul. Trzy Lipy 3, GPNT, bud. C
80-172 Gdańsk
tel.: <a href="tel:%2B48%2058%2058%2058%20708" value="+48585858708" target="_blank">+48 58 58 58 708</a>
email: <a href="mailto:biuro@budikom.net" target="_blank">biuro@budikom.net</a></pre>
</div>
<pre>I have found my mistake!
It was silly - Some time ago I pressed "Secure websockets connection" chekbox in configuration tab and forgot about it.
So now it's working!
THANK YOU.

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

<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula</div>


</font></span></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>