NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

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

Open sunghoppe opened this issue 1 year ago • 5 comments

Bug Description

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

Steps to Reproduce

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

Expected Behavior

正常访问

Screenshots

No response

Deployment Method

  • [X] Docker
  • [ ] Vercel
  • [ ] Server

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

sunghoppe avatar May 20 '24 05:05 sunghoppe

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


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

Issues-translate-bot avatar May 20 '24 05:05 Issues-translate-bot

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

Dean-YZG avatar May 20 '24 07:05 Dean-YZG

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.?

Issues-translate-bot avatar May 20 '24 07:05 Issues-translate-bot

image image

sunghoppe avatar May 20 '24 09:05 sunghoppe

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


image image

Issues-translate-bot avatar May 20 '24 09:05 Issues-translate-bot

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

Dean-YZG avatar May 27 '24 08:05 Dean-YZG

please install a git

Dean-YZG avatar May 27 '24 08:05 Dean-YZG

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 avatar May 28 '24 11:05 QAbot-zh

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

image

QAbot-zh avatar May 28 '24 11:05 QAbot-zh

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

Issues-translate-bot avatar May 28 '24 11:05 Issues-translate-bot

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

image

QAbot-zh avatar May 28 '24 12:05 QAbot-zh

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

Issues-translate-bot avatar May 28 '24 12:05 Issues-translate-bot