[one-users] noVNC error: "Server disconnected" [socket.error: [Errno 98] Address already in use] ?

Hector Sanjuan hsanjuan at opennebula.org
Thu Apr 5 01:24:30 PDT 2012


Hello, I don't get to reproduce this. I close and reopen repeted times the  
VNC window and it works well.

When you close the vnc window, you should be seeing a line like and the  
stopvnc action pop up message:

Thu Apr 05 10:15:21 2012 [I]: 127.0.0.1 - - [05/Apr/2012 10:15:21] "POST  
/vm/12/stopvnc HT
TP/1.1" 200 - 0.0610

Could you check that this request happens and that it acknowledged with  
200?

Thanks,

Hec


En Sat, 31 Mar 2012 14:44:30 +0200, biro lehel <lehel.biro at yahoo.com>  
escribió:

> Hector,
>
> Indeed, the problem is that the wsproxy process remains hanging after  
> some time. Killing it manually makes the error disappear, thank you very  
> much for the hint.
> However, I think that this still is a bug.
>
> Cheers,
> Lehel.
>
> --- On Sat, 3/31/12, biro lehel <lehel.biro at yahoo.com> wrote:
>
> From: biro lehel <lehel.biro at yahoo.com>
> Subject: Re: [one-users] noVNC error: "Server disconnected"  
> [socket.error: [Errno 98] Address already in use] ?
> To: "Hector Sanjuan" <hsanjuan at opennebula.org>
> Cc: users at lists.opennebula.org
> Date: Saturday, March 31, 2012, 1:02 PM
>
> Hello Hector,
>
> I'm using OpenNebula 3.2.0 (downloaded the package) on openSUSE 11.4  
> (front-end), having Firefox 4.0b12. The respective host runs openSUSE  
> 12.1 and KVM.
>
> I will try to kill wsproxy manually next time the error occurs, and see  
> if it works. Until then, any other solutions are more than welcomed.
>
> Cheers,
> Lehel.
>
> --- On Sat, 3/31/12, Hector Sanjuan <hsanjuan at opennebula.org> wrote:
>
> From: Hector Sanjuan <hsanjuan at opennebula.org>
> Subject: Re: [one-users] noVNC error: "Server disconnected"  
> [socket.error: [Errno 98] Address already in use] ?
> To: users at lists.opennebula.org
> Date: Saturday, March 31, 2012, 12:51 PM
>
> Hello,
>
> which version of OpenNebula are you
>  using?
>
> It looks like wsproxy process is not conveniently terminated after  
> closing the connection. A more convinient workaround would be to kill  
> the wsproxy process in the frontend manually I guess.
>
> I have opened a ticket to keep track of this and see if I can reproduce  
> it as well. http://dev.opennebula.org/issues/1201
>
> Hector
>
> En Sat, 31 Mar 2012 11:24:44 +0200, biro lehel <lehel.biro at yahoo.com>  
> escribió:
>
>> Hello,
>>
>> I seem to have a noVNC-related issue. From time-to-time, I get a  
>> "Server disconnected" error, when accessing my VM's through VNC. I've  
>> noticed that it usually (only) happens when I was previously connected  
>> to that specific VM (for which the error occurs) through VNC for an  
>> extended period of time (but not more than 10-15 minutes),
>  closed the connection, and then tried to reconnect (this is where I get  
> the error). It never happened (so far) in situations other than this, if  
> the VNC-connections are short-termed in time, I can close and reconnect  
> to VM's through VNC as many times as I want.
>>
>> The only workaround I've found so far is rebooting both the front-end  
>> and the respective host, which, as you can imagine, is rather  
>> inconvenient to do each time this error occurs.
>>
>> sunstone.log contains the following about the
>>   error:
>>
>> Starting vnc proxy: /usr/share/one/noVNC/utils/wsproxy.py 35822  
>> pcls:5946
>> /usr/lib/one/sunstone/models/SunstoneServer.rb:234: warning: Insecure  
>> world writable dir /usr/X11R6/bin in PATH, mode 040777
>> 127.0.0.1 - - [31/Mar/2012 12:08:17] "POST /vm/46/startvnc HTTP/1.1"  
>> 200 30 0.1036
>> 127.0.0.1 - - [31/Mar/2012 12:08:17] "GET  
>> /vendor/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png
>  HTTP/1.1" 200 120 0.0116
>> Traceback (most recent call last):
>>    File "/usr/share/one/noVNC/utils/wsproxy.py", line 282, in <module>
>>      server.start_server()
>>    File "/usr/share/one/noVNC/utils/websocket.py", line 794, in  
>> start_server
>>      lsock = self.socket(self.listen_host, self.listen_port)
>>    File "/usr/share/one/noVNC/utils/websocket.py", line 185, in socket
>>      sock.bind(addrs[0][4])
>>    File "/usr/lib64/python2.7/socket.py", line 222, in meth
>>     return getattr(self._sock,name)(*args)
>> socket.error: [Errno 98] Address already in use
>> 127.0.0.1 - - [31/Mar/2012 12:08:32] "POST /vm/46/stopvnc HTTP/1.1" 200  
>> - 0.0856
>>
>> Since I'm not an expert in Python, I didn't want to dig myself into the  
>> above-named files so far.
>>
>
>> Any ideas what should I check, or what should I do?
>>
>> Thank you,
>> Lehel.
>
>
> --Hector Sanjuan
> OpenNebula Developer
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> 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