lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
42.32k stars 9.57k forks source link

[Bug] Nginx反代又出现问题了 #4270

Open chung1912 opened 5 days ago

chung1912 commented 5 days ago

📦 部署环境

Docker

📌 软件版本

v1.21.6(Database版)

💻 系统环境

Other Linux

🌐 浏览器

Chrome

🐛 问题描述

升级v1.21.6之后,反代出现502错误,nginx日志: *196 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.88, server: lobechat, request: "GET /chat HTTP/2.0", upstream: "http://172.88.0.22:3210/chat", host: "192.168.1.88:3210" 后台没有任何记录: image 之前的版本没问题

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

lobehubbot commented 5 days ago

👀 @chung1912

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

dosubot[bot] commented 5 days ago

I found some similar issues and discussions that might help you resolve the 502 error with Nginx reverse proxy:

  1. In a closed issue, a similar problem was resolved by modifying the Nginx configuration. The solution involved changing the location / {} part in the Nginx configuration file to include specific proxy settings. You can refer to the detailed configuration here [1].

  2. Another closed issue suggested commenting out the line proxy_buffering off; in the Nginx configuration to resolve an initialization failure problem [2].

These solutions might be applicable to your situation, especially if the error started occurring after an upgrade. Make sure to check your Nginx configuration and adjust it according to the solutions provided in these issues.

To continue talking to Dosu, mention @dosu.

dosubot[bot] commented 5 days ago

I found some similar issues and discussions that might help you resolve the 502 error you're encountering after upgrading to version v1.21.6:

  1. A closed issue titled "[Bug] 用Nginx 进行反代,出现初始化失败问题" suggested that the problem was resolved by commenting out the line proxy_buffering off; in the Nginx configuration [1].

  2. Another closed issue, "卡在LobeChat is initializing, please wait...", was resolved by modifying the Nginx reverse proxy configuration. The solution involved updating the /etc/nginx/sites-available/chat.baitu.icu.conf file with a specific configuration to handle proxy settings and caching [2].

These solutions might be applicable to your situation, especially if the Nginx configuration needs adjustments after the upgrade. You might want to check your Nginx configuration and see if similar changes could resolve the issue.

To continue talking to Dosu, mention @dosu.