Skip to content

Total size of all transaction operations must be less than 16793600 #6924

Description

@ganlanshugod

例行检查

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

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号: V4.12.3

问题描述, 日志截图,配置文件等
我在知识库中上传一个8M左右的excel文件, 显示训练异常

Image

后台会出现错误日志:
[Info] 2026-05-12 09:55:01 [Parse Queue] Start
Warning: Cannot access the require function: "TypeError: process.getBuiltinModule is not a function".
Warning: Cannot polyfill DOMMatrix, rendering may be broken.
Warning: Cannot polyfill ImageData, rendering may be broken.
Warning: Cannot polyfill Path2D, rendering may be broken.
[Info] 2026-05-12 09:55:08 Upload file success 1bf862ca8846a0f15e7d58191b2db767.jpg, cost 462ms
[Info] 2026-05-12 09:55:08 Upload file success 70a509f72339caae6d0bd62ab53c501d.jpg, cost 262ms
[Info] 2026-05-12 09:55:09 Upload file success 882b32e7b3490b501253154239b4de4c.jpg, cost 273ms
[Info] 2026-05-12 09:55:10 Upload file success b02fa695511631cfcb0c27e5e2320e50.jpg, cost 238ms
[Info] 2026-05-12 09:55:11 Upload file success c1ac9a14089de60d5ce1395dcaacf845.jpg, cost 351ms
[Info] 2026-05-12 09:55:11 Upload file success c28ac263469aed659fed8602ba736c29.jpg, cost 235ms
[Info] 2026-05-12 09:55:12 Upload file success d5edf69bfdc6a069f1f3bd6f84ee02f9.jpg, cost 235ms
[Info] 2026-05-12 09:55:13 Upload file success 1d5c6f527d73efcc4a7ccaf24253f2da.jpg, cost 453ms
[Info] 2026-05-12 09:55:13 Upload file success 5a769a34fc2ac9f1858d3c347a105eb7.jpg, cost 13ms
[Info] 2026-05-12 09:55:14 Upload file success a419e01e74b951bef6d9cda8ee85d0c4.jpg, cost 261ms
[Info] 2026-05-12 09:55:20 Worker readFile run time: 19223ms
[Info] 2026-05-12 09:55:22 Worker text2Chunks run time: 1826ms
[Warn] 2026-05-12 09:55:24 Slow operation 1361ms {"collectionName":"dataset_trainings","duration":1361}
[Error] 2026-05-12 09:55:25 Insert error
{
message: 'Total size of all transaction operations must be less than 16793600. Actual size is 16794248',
stack: 'MongoBulkWriteError: Total size of all transaction operations must be less than 16793600. Actual size is 16794248\n' +
' at g (/app/projects/app/.next/server/chunks/38210.js:8:126560)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async b.execute (/app/projects/app/.next/server/chunks/38210.js:8:129296)\n' +
' at async d (/app/projects/app/.next/server/chunks/38210.js:12:37746)\n' +
' at async p (/app/projects/app/.next/server/chunks/38210.js:12:35722)\n' +
' at async s.execute (/app/projects/app/.next/server/chunks/38210.js:8:134055)\n' +
' at async o.execute (/app/projects/app/.next/server/chunks/38210.js:12:13457)\n' +
' at async p.execute (/app/projects/app/.next/server/chunks/38210.js:12:49327)\n' +
' at async d (/app/projects/app/.next/server/chunks/38210.js:12:37746)\n' +
' at async p (/app/projects/app/.next/server/chunks/38210.js:12:35722)'
}
[Error] 2026-05-12 09:55:25 [Parse Queue] Error
{
message: 'Total size of all transaction operations must be less than 16793600. Actual size is 16794248',
stack: 'MongoBulkWriteError: Total size of all transaction operations must be less than 16793600. Actual size is 16794248\n' +
' at g (/app/projects/app/.next/server/chunks/38210.js:8:126560)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async b.execute (/app/projects/app/.next/server/chunks/38210.js:8:129296)\n' +
' at async d (/app/projects/app/.next/server/chunks/38210.js:12:37746)\n' +
' at async p (/app/projects/app/.next/server/chunks/38210.js:12:35722)\n' +
' at async s.execute (/app/projects/app/.next/server/chunks/38210.js:8:134055)\n' +
' at async o.execute (/app/projects/app/.next/server/chunks/38210.js:12:13457)\n' +
' at async p.execute (/app/projects/app/.next/server/chunks/38210.js:12:49327)\n' +
' at async d (/app/projects/app/.next/server/chunks/38210.js:12:37746)\n' +
' at async p (/app/projects/app/.next/server/chunks/38210.js:12:35722)'
}
[Info] 2026-05-12 09:55:25 [Parse Queue] Start
Warning: Cannot access the require function: "TypeError: process.getBuiltinModule is not a function".
Warning: Cannot polyfill DOMMatrix, rendering may be broken.
Warning: Cannot polyfill ImageData, rendering may be broken.
Warning: Cannot polyfill Path2D, rendering may be broken.
[Info] 2026-05-12 09:55:28 Worker text2Chunks run time: 1740ms
[Error] 2026-05-12 09:55:30 Insert error
{
message: 'Total size of all transaction operations must be less than 16793600. Actual size is 16794248',
stack: 'MongoBulkWriteError: Total size of all transaction operations must be less than 16793600. Actual size is 16794248\n' +
' at g (/app/projects/app/.next/server/chunks/38210.js:8:126560)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async b.execute (/app/projects/app/.next/server/chunks/38210.js:8:129296)\n' +
' at async d (/app/projects/app/.next/server/chunks/38210.js:12:37746)\n' +
' at async p (/app/projects/app/.next/server/chunks/38210.js:12:35722)\n' +
' at async s.execute (/app/projects/app/.next/server/chunks/38210.js:8:134055)\n' +
' at async o.execute (/app/projects/app/.next/server/chunks/38210.js:12:13457)\n' +
' at async p.execute (/app/projects/app/.next/server/chunks/38210.js:12:49327)\n' +
' at async d (/app/projects/app/.next/server/chunks/38210.js:12:37746)\n' +
' at async p (/app/projects/app/.next/server/chunks/38210.js:12:35722)'
}
[Error] 2026-05-12 09:55:30 [Parse Queue] Error
{
message: 'Total size of all transaction operations must be less than 16793600. Actual size is 16794248',
stack: 'MongoBulkWriteError: Total size of all transaction operations must be less than 16793600. Actual size is 16794248\n' +
' at g (/app/projects/app/.next/server/chunks/38210.js:8:126560)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async b.execute (/app/projects/app/.next/server/chunks/38210.js:8:129296)\n' +
' at async d (/app/projects/app/.next/server/chunks/38210.js:12:37746)\n' +
' at async p (/app/projects/app/.next/server/chunks/38210.js:12:35722)\n' +
' at async s.execute (/app/projects/app/.next/server/chunks/38210.js:8:134055)\n' +
' at async o.execute (/app/projects/app/.next/server/chunks/38210.js:12:13457)\n' +
' at async p.execute (/app/projects/app/.next/server/chunks/38210.js:12:49327)\n' +
' at async d (/app/projects/app/.next/server/chunks/38210.js:12:37746)\n' +
' at async p (/app/projects/app/.next/server/chunks/38210.js:12:35722)'
}
[Info] 2026-05-12 09:55:30 [Parse Queue] Start
Warning: Cannot access the require function: "TypeError: process.getBuiltinModule is not a function".
Warning: Cannot polyfill DOMMatrix, rendering may be broken.
Warning: Cannot polyfill ImageData, rendering may be broken.
Warning: Cannot polyfill Path2D, rendering may be broken.
[Info] 2026-05-12 09:55:33 Worker text2Chunks run time: 1919ms
[Error] 2026-05-12 09:55:35 Insert error
{
message: 'Total size of all transaction operations must be less than 16793600. Actual size is 16794248',
stack: 'MongoBulkWriteError: Total size of all transaction operations must be less than 16793600. Actual size is 16794248\n' +
' at g (/app/projects/app/.next/server/chunks/38210.js:8:126560)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async b.execute (/app/projects/app/.next/server/chunks/38210.js:8:129296)\n' +
' at async d (/app/projects/app/.next/server/chunks/38210.js:12:37746)\n' +
' at async p (/app/projects/app/.next/server/chunks/38210.js:12:35722)\n' +
' at async s.execute (/app/projects/app/.next/server/chunks/38210.js:8:134055)\n' +
' at async o.execute (/app/projects/app/.next/server/chunks/38210.js:12:13457)\n' +
' at async p.execute (/app/projects/app/.next/server/chunks/38210.js:12:49327)\n' +
' at async d (/app/projects/app/.next/server/chunks/38210.js:12:37746)\n' +
' at async p (/app/projects/app/.next/server/chunks/38210.js:12:35722)'
}
[Error] 2026-05-12 09:55:35 [Parse Queue] Error
{
message: 'Total size of all transaction operations must be less than 16793600. Actual size is 16794248',
stack: 'MongoBulkWriteError: Total size of all transaction operations must be less than 16793600. Actual size is 16794248\n' +
' at g (/app/projects/app/.next/server/chunks/38210.js:8:126560)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async b.execute (/app/projects/app/.next/server/chunks/38210.js:8:129296)\n' +
' at async d (/app/projects/app/.next/server/chunks/38210.js:12:37746)\n' +
' at async p (/app/projects/app/.next/server/chunks/38210.js:12:35722)\n' +
' at async s.execute (/app/projects/app/.next/server/chunks/38210.js:8:134055)\n' +
' at async o.execute (/app/projects/app/.next/server/chunks/38210.js:12:13457)\n' +
' at async p.execute (/app/projects/app/.next/server/chunks/38210.js:12:49327)\n' +
' at async d (/app/projects/app/.next/server/chunks/38210.js:12:37746)\n' +
' at async p (/app/projects/app/.next/server/chunks/38210.js:12:35722)'

复现步骤
上传指定大小的文件就肯定会出现

预期结果

相关截图

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions