我遇到了些问题
Closed this issue · 4 comments
Akatsuki-Misaki commented
前置确认
- 我确认我的网络可以访问openai,使用的是最新脚本,并且服务器规格 > 1C1G
⚠️ 搜索issues中是否已存在类似问题
- 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue
操作系统类型?
Ubuntu
复现步骤 🕹
安装aapanel后安装lnmp环境
将带后台的chatgpt-web的env复制过来编辑
执行一键部署脚本
其中数据库的编辑为MONGODB_URL=mongodb://chatgpt:lolicon@127.0.0.1:27017
若使用一键脚本中的env只编辑apikey则无法构建以及启动
部署完成后aapanel的nginx进行配置调整,将api反代到3002
进入网站显示500
问题描述 😯
网站显示500
api/session的json为
{"status":"Fail","message":"Topology is closed","data":null}
终端日志 📒
root@VM-0-6-ubuntu:/data/chatgpt-web# bash -c "$(wget -q -O- https://raw.githubusercontent.com/dqzboy/ChatGPT/main/ChatGPT-Web-Admin/install/ChatGPT-Web-Admin_U.sh)"
██████╗██╗ ██╗ █████╗ ████████╗ ██████╗ ██████╗ ████████╗ ██╗ ██╗███████╗██████╗
██╔════╝██║ ██║██╔══██╗╚══██╔══╝██╔════╝ ██╔══██╗╚══██╔══╝ ██║ ██║██╔════╝██╔══██╗
██║ ███████║███████║ ██║ ██║ ███╗██████╔╝ ██║ ██║ █╗ ██║█████╗ ██████╔╝
██║ ██╔══██║██╔══██║ ██║ ██║ ██║██╔═══╝ ██║ ██║███╗██║██╔══╝ ██╔══██╗
╚██████╗██║ ██║██║ ██║ ██║ ╚██████╔╝██║ ██║ ╚███╔███╔╝███████╗██████╔╝
╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚══╝╚══╝ ╚══════╝╚═════╝
Checking server memory resources. Please wait.
Memory resources are sufficient. Please continue.
[/] >>>>> Done
------------------------------------< Firewall detection. >-------------------------------------
Firewall is already disabled.
[\] >>>>> Done
------------------------------------< 项目克隆 >-------------------------------------
请选择要克隆的仓库:
1. Chanzhaoyu/chatgpt-web[不带用户中心]
2. Kerwin1202/chatgpt-web[带用户中心]
2
请选择您的服务器网络环境:
1. 国外
2. 国内
1Cloning into 'chatgpt-web'...
remote: Enumerating objects: 4869, done.
remote: Total 4869 (delta 0), reused 0 (delta 0), pack-reused 4869
Receiving objects: 100% (4869/4869), 7.34 MiB | 17.89 MiB/s, done.
Resolving deltas: 100% (2491/2491), done.
[-] >>>>> Done
------------------------------------< Nginx detection and installation. >-------------------------------------
Nginx is already installed.
Nginx is already running.
[\] >>>>> Done
------------------------------------< Node.js detection and installation. >-------------------------------------
Node.js 已安装...
pnpm 已安装...
[-] >>>>> Done
------------------------------------< Check MongoDB and install it. >-------------------------------------
MongoDB installed.
MongoDB 启动成功
是否创建 MongoDB 用户?[y/n] y
请输入 MongoDB 用户名:chatgpt
请输入 MongoDB 密码:
MongoDB 用户已创建。
[-] >>>>> Done
------------------------------------< 构建之前请先指定Nginx根路径! >-------------------------------------
WEB存储绝对路径[上次记录:/www/wwwroot/chatgpt 回车用上次记录]:
chatGPT-WEB存储路径:/www/wwwroot/chatgpt
------------------------------------< 构建之前请先命名你的网站标题! >-------------------------------------
网站标题[上次记录:kongjiang的GPT3聊天室 回车用上次记录]:
网站标题命名为:kongjiang的GPT3聊天室
------------------------------------< 开始进行构建.构建快慢取决于你的环境 >-------------------------------------
-----------------------------------<前端构建>-----------------------------------
《前端构建中,请稍等...》
(!) Some chunks are larger than 500 kBs after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 1m 21s
-------------------------------------< END >-------------------------------------
------------------------------------<后端构建>-----------------------------------
《后端构建中,请稍等...》
CJS ⚡️ Build success in 612ms
-------------------------------------< END >-------------------------------------
是否修改Nginx配置[y/n](通过本脚本部署的Nginx可选择 y):n
You chose no.
-----------------------------------<后端部署>-----------------------------------
Service Copy Success
后端程序未运行,启动中...
WEB Copy Success
chatgpt-web后端服务已成功启动
-----------------------------------<前端部署>-----------------------------------
nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /www/server/nginx/conf/nginx.conf test is successful
--------------------------------------------------------------------------------
访问网站:http://your_vps_ip:80
-----------------------------------<部署完成>-----------------------------------
root@VM-0-6-ubuntu:/data/chatgpt-web#
dqzboy commented
手动配置nginx 代理后端接口;确保配置没有问题
Akatsuki-Misaki commented
dqzboy commented
看下nginx的日志
Akatsuki-Misaki commented
看了一下是数据库的配置出现了问题,一键脚本貌似并不能正常新增用户,我手动安装并重新配置数据库后这个问题得以解决
非常感谢您的帮助