labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://tryfastgpt.ai
Other
17.48k stars 4.69k forks source link

从4.6.8升级到4.6.9后,访问MongoDB出现报错Transaction numbers are only allowed on a replica set member or mongos #1124

Closed shikaiwei1 closed 6 months ago

shikaiwei1 commented 6 months ago

例行检查

你的版本

问题描述 从4.6.8升级到4.6.9后,在“聊天”模块提问时,对话无法保存。 控制台提示如下报错:

{
  message: 'Transaction numbers are only allowed on a replica set member or mongos',
  stack: 'MongoBulkWriteError: Transaction numbers are only allowed on a replica set member or mongos\n' +
    '    at h (/app/projects/app/.next/server/chunks/75165.js:6:74632)\n' +
    '    at /app/projects/app/.next/server/chunks/75165.js:6:359597\n' +
    '    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)'
}

回退到4.6.8版本后,可以正常使用

部署环境

c121914yu commented 6 months ago

没用副本集

Toketec commented 2 months ago

简单开发运行,不想浪费精力安装多节点,偏要设置副本集?

Leif160519 commented 2 months ago

简单开发运行,不想浪费精力安装多节点,偏要设置副本集?

我也遇到了这个问题,感觉比较坑,非要副本集