Bug #1201

VNC reconnect to same VM fails

Added by Hector Sanjuan over 9 years ago. Updated almost 9 years ago.

Status:ClosedStart date:03/31/2012
Priority:NormalDue date:
Assignee:Hector Sanjuan% Done:

0%

Category:Sunstone
Target version:Release 3.8
Resolution:worksforme Pull request:
Affected Versions:OpenNebula 3.2

Description

User report in user list


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(addrs0[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.


Related issues

Related to Feature #1209: Improve VNC proxying system Closed 04/09/2012

History

#1 Updated by Hector Sanjuan over 9 years ago

  • Status changed from New to Assigned
  • Resolution set to worksforme

#2 Updated by Ruben S. Montero about 9 years ago

  • Target version set to Release 3.6

#3 Updated by Ruben S. Montero about 9 years ago

  • Target version changed from Release 3.6 to Release 3.8

#4 Updated by Hector Sanjuan almost 9 years ago

  • Status changed from Assigned to Closed

I'm closing this issue as Feature #1209 is mostly ready and should solve any reconnect problems like this.

Also available in: Atom PDF