Skip to content
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

jumpserver1.4.4升级至1.4.10后的问题 #2685

Open
opstrip opened this issue May 10, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@opstrip
Copy link

commented May 10, 2019

[简述你的问题]
最开始部署的版本是1.3.2,后来按文档升级至1.4.4版本,使用了一段时间,除登录跳板机后需要连续敲多次回车才能搜索主机登录外无其他问题;
上周末升级到最新版本的1.4.10,升级过程无报错。升级完成后有2个问题:
1、新功能命令执行/批处理执行命令报错;
2、在权限管理 → 资产授权 节点,单击某台主机查看授权规则时有些主机会显示多个重复的授权规则条目;但以单独搜索重复的授权规则时只显示一条。

使用版本

[请提供你使用的Jumpserver版本 1.x.x 注: 0.3.x不再提供支持]

问题复现步骤
  1. [问题1] 在作业中心的批量命令,在资产列表任意数量主机,执行任意命令,均报以下错误:
    总共: 2个 等待... ---------- 任务开始 ---------- Task ops.tasks.run_command_execution[c82f5de2-a10e-4a6d-92fd-a4a9d5d941f0] raised unexpected: error('multiple repeat at position 13',) Traceback (most recent call last): File "/opt/py3/lib/python3.6/site-packages/celery/app/trace.py", line 374, intrace_task R = retval = fun(*args, **kwargs) File "/opt/py3/lib/python3.6/site-packages/celery/app/trace.py", line 629, in__protected_call__ return self.run(*args, **kwargs) File "/opt/jumpserver/apps/ops/tasks.py", line 47, in run_command_execution execution.run() File "/opt/jumpserver/apps/ops/models/command.py", line 61, in run ok, msg = self.run_as.is_command_can_run(self.command) File "/opt/jumpserver/apps/assets/models/user.py", line 225, in is_command_can_run action, matched_cmd = rule.match(command) File "/opt/jumpserver/apps/assets/models/cmd_filter.py", line 81, in match found = self._pattern.search(data) File "/opt/jumpserver/apps/assets/models/cmd_filter.py", line 75, in _pattern self.__pattern = re.compile(r'{}'.format('|'.join(regex))) File "/usr/local/lib/python3.6/re.py", line 233, in compile return _compile(pattern, flags) File "/usr/local/lib/python3.6/re.py", line 301, in _compile p = sre_compile.compile(pattern, flags) File "/usr/local/lib/python3.6/sre_compile.py", line 562, in compile p = sre_parse.parse(p, flags) File "/usr/local/lib/python3.6/sre_parse.py", line 855, in parse p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0) File "/usr/local/lib/python3.6/sre_parse.py", line 416, in _parse_sub not nested and not items)) File "/usr/local/lib/python3.6/sre_parse.py", line 619, in _parse source.tell() - here + len(this)) sre_constants.error: multiple repeat at position 13
    见 error-1

  2. [问题2] 见 error-2

具体表现[截图可能会更好些,最好能截全]

error-1
error-2

其他

资产列表有概率显示不出,需要刷新很多次;使用WEB终端或SSH终端时,速度较1.4.4慢很多。

[注:] 完成后请关闭 issue

@zhouzhenhua

This comment has been minimized.

Copy link

commented May 14, 2019

加个QQ指导一下升级1.4.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.