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
39.91k stars 9.08k forks source link

[Bug] Docker 容器崩溃当访问 localhost:3210时 #462

Closed hengqujushi closed 9 months ago

hengqujushi commented 9 months ago

💻 系统环境 | Operating System

macOS

🌐 浏览器 | Browser

Chrome

🐛 问题描述 | Bug Description

成功启动 Docker 容器后,当尝试访问 localhost:3210 页面时,容器会意外地退出。报错如下 image

🚦 期望结果 | Expected Behavior

预期在访问 localhost:3210 时能够正常加载页面,不会导致 Docker 容器退出。

📷 复现步骤 | Recurrence Steps

使用 docker run -it -p 3210:3210 ... 命令启动 Docker 容器。 容器成功启动后,打开浏览器并访问 localhost:3210。 页面无法加载,并且 Docker 容器退出。

📝 补充信息 | Additional Information

项目不包含自定义的 server.js 文件,但 Dockerfile 中的 CMD 使用了 ["node", "server.js"] 启动命令。 当从 Docker 容器中移除对 server.js 的引用后,问题依旧存在。 问题可能与 Next.js 应用程序的 Service Worker 配置有关。 提交此问题时,没有能够提供更多的日志信息,因为 Docker 容器在崩溃时没有输出更多的错误信息。

lobehubbot commented 9 months ago

👀 @hengqujushi

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

arvinxx commented 9 months ago

docker版本?

lobehubbot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


docker version?

hengqujushi commented 9 months ago

"You're currently on version 4.22.0 (117440). The latest version is 4.25.1 (128006)."

之前是4.22.0 (117440),不行,升级到4.25.1 (128006),也还是一样。

hengqujushi commented 9 months ago

image

arvinxx commented 9 months ago

这个看样子没问题呀,你试过匿名状态访问么

lobehubbot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This seems to be fine. Have you tried anonymous access?

hengqujushi commented 9 months ago

“匿名状态访问”是指?

lobehubbot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


What does "anonymous access" mean?

arvinxx commented 9 months ago

“匿名状态访问”是指?

浏览器匿名模式

lobehubbot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


What does "anonymous status access" mean?

Browser anonymous mode

hengqujushi commented 9 months ago

https://github.com/lobehub/lobe-chat/assets/2217955/300d4ba2-4d08-47ba-b84e-796742c38303

you can see this video.

arvinxx commented 9 months ago

pc 模式下正常吗?只是 mobile 下有问题还是都有问题?

lobehubbot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Is it normal in pc mode? Is it just a problem on mobile or is it a problem for everyone?

hengqujushi commented 9 months ago

这个就是Mac Pro上的啊

lobehubbot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This is from the Mac Pro

lobehubbot commented 9 months ago

👋 @{{ github.event.issue.user.login }}
Since the issue was labeled with 🤔 Need Reproduce, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.\ 由于该 issue 被标记为需要更多信息,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

lobehubbot commented 9 months ago

✅ @hengqujushi

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。