This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
解决错误:go-chatgpt-api | ERRO[0000] Failed to start, please try again later. #258
Closed
tianlichunhong
started this conversation in
General
Replies: 2 comments 3 replies
-
扯淡
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Failed to start, please try again later的问题,我用代理立马起来了。如果不用代理,则一直起不来。我已经在不同的时段都尝试了。
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
经过反复尝试,终于知道为什么docker起不来。因为我是用VPS部署的
1、你的VPS已经被openai封杀了。这种情况,哪怕是curl -v https://chat.openai.com来测试都测试不出来。我测试发现一切正常。当我使用了代理ROXY=socks5://127.0.0.1:3708,就终于起来了。
2、起来后,依然没有出现下面这个语句:go-chatgpt-api | INFO[0000] Service go-chatgpt-api is ready. 测试发现服务器也是不正常的。我之前配置使用的是 ports: - 8080:8080。我改成了network_mode: host。服务就一切正常了。
下面是我用docker-compose启用的最终脚本。
version: "3"
services:
go-chatgpt-api:
container_name: go-chatgpt-api
image: linweiyuan/go-chatgpt-api
network_mode: host
environment:
- PROXY=socks5://127.0.0.1:3708
restart: unless-stopped
但是这个无法换端口,而且我也不想将端口对外暴露。请问我该如何解决?
Beta Was this translation helpful? Give feedback.
All reactions