-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
大佬数据库怎么配置啊一直报错 #64
Comments
可以看我写的教程, 有问题再问喽!具体见:Docker系列 基于OpenAI API和Access Token自建ChatGPT |
提示mongodb 帐号密码错误 ,这得看你怎么部署的 |
就是宝塔装的mongodb,一直报这个 |
大佬有没有详细点的教程 |
需要把你配置贴出来。 否则没办法看出,以及怎么部署的都不知道, 如果mongodb 是另外单独部署的 MONGODB_URL 检查这个字段的帐号密码 |
就是直接启动后端前端的 |
自己手动跑得话,进入文件夹 /service 下面有一个.env.example 重命名为 .env 把里面的注释按照填写 |
大佬,这个已经配置了 MONGODB_URL=mongodb://chatgpt:123456@127.0.0.1:27017 |
你是否存在已有数据库呢,如果是连接已有数据库 需要你已有的数据库的帐号密码哦,要已存在 chatgpt 数据库 已存在 chatgpt 账号 123456 密码 从报错来看就是 密码账号不对 |
大佬现在报这个
Server is running on port 3002 MongoServerError: Authentication failed. Node.js v18.12.0 |
Authentication failed. 看这个关键词就可以了 帐号密码错误 |
很简单的,如果已有数据库 可以用UI管理工具连上去,如果没有去用UI工具创建数据库以及帐号密码 |
好的大佬我去学习一下mongodb麻烦了,宝塔自带的感觉有点问题一直报错 |
大佬这个配置对不对啊,前端没有登录按钮 OpenAI API Key - https://platform.openai.com/overviewOPENAI_API_KEY=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 change this to an
|
大佬数据库怎么配置啊一直报错
Server is running on port 3002
/root/chatgpt-web/service/node_modules/.pnpm/mongodb@5.1.0/node_modules/mongodb/lib/cmap/connection.js:201
callback(new error_1.MongoServerError(document));
^
MongoServerError: Authentication failed.
at Connection.onMessage (/root/chatgpt-web/service/node_modules/.pnpm/mongodb@5.1.0/node_modules/mongodb/lib/cmap/connection.js:201:30)
at MessageStream. (/root/chatgpt-web/service/node_modules/.pnpm/mongodb@5.1.0/node_modules/mongodb/lib/cmap/connection.js:59:60)
at MessageStream.emit (node:events:513:28)
at MessageStream.emit (node:domain:489:12)
at processIncomingData (/root/chatgpt-web/service/node_modules/.pnpm/mongodb@5.1.0/node_modules/mongodb/lib/cmap/message_stream.js:124:16)
at MessageStream._write (/root/chatgpt-web/service/node_modules/.pnpm/mongodb@5.1.0/node_modules/mongodb/lib/cmap/message_stream.js:33:9)
at writeOrBuffer (node:internal/streams/writable:392:12)
at _write (node:internal/streams/writable:333:10)
at Writable.write (node:internal/streams/writable:337:10)
at Socket.ondata (node:internal/streams/readable:766:22) {
ok: 0,
code: 18,
codeName: 'AuthenticationFailed',
connectionGeneration: 0,
[Symbol(errorLabels)]: Set(2) { 'HandshakeError', 'ResetPool' }
}
Node.js v18.12.0
ELIFECYCLE Command failed with exit code 1.
The text was updated successfully, but these errors were encountered: