New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jumpserver3.2版本在使用过程中,vim或者cat文件,有时候会出现报错,list assignment index out of range然后需要重连才行 #803

Closed
shimeibing opened this Issue Nov 14, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@shimeibing

shimeibing commented Nov 14, 2017

[简述你的问题]

使用版本

[请提供你使用的Jumpserver版本 0.3.2 或 0.4.0]
0.3.2版本

问题复现步骤
  1. [步骤1]
    不是每次都出现
  2. [步骤2]
具体表现[截图可能会更好些,最好能截全]
其他

[注:] 完成后请关闭 issue

@shimeibing

This comment has been minimized.

Show comment
Hide comment
@shimeibing

shimeibing commented Nov 14, 2017

jumpserver

@shimeibing

This comment has been minimized.

Show comment
Hide comment
@shimeibing

shimeibing Dec 1, 2017

这是堆栈错误信息,能帮忙看一下吗?
2017-12-01 18:25:44,057 - connect.py - ERROR - ==> posix shell error: list assignment index out of range
Traceback (most recent call last):
File "/opt/jumpserver-0.3.2/connect.py", line 341, in posix_shell
termlog.write(x)
File "/opt/jumpserver-0.3.2/jlog/views.py", line 247, in write
self._stream.feed(msg)
File "/usr/lib/python2.7/site-packages/pyte/streams.py", line 378, in feed
return super(ByteStream, self).feed(chars)
File "/usr/lib/python2.7/site-packages/pyte/streams.py", line 166, in feed
send(char)
File "/usr/lib/python2.7/site-packages/pyte/streams.py", line 318, in _parser_fsm
dispatch("draw", char)
File "/usr/lib/python2.7/site-packages/pyte/streams.py", line 215, in dispatch
handler(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pyte/screens.py", line 448, in draw
line[self.cursor.x + 1] = self.cursor.attrs._replace(data=" ")
IndexError: list assignment index out of range
"jumpserver.log" 18913L, 154310438C

shimeibing commented Dec 1, 2017

这是堆栈错误信息,能帮忙看一下吗?
2017-12-01 18:25:44,057 - connect.py - ERROR - ==> posix shell error: list assignment index out of range
Traceback (most recent call last):
File "/opt/jumpserver-0.3.2/connect.py", line 341, in posix_shell
termlog.write(x)
File "/opt/jumpserver-0.3.2/jlog/views.py", line 247, in write
self._stream.feed(msg)
File "/usr/lib/python2.7/site-packages/pyte/streams.py", line 378, in feed
return super(ByteStream, self).feed(chars)
File "/usr/lib/python2.7/site-packages/pyte/streams.py", line 166, in feed
send(char)
File "/usr/lib/python2.7/site-packages/pyte/streams.py", line 318, in _parser_fsm
dispatch("draw", char)
File "/usr/lib/python2.7/site-packages/pyte/streams.py", line 215, in dispatch
handler(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pyte/screens.py", line 448, in draw
line[self.cursor.x + 1] = self.cursor.attrs._replace(data=" ")
IndexError: list assignment index out of range
"jumpserver.log" 18913L, 154310438C

@ibuler ibuler closed this Jan 10, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment