[ovirt-users] novnc error

Frantisek Kobzik fkobzik at redhat.com
Fri Jun 13 12:10:38 UTC 2014


Hi Garrett,

just a question about accessing the engine via the browser: do you access engine via the fqdn you typed in in the engine-setup? For instance, if you issue the certificates for 'mycompany.com' and use let's say ip address in the browser, websockify won't work...

Cheers,
Franta


----- Original Message -----
From: "Garrett Baltezegar" <my91rt at gmail.com>
To: "Alon Bar-Lev" <alonbl at redhat.com>
Cc: users at ovirt.org
Sent: Thursday, June 12, 2014 11:50:30 PM
Subject: Re: [ovirt-users] novnc error



Python-websockify - 0.5.1-1.e16.no arch 

Numpy isn't installed 
On Jun 12, 2014 5:15 PM, "Alon Bar-Lev" < alonbl at redhat.com > wrote: 




----- Original Message ----- 
> From: "Garrett Baltezegar" < my91rt at gmail.com > 
> To: "Alon Bar-Lev" < alonbl at redhat.com > 
> Cc: users at ovirt.org 
> Sent: Friday, June 13, 2014 12:12:28 AM 
> Subject: Re: [ovirt-users] novnc error 
> 
> I've checked /var/log/messages a few times, but it doesn't seem like much 
> is being written to it; the last entry I have is from ~6 hours ago. 
> 
> When running 
> "/usr/share/ovirt-engine/services/ovirt-websocket-proxy/ovirt-websocket-proxy.py 
> --debug start" I see the following information as the service is starting: 
> 
> WARNING: no 'numpy' module, HyBi protocol will be slower 
> ovirt-websocket-proxy[14511] DEBUG _daemon:403 daemon entry pid=14511 
> ovirt-websocket-proxy[14511] DEBUG _daemon:404 background=False 
> ovirt-websocket-proxy[14511] DEBUG loadFile:70 loading config 
> '/usr/share/ovirt- 
> engine/services/ovirt-websocket-proxy/ovirt-websocket-proxy.conf' 
> ovirt-websocket-proxy[14511] DEBUG loadFile:70 loading config 
> '/etc/ovirt-engine 
> /ovirt-websocket-proxy.conf.d/10-setup.conf' 
> ovirt-websocket-proxy[14511] DEBUG _daemon:440 I am a daemon 14511 
> ovirt-websocket-proxy[14511] DEBUG _setLimits:377 Setting rlimits 
> WebSocket server settings: 
> - Listen on *:6100 
> - Flash security policy server 
> - SSL/TLS support 
> - Deny non-SSL/TLS connections 
> - proxying from *:6100 to targets in /dummy 
> 
> 
> 
> I see the following info after I attempted a novnc connection through the 
> browser: 
> 
> 1: 10.255.239.1 : new handler Process 
> 1: handler exception: WSRequestHandler instance has no attribute 'last_code' 
> 1: Traceback (most recent call last): 
> File "/usr/lib/python2.6/site-packages/websockify/websocket.py", line 696, 
> in top_new_client 
> self.client = self.do_handshake(startsock, address) 
> File "/usr/lib/python2.6/site-packages/websockify/websocket.py", line 628, 
> in do_handshake 
> if wsh.last_code == 101: 
> AttributeError: WSRequestHandler instance has no attribute 'last_code' 
> 
> 

What version of python-websockify do you have? 
What version of numpy do you have (if any)? 

> Thanks! 
> 
> 
> On Thu, Jun 12, 2014 at 4:56 PM, Alon Bar-Lev < alonbl at redhat.com > wrote: 
> 
> > 
> > 
> > ----- Original Message ----- 
> > > From: "Garrett Baltezegar" < my91rt at gmail.com > 
> > > To: "Alon Bar-Lev" < alonbl at redhat.com > 
> > > Cc: users at ovirt.org 
> > > Sent: Thursday, June 12, 2014 11:49:50 PM 
> > > Subject: Re: [ovirt-users] novnc error 
> > > 
> > > It looks like a blank page loads. Just tried this in both Chrome and 
> > > Internet Explorer, and got the same result. 
> > > 
> > > The proxy is installed locally on the ovirt server, by the way. Nmap 
> > shows 
> > > port 6100 TCP listening. 
> > 
> > do you see anything relevant at /var/log/messages? 
> > 
> > try to stop the ovirt-websocket-proxy service and run it in debug mode: 
> > 
> > # su - -s /bin/sh ovirt 
> > $ 
> > /usr/share/ovirt-engine/services/ovirt-websocket-proxy/ovirt-websocket-proxy.py 
> > --debug start 
> > 
> > see what you get. 
> > 
> > > 
> > > Thanks for the quick response! 
> > > On Jun 12, 2014 4:39 PM, "Alon Bar-Lev" < alonbl at redhat.com > wrote: 
> > > 
> > > > 
> > > > 
> > > > ----- Original Message ----- 
> > > > > From: "Garrett Baltezegar" < my91rt at gmail.com > 
> > > > > To: users at ovirt.org 
> > > > > Sent: Thursday, June 12, 2014 11:33:09 PM 
> > > > > Subject: [ovirt-users] novnc error 
> > > > > 
> > > > > Hello everyone, 
> > > > > 
> > > > > I'm running into an error getting novnc up and running with ovirt, 
> > and 
> > > > I'm 
> > > > > hoping someone can help. 
> > > > > 
> > > > > My system is a CentOS minimal x86_64 install running ovirt fine. I 
> > have 
> > > > > created VMs and I'm able to configure the console options. When I 
> > > > attempt to 
> > > > > connect to them, however, I get a Server disconnected (code: 1006) 
> > error. 
> > > > > I've searched online for a solution, but everything seems to point to 
> > > > simply 
> > > > > running the engine-setup configuration utility and installing the 
> > > > ca.crt. I 
> > > > > have tried both of these things, but I keep getting the same 
> > message, in 
> > > > > Internet Explorer, Chrome and Firefox. 
> > > > > 
> > > > > Disabled iptables and selinux. 
> > > > > Connected directly to VM with VNC 
> > > > > Checked ovirt-websocket-proxy, and it is running - haven't touched 
> > config 
> > > > > file - SSL=true 
> > > > > Installed ca.crt - multiple times 
> > > > > Reinstalled ovirt - clean first, the reinstall. 
> > > > > Reinstalled ca.crt 
> > > > > 
> > > > > Nothing has helped so far. Does anyone have any ideas? I have a 
> > > > > straight-forward setup using engine-setup; accepting the default 
> > answer 
> > > > most 
> > > > > of the time. GlusterFS being one of the non-defaults. 
> > > > > 
> > > > > I appreciate your suggestions! 
> > > > 
> > > > What happens if you access port 6100 at engine machine? 
> > > > 
> > > > https://host:6100 
> > > > 
> > > > > 
> > > > > GB 
> > > > > 
> > > > > _______________________________________________ 
> > > > > Users mailing list 
> > > > > Users at ovirt.org 
> > > > > http://lists.ovirt.org/mailman/listinfo/users 
> > > > > 
> > > > 
> > > 
> > 
> 

_______________________________________________
Users mailing list
Users at ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



More information about the Users mailing list