OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[Bug]: 执行 ov reindex 和 ov mv 命令返回:无法连接 OpenViking。服务器可能未启动,或当前配置指向了错误的 URL。

Open uuuuf9 opened this issue 3 months ago • 6 comments

Issue Origin

Observed or reproduced in a real environment

Bug Description

底层存储系统是通过对象存储来存储 openviking 中的 resources 资源,执行 ov reindex 或 ov mv 命令时返回 无法连接 OpenViking 日志 。下面以 ov reindex 命令为例。执行ov reindex 命令返回:无法连接 OpenViking。服务器可能未启动,或当前配置指向了错误的 URL。 错误日志截图如下:

Image

ov ls URL 命令结果截图:

Image

Steps to Reproduce

  1. 执行 ov --sudo reindex 或者执行 ov mv 命令

Expected Behavior

  1. 执行 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

uuuuf9 avatar Aug 10 '26 07:08 uuuuf9

cli 版本有更新吗?

qin-ctx avatar Aug 10 '26 07:08 qin-ctx

这个问题我记得修过

qin-ctx avatar Aug 10 '26 07:08 qin-ctx

执行下这个 npm i -g @openviking/cli 然后再试试,有问题再 reopen

qin-ctx avatar Aug 10 '26 07:08 qin-ctx

升级 cli 后,看着没有报连接错误的问题了。不过执行 reindex ,报 Failed to acquire tree lock 这个错误。执行 ov observer system ,也没有看到有任务在执行。

Image Image Image 错误日志:ov --sudo reindex viking://resources/3rd_rec/knowledge_base --mode vectors_only

╭─ OpenViking API 错误 ────────────────────────────────────────────────╮ │ [CONFLICT] Failed to acquire tree lock for │ │ ['/local/default/resources/3rd_rec/knowledge_base'] │ ╰──────────────────────────────────────────────────────────────────────╯

uuuuf9 avatar Aug 10 '26 08:08 uuuuf9

Failed to acquire tree lock for │ │ ['/local/default/resources/3rd_rec/knowledge_base'] │ 说明当前文件正在被其他任务占用中, 所以提示锁已存在

baojun-zhang avatar Aug 10 '26 08:08 baojun-zhang

重新执行 reindex 后,没有报 tree lock 。但报请求超时日志,同时 knowledge_base 目录下面多了个 .ovlock 文件

Image

uuuuf9 avatar Aug 10 '26 08:08 uuuuf9