ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
72.69k stars 57.75k forks source link

[Bug] 更新docker 镜像 v2.12.3 之后 #4740

Open sunghoppe opened 1 month ago

sunghoppe commented 1 month ago

Bug Description

日志提示:[Build Config] No git or not from git repo.,无法访问nextchat

Steps to Reproduce

部署完毕之后,点击反代域名访问

Expected Behavior

正常访问

Screenshots

No response

Deployment Method

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] After updating docker image v2.12.3

Dean-YZG commented 1 month ago

请问还有其他的错误信息么?有浏览器截图、服务端日志截图等等么?

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


Are there any other error messages? Are there browser screenshots, server log screenshots, etc.?

sunghoppe commented 1 month ago

image image

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


image image

Dean-YZG commented 1 month ago

there is no git in your server, but nextchat proxy server need perform some operates via git

Dean-YZG commented 1 month ago

please install a git

QAbot-zh commented 1 month ago

there is no git in your server, but nextchat proxy server need perform some operates via git

docker 部署的话不应该和系统有没有 git 没关系吗?docker 应用调用的不是容器内部的git,是不是 docker 打包设置哪里出了问题? 我确定我的系统本身是有 git 的:

image

但是容器日志里也有类似的记录,目前还没有观察到对部署应用的使用造成明显的影响,不过如果能找到问题就更好了

image

QAbot-zh commented 1 month ago

更新:尝试进入docker容器后,发现确实没有 git,可是它连 apt 都没有,我要怎么安装 git 啊,难不成给它源码安装吗,那下次换镜像还得再搞一遍? 😂

image

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


Update: After trying to enter the docker container, I found that there is indeed no git, but it does not even have apt. How do I install git? Is it possible to install it from the source code? Then I have to do it again next time I change the mirror? 😂

image

QAbot-zh commented 1 month ago

我注意到 Dockerfile 里实际上是有安装 git 的命令的,但是不知道为什么镜像里会报没有 git 的错误

image

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


I noticed that there is actually a command to install git in the Dockerfile, but I don’t know why there is an error that there is no git in the image.

image