labring / labring/FastGPT

Milvus BM25 全文检索无法正常执行迁移步骤

Open
#7,641 19 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
29.6k
Forks
7.3k
Avg merge
1d 7h
Merged PRs (30d)
152

Description

**例行检查**

[//]: # '方框内填 x 表示打钩'

- [x] 我已确认目前没有类似 issue
- [x] 我已完整查看过项目 README,以及[项目文档](https://doc.fastgpt.io/introduction/)
- [x] 我使用了自己的 key,并确认我的 key 是可正常使用的
- [x] 我理解并愿意跟进此 issue,协助测试和提供反馈
- [x] 我理解并认可上述内容,并理解项目维护者精力有限,**不遵循规则的 issue 可能会被无视或直接关闭**

**你的版本**

- [ ] 公有云版本
- [x] 私有部署版本, 具体版本号: `v4.16.2`

**问题描述, 日志截图,配置文件等**
我原来的版本是`milvusdb/milvus:v2.5.9`,于是,我直接升级到`milvusdb/milvus:v2.6.22`,然后重启fastgpt(此时是`v4.16.1`版本),一切正常
随后,我将fastgpt升级到`v4.16.2`,日志输出的版本信息:
`2026-09-02 10:26:48 INF infra:vector Milvus version verified: { version: '2.6.22' }`
然后直接报错如下:
```
System initialization step failed {
step: 'init-vector-store',
stage: 'vectordb_error',
errorMessage: 'ErrorCode: IndexNotExist. Reason: index not found[collection=modeldata_v2]',
errorName: 'Error',
errorCode: undefined,
errorStage: undefined,
errorStep: undefined,
errorStack: 'Error: ErrorCode: IndexNotExist. Reason: index not found[collection=modeldata_v2]\n' +
' at MilvusClient. (/app/node_modules/.pnpm/@zilliz+milvus2-sdk-node@2.6.17_bufferutil@4.1.0_utf-8-validate@5.0.10/node_modules/@zilliz/milvus2-sdk-node/dist/milvus/grpc/Collection.js:610:23)\n' +
' at Generator.next ()\n' +
' at fulfilled (/app/node_modules/.pnpm/@zilliz+milvus2-sdk-node@2.6.17_bufferutil@4.1.0_utf-8-validate@5.0.10/node_modules/@zilliz/milvus2-sdk-node/dist/milvus/grpc/Collection.js:5:58)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:104:5)',
errorCause: undefined,
errorDetails: 'Error: ErrorCode: IndexNotExist. Reason: index not found[collection=modeldata_v2]\n' +
' at Generator.next ()'
}
```
后续的如下操作,我都无法进行,因为无法启动:
```
# 1. dry-run 先看统计
curl 'http://host/api/admin/4162/milvus?dryRun=1' \
-H 'rootkey: 你的ROOT_KEY'

# 2. 正式迁移
curl 'http://host/api/admin/4162/milvus?batchSize=500' \
-H 'rootkey: 你的ROOT_KEY'

# 3. 若请求被网关超时中断,用返回的 migrationId 续跑
curl 'http://host/api/admin/4162/milvus?resumeMigrationId=' \
-H 'rootkey: 你的ROOT_KEY'
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the init-vector-store startup step and the Milvus migration endpoints shown in the issue, reproducing the failure with Milvus 2.6.22 and FastGPT v4.16.2. Trace the modeldata_v2 IndexNotExist error and verify that startup completes, dry-run returns statistics, and migration and resume requests can run successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.