liftoff/GateOne — Issue #34: Disconnect/reconnect looping error
Author: owens-bill
Created: 2011-10-21 02:06:53+00:00
State: open

Twice tonight with the latest code on Ubuntu 11.04/Python 2.7.1+ I got a few logins open and then saw the "communications disruption" message, along with a list of the open terminals in the lower right corner, and a cycle of the terminal reappearing, then the erorr, etc. This block of messages was logged each time the cycle repeated:

INFO:root:WebSocket opened (%anonymous).
ERROR:root:Uncaught exception in /ws
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/websocket.py", line 170, in wrapper
return callback(*args, **kwargs)
File "./gateone.py", line 365, in on_message
self.commands[key](value)
File "./gateone.py", line 614, in kill_terminal
SESSIONS[self.session][term]['multiplex'].proc_kill()
File "/opt/gateone/termio.py", line 324, in proc_kill
except (IOError, OSError):
UnboundLocalError: local variable 'IOError' referenced before assignment
INFO:root:WebSocket closed (%anonymous).

I can't tell if this is related to a specific login but I don't think so. It may have to do with the number of sessions I have open, though it seemed to appear with both three and four open. I'm afraid that I can't interpret the errors at all, but if there's anything I can do to test, let me know. . .