liftoff / GateOne

Gate One is an HTML5-powered terminal emulator and SSH client
http://liftoffsoftware.com/Products/GateOne
Other
6.28k stars 925 forks source link

Error/Unknown WebSocket action, terminal:new_terminal issue with python 2.7.3 #450

Open das-at-github opened 10 years ago

das-at-github commented 10 years ago

$ python -V Python 2.7.3

$ python -c "import tornado; print(tornado.version)" 3.2.2

Startup messages: . . . [W 140714 09:57:16 appterminal:2720] dtach command not found. dtach support has been disabled. [I 140714 09:57:18 server:4026] Imported applications: Terminal [I 140714 09:57:18 server:4168] Version: 1.2.0 (20140516085214) [I 140714 09:57:18 server:4169] Tornado version 3.2.2 [I 140714 09:57:18 server:4189] Connections to this server will be allowed from the following origins: '' [I 140714 09:57:18 server:3707] No authentication method configured. All users will be ANONYMOUS [I 140714 09:57:18 server:3834] Loaded global plugins: help.js [I 140714 09:57:18 server:4301] Listening on https://_:443/ [I 140714 09:57:18 server:4321] Process running with pid 15699 [I 140714 09:57:19 app_terminal:263] Active Terminal Plugins: bookmarks, cmd_replacement_plugin, convenience, html, logging, notice, playback, ssh [I 140714 09:57:19 server:1764] WebSocket opened (ANONYMOUS 3.231.218.23) via origin app-dev-01. . . .

When trying the first ssh terminal, we see this error:

[E 140714 09:45:19 server:1873] Error/Unknown WebSocket action, terminal:new_terminal: 'ssh_user' (/python/Python-2.7.3-ssl/lib/python2.7/site-packages/gateone-1.2.0-py2.7.egg/gateone/applications/terminal/plugins/myplugin/cmd_replacement_plugin.py line 13) [I 140714 09:45:19 app_terminal:1682] {"application": "terminal", "columns": 136, "em_dimensions": {"h": 14.05859375, "w": 7.00390625}, "ip_address": "3.231.218.23", "location": "default", "rows": 41, "term": "1", "upn": "ANONYMOUS"} Resizing Terminal: 1 [I 140714 09:45:21 server:1988] {"ip_address": "3.231.218.23", "location": "default", "upn": "ANONYMOUS"} Client Logging: 2014-07-14 09:45:21 INFO PONG: Gate One server round-trip latency: 6ms [E 140714 09:45:22 app_terminal:1766] {"application": "terminal", "ip_address": "3.231.218.23", "location": "default", "upn": "ANONYMOUS"} Got exception trying to write_chars() to terminal 1 [E 140714 09:45:22 app_terminal:1767] {"application": "terminal", "ip_address": "3.231.218.23", "location": "default", "upn": "ANONYMOUS"} u'multiplex' Traceback (most recent call last): File "/python/Python-2.7.3-ssl/lib/python2.7/site-packages/gateone-1.2.0-py2.7.egg/gateone/applications/terminal/app_terminal.py", line 1761, in write_chars self.char_handler(message['chars'], message['term']) File "/python/Python-2.7.3-ssl/lib/python2.7/site-packages/gateone-1.2.0-py2.7.egg/gateone/auth/authorization.py", line 135, in wrapped_f return f(self, _args, *_kwargs) File "/python/Python-2.7.3-ssl/lib/python2.7/site-packages/gateone-1.2.0-py2.7.egg/gateone/applications/terminal/app_terminal.py", line 1732, in char_handler multiplex = self.loc_terms[term]['multiplex'] KeyError: u'multiplex'

Anyone seen this or know a fix for it?

das-at-github commented 10 years ago

i believe this may have been a result of our Python installation not having 'readline' library installed.

Please add that to the dependency list for GateOne if not already there.