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.
例行检查
你的版本
问题描述, 日志截图 数据库能否和fastgpt分开部署,测试分开部署后fastgpt无法连接到mongodb mongodb地址已修改成mongodb://myusername:mypassword@192.168.31.57:27017/fastgpt?authSource=admin(去掉?authSource=admin也不行) 复现步骤 直接修改de docker-compose.yml version: '3.3' services: fastgpt: container_name: fastgpt image: ghcr.io/labring/fastgpt:v4.8.3 ports:
root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
AI模型的API地址哦。务必加 /v1。这里默认填写了OneApi的访问地址。
AI模型的API Key。
数据库最大连接数
登录凭证密钥
root的密钥,常用于升级时候的初始化请求
文件阅读加密
MongoDB 连接参数. 用户名myusername,密码mypassword。
pg 连接参数
./fastgpt/docs:/app/projects/app/public/docs networks: fastgpt: 下面是报错信息 ▲ Next.js 14.2.3
✓ Starting... ✓ Ready in 670ms mongo start connect error-> mongo connect error u [MongooseServerSelectionError]: getaddrinfo ENOTFOUND mongo at S (/app/projects/app/.next/server/chunks/36016.js:40:71) at O.openUri (/app/projects/app/.next/server/chunks/36016.js:48:1206) at async r (/app/projects/app/.next/server/chunks/75612.js:134:19581) at async x (/app/projects/app/.next/server/pages/api/support/user/account/loginByPassword.js:1:2848) at async K (/app/nodemodules/.pnpm/next@14.2.3@babel+core@7.24.4_react-dom@18.3.1_react@18.3.1_sass@1.58.3/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:16853) at async U.render (/app/nodemodules/.pnpm/next@14.2.3@babel+core@7.24.4_react-dom@18.3.1_react@18.3.1_sass@1.58.3/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:17492) at async NextNodeServer.runApi (/app/nodemodules/.pnpm/next@14.2.3@babel+core@7.24.4_react-dom@18.3.1_react@18.3.1_sass@1.58.3/node_modules/next/dist/server/next-server.js:600:9) at async NextNodeServer.handleCatchallRenderRequest (/app/nodemodules/.pnpm/next@14.2.3@babel+core@7.24.4_react-dom@18.3.1_react@18.3.1_sass@1.58.3/node_modules/next/dist/server/next-server.js:269:37) at async NextNodeServer.handleRequestImpl (/app/nodemodules/.pnpm/next@14.2.3@babel+core@7.24.4_react-dom@18.3.1_react@18.3.1_sass@1.58.3/node_modules/next/dist/server/base-server.js:816:17) at async invokeRender (/app/nodemodules/.pnpm/next@14.2.3@babel+core@7.24.4_react-dom@18.3.1_react@18.3.1_sass@1.58.3/node_modules/next/dist/server/lib/router-server.js:174:21) { reason: m { type: 'ReplicaSetNoPrimary', servers: Map(1) { 'mongo:27017' => [l] }, stale: false, compatible: true, heartbeatFrequencyMS: 10000, localThresholdMS: 15, setName: 'rs0', maxElectionId: new ObjectId("7fffffff0000000000000006"), maxSetVersion: 1, commonWireVersion: 0, logicalSessionTimeoutMinutes: null }, code: undefined } [Error] 2024-06-14 05:34:17 Api response error: undefined, Operation (/app/projects/app/.next/server/chunks/36016.js:139:1390)\n' +
' at listOnTimeout (node:internal/timers:569:17)\n' +
' at process.processTimers (node:internal/timers:512:7)'
}
预期结果
希望数据库能和fastgpt分开部署
相关截图
users.findOne()
buffering timed out after 10000ms { message: 'Operationusers.findOne()
buffering timed out after 10000ms', stack: 'MongooseError: Operationusers.findOne()
buffering timed out after 10000ms\n' + ' at Timeout.