Closed
Description
📦 部署环境
Docker
📌 软件版本
lobehub/lobe-chat-database:v1.44.0
💻 系统环境
Ubuntu
🌐 浏览器
Edge
🐛 问题描述
配置PROXY_URL后服务持续报错,页面打不开, 去掉后恢复正常,日志如下:
2025/01/08 11:21AM 30 | pid=28 hostname=508eb8ee8d51 msg=Error in tRPC handler (lambda) on path: aiProvider.getAiProviderRuntimeState, type: query
Error [TRPCError]: Connection terminated unexpectedly
at async (.next/server/chunks/14847.js:17:13034)
at async d.getAiProviderRuntimeConfig (.next/server/chunks/45485.js:3:3086)
at async (.next/server/chunks/45485.js:3:19318)
at async a.middlewares (.next/server/chunks/47885.js:1:5569)
at async f (.next/server/chunks/47885.js:4:68)
at async f (.next/server/chunks/47885.js:4:68)
at async f (.next/server/chunks/47885.js:4:68)
at async f (.next/server/chunks/47885.js:4:68) {
code: 'INTERNAL_SERVER_ERROR',
[cause]: Error: Connection terminated unexpectedly
at async (.next/server/chunks/14847.js:17:13034)
at async d.getAiProviderRuntimeConfig (.next/server/chunks/45485.js:3:3086)
at async (.next/server/chunks/45485.js:3:19318)
at async a.middlewares (.next/server/chunks/47885.js:1:5569)
at async f (.next/server/chunks/47885.js:4:68)
at async f (.next/server/chunks/47885.js:4:68)
at async f (.next/server/chunks/47885.js:4:68)
at async f (.next/server/chunks/47885.js:4:68)
}
2025/01/08 11:21AM 30 | pid=28 hostname=508eb8ee8d51 msg=Error in tRPC handler (lambda) on path: user.getUserState, type: query
启动命令:
docker run -d --name lobe-chat --restart=always \
-e APP_URL="http://10.10.10.7:3210" \
-e NEXT_AUTH_SSO_PROVIDERS=casdoor \
-e KEY_VAULTS_SECRET=p*****************= \
-e NEXT_AUTH_SECRET=p*****************= \
-e AUTH_URL="http://10.10.10.7:3210/api/auth" \
-e AUTH_CASDOOR_ISSUER="http://10.10.10.7:8000/" \
-e DATABASE_URL="postgresql://postgres:*****************@10.10.10.7:5432/lobechat" \
-e S3_ENDPOINT="http://10.10.10.7:9100" \
-e S3_BUCKET=lobe \
-e S3_PUBLIC_DOMAIN="http://10.10.10.7:9100" \
-e S3_ENABLE_PATH_STYLE=1 \
-e LLM_VISION_IMAGE_USE_BASE64=1 \
-e AUTH_CASDOOR_ID=a*****************9 \
-e AUTH_CASDOOR_SECRET=d*****************4 \
-e QWEN_API_KEY=sk-***************** -e GOOGLE_API_KEY=A*****************Q \
-e PROXY_URL=http://10.10.10.7:7890 \
-p 3210:3210 \
lobehub/lobe-chat-database
📷 复现步骤
No response
🚦 期望结果
No response
📝 补充信息
我要使用Google Gemini API,配置PROXY_URL后服务起不来 配置HTTP_PROXY和HTTPS_PROXY又不起作用
Metadata
Assignees
Type
Projects
Status
Done