按照指引使用docker方式安装的,但是sql分析功能无法正常使用 #2606
Unanswered
xiaomifeng1010
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
在sql分析功能菜单,上传mapper.xml文件或者sql文件,点击开始分析,就提示未知错误,docker中的日志信息:
[2024-04-23 16:44:14,109][MainThread:140229173344064][task_id:default][exception_logging_middleware.py:12][ERROR]- Traceback (most recent call last):
File "/opt/archery/sql/plugins/plugin.py", line 73, in execute_cmd
p = subprocess.Popen(
File "/usr/local/python3/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/python3/lib/python3.9/subprocess.py", line 1744, in _execute_child
executable = os.fsencode(executable)
File "/usr/local/python3/lib/python3.9/os.py", line 810, in fsencode
filename = fspath(filename) # Does type-checking of
filename
.TypeError: expected str, bytes or os.PathLike object, not NoneType
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/venv4archery/lib/python3.9/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/opt/archery/sql/sql_analyze.py", line 79, in analyze
stdout, stderr = soar.execute_cmd(cmd_args).communicate()
File "/opt/archery/sql/plugins/plugin.py", line 83, in execute_cmd
raise RuntimeError("命令执行失败,失败原因:%s" % str(e))
RuntimeError: 命令执行失败,失败原因:expected str, bytes or os.PathLike object, not NoneType
Beta Was this translation helpful? Give feedback.
All reactions