[Bug]: 执行 ov reindex 和 ov mv 命令返回:无法连接 OpenViking。服务器可能未启动,或当前配置指向了错误的 URL。
Issue Origin
Observed or reproduced in a real environment
Bug Description
底层存储系统是通过对象存储来存储 openviking 中的 resources 资源,执行 ov reindex 或 ov mv 命令时返回 无法连接 OpenViking 日志 。下面以 ov reindex 命令为例。执行ov reindex 命令返回:无法连接 OpenViking。服务器可能未启动,或当前配置指向了错误的 URL。 错误日志截图如下:
ov ls URL 命令结果截图:
Steps to Reproduce
- 执行 ov --sudo reindex 或者执行 ov mv 命令
Expected Behavior
- 执行 ov --sudo reindex 和 ov mv 命令能够返回成功日志,并且日志中有 task_id 信息 2.执行 ov task list 能够查看 reindex 和 mv 进度
Actual Behavior
连接错误 ───────────────────────────────────────────────────────────╮ │ 无法连接 OpenViking。服务器可能未启动,或当前配置指向了错误的 URL。 │ ╰──────────────────────────────────────────────────────────────────────╯
Minimal Reproducible Example
Error Logs
OpenViking Version
openviking commit: 1c46d44fbcbfb4c40a8ce77f434f742c7354d1e8
Python Version
3.11.9
Operating System
Linux
Model Backend
None
Additional Context
No response
cli 版本有更新吗?
这个问题我记得修过
执行下这个 npm i -g @openviking/cli 然后再试试,有问题再 reopen
升级 cli 后,看着没有报连接错误的问题了。不过执行 reindex ,报 Failed to acquire tree lock 这个错误。执行 ov observer system ,也没有看到有任务在执行。
╭─ OpenViking API 错误 ────────────────────────────────────────────────╮ │ [CONFLICT] Failed to acquire tree lock for │ │ ['/local/default/resources/3rd_rec/knowledge_base'] │ ╰──────────────────────────────────────────────────────────────────────╯
Failed to acquire tree lock for │ │ ['/local/default/resources/3rd_rec/knowledge_base'] │ 说明当前文件正在被其他任务占用中, 所以提示锁已存在
重新执行 reindex 后,没有报 tree lock 。但报请求超时日志,同时 knowledge_base 目录下面多了个 .ovlock 文件