
Hi Michal, We want to access vm console by using noVNC and Rest api. We are using websocket proxy on the same machine where engine runs and we try to get the console access from the another server that is outside from this cluster. But when we try to connect the vnc_auto.html from the server using host ip, port and the password which we get from the ticket creation… it shows a Failed to connect to server (code: 1006). The following are the codes which we use to create the ticket… host,port and the password will get from the ticket and with the same details (host,port & password) we are able to connect the console using the vnc clients(TigerVNC etc.) try { var host = WebUtil.getQueryVar('host', '<?php echo $host?>'); var port = WebUtil.getQueryVar('port', '<?php echo $port?>'); var path = WebUtil.getQueryVar('path', 'websockify'); var password = '<?php echo $password?>'; if ((!host) || (!port)) { updateState('failed', "Must specify host and port in URL"); return; } rfb = new RFB({'target': $D('noVNC_canvas'), 'encrypt': WebUtil.getQueryVar('encrypt', (window.location.protocol === "https:")), 'true_color': WebUtil.getQueryVar('true_color', true), 'local_cursor': WebUtil.getQueryVar('cursor', true), 'shared': WebUtil.getQueryVar('shared', true), 'view_only': WebUtil.getQueryVar('view_only', false), 'updateState': updateState, 'onPasswordRequired': passwordRequired}); rfb.connect(host, port, password, path); }catch(e) {alert(e); Could you please check if there any issues with it and guide me how to get rid of this failed to connect error? I have attached the screen shots for further reference… Thanks, Punit On Tue, Jul 22, 2014 at 2:54 PM, Shanil S <xielesshanil@gmail.com> wrote:
Hi All,
We already updated with the logs and the clear picture about the issue.
-- Regards Shanil
On Mon, Jul 21, 2014 at 5:54 PM, Michal Skrivanek < michal.skrivanek@redhat.com> wrote:
On Jul 21, 2014, at 04:33 , Punit Dambiwal <hypunit@gmail.com> wrote:
Hi All,
I am still waiting for the updates...is there any one have the clue to solve this problem.... ???
Hi Punit, I'm afraid no one can help you debug connectivity issues remotely, without describing precisely what are you doing and how, and include all the logs
Thanks, michal
Thanks, Punit
On Fri, Jul 18, 2014 at 12:37 PM, Punit Dambiwal <hypunit@gmail.com>
Hi All,
We are also struggling with the same problem....can anybody mind to update here the resolution or suggest us the way to get rid of this "Failed to connect to server (code: 1006" error.
Thanks, Punit
On Thu, Jul 17, 2014 at 5:20 PM, Shanil S <xielesshanil@gmail.com> wrote: Hi,
We are waiting for the updates, it will be great if anyone can give the helpful details.. :)
-- Regards Shanil
On Thu, Jul 17, 2014 at 10:23 AM, Shanil S <xielesshanil@gmail.com> wrote: Hi,
we have enabled our portal ip address on the engine and hosts firewall but still the connection failed. so there should be no firewall issues.
-- Regards Shanil
On Wed, Jul 16, 2014 at 3:26 PM, Shanil S <xielesshanil@gmail.com> wrote: Hi Sven,
Regarding the ticket "path", Is it the direct combination of host and
wrote: port ? suppose if the host is 1.2.3.4 and the port is 5100 then what should be the "path" value ? Is there encryption needs here ?
so you have access from the browser to the websocket-proxy, network wise? can you ping the proxy? and the websocket proxy can reach the host where the vm runs?
yes.. there should be no firewall issue as we can access the console
from ovirt engine portal
Do we need to allow our own portal ip address in the ovirt engine and
hypervisiors also ???
-- Regards Shanil
On Wed, Jul 16, 2014 at 3:13 PM, Sven Kieske <S.Kieske@mittwald.de>
wrote:
Am 16.07.2014 11:30, schrieb Shanil S:
We will get the ticket details like host,port and password from the
api funcion call but didn't get the "path" value. Will it get it from
ticket the
ticket details ? i couldn't find out any from the ticket details.
the "path" is the combination of host and port.
so you have access from the browser to the websocket-proxy, network wise? can you ping the proxy? and the websocket proxy can reach the host where the vm runs? are you sure there are no firewalls in between? also you should pay attention on how long your ticket is valid, you can specify the duration in minutes in your api call.
-- Mit freundlichen Grüßen / Regards
Sven Kieske
Systemadministrator Mittwald CM Service GmbH & Co. KG Königsberger Straße 6 32339 Espelkamp T: +49-5772-293-100 F: +49-5772-293-333 https://www.mittwald.de Geschäftsführer: Robert Meyer St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users