NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Bug] No git or not from git repo

Open uibooker opened this issue 1 year ago • 14 comments

Bug Description

更新2.12.4之后,页面报错 image Docker 容器日志:

   ▲ Next.js 14.1.1
   - Local:        http://94f8bdcc0569:3000
   - Network:      http://172.17.0.10:3000

 ✓ Ready in 119ms
[Server Config] using 1 of 1 api key 
[Server Config] using 1 of 1 api key 
/bin/sh: git: not found
[Build Config] No git or not from git repo.
 ⚠ Unsupported metadata viewport is configured in metadata export in /_next/static/chunks/7267.472af8b023ac9ed4.js. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
 ⚠ Unsupported metadata themeColor is configured in metadata export in /_next/static/chunks/7267.472af8b023ac9ed4.js. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
/bin/sh: git: not found
[Build Config] No git or not from git repo.
 ⚠ Unsupported metadata viewport is configured in metadata export in /_next/static/chunks/5101.782ee8ee415c64a2.js. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
 ⚠ Unsupported metadata themeColor is configured in metadata export in /_next/static/chunks/5101.782ee8ee415c64a2.js. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
/bin/sh: git: not found
[Build Config] No git or not from git repo.
 ⚠ Unsupported metadata viewport is configured in metadata export in /_next/static/chunks/7267.472af8b023ac9ed4.js. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
 ⚠ Unsupported metadata themeColor is configured in metadata export in /_next/static/chunks/7267.472af8b023ac9ed4.js. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
/bin/sh: git: not found
[Build Config] No git or not from git repo.
 ⚠ Unsupported metadata viewport is configured in metadata export in /_next/static/chunks/5101.782ee8ee415c64a2.js. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
 ⚠ Unsupported metadata themeColor is configured in metadata export in /_next/static/chunks/5101.782ee8ee415c64a2.js. Please move it to viewport export instead.
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport

Steps to Reproduce

2.12.2版本更新到2.12.4版本

Expected Behavior

2.12.2版本更新到2.12.4版本,容器启动报错

Screenshots

No response

Deployment Method

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

Desktop OS

Linux ubuntu 6.5.0-1021-oracle #21~22.04.1-Ubuntu aarch64 aarch64 aarch64 GNU/Linux

Desktop Browser

Chrome

Desktop Browser Version

126

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

uibooker avatar Jun 24 '24 09:06 uibooker

@uibooker I cannot reproduce the issue, are you running on the arm server? As for the chunk load failed error, please try reset your CDN/Proxy service cache

fred-bf avatar Jun 24 '24 12:06 fred-bf

@uibooker I cannot reproduce the issue, are you running on the arm server? As for the chunk load failed error, please try reset your CDN/Proxy service cache

是在一台ARM架构的服务器上,系统架构为:Linux ubuntu 6.5.0-1021-oracle aarch64 aarch64 aarch64 GNU/Linux 另外没有使用CDN/Proxy 服务

uibooker avatar Jun 24 '24 13:06 uibooker

更新后出现同样的问题,浏览器无法访问,x86_64。

manjieqi avatar Jun 24 '24 15:06 manjieqi

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


The same problem occurs after updating, the browser cannot access, x86_64.

Issues-translate-bot avatar Jun 24 '24 15:06 Issues-translate-bot

@uibooker Hi, I just retried to serve the latest version in docker with both x64 and arm server, I still cannot reproduce the issue. It doesn't even have the previous error about viewport, I want to double confirm that you are using the docker image yidadaa/chatgpt-next-web:v2.12.4? In addition, whether there are other things trigger the issue, such as special environment variables, clicking specific buttons, etc

CleanShot 2024-06-25 at 02 21 59@2x

fred-bf avatar Jun 24 '24 18:06 fred-bf

访问网页的时候出现无法加载和报错

manjieqi avatar Jun 25 '24 01:06 manjieqi

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


When accessing the webpage, it fails to load and reports an error.

Issues-translate-bot avatar Jun 25 '24 01:06 Issues-translate-bot

我从2.12.3版本开始就是这样,无法新建聊天,docker提示[Build Config] No git or not from git repo. 服务器也是Oracle的arm机器

sunghoppe avatar Jun 25 '24 06:06 sunghoppe

@uibooker Hi, I just retried to serve the latest version in docker with both x64 and arm server, I still cannot reproduce the issue. It doesn't even have the previous error about viewport, I want to double confirm that you are using the docker image yidadaa/chatgpt-next-web:v2.12.4? In addition, whether there are other things trigger the issue, such as special environment variables, clicking specific buttons, etc

CleanShot 2024-06-25 at 02 21 59@2x

按照这种方式直接启动是可以正常运行的,页面也可以正常访问 image

如果带上之前的环境变量,比如 OPENAI_API_KEYBASE_URL 等,就会出现上述问题

uibooker avatar Jun 25 '24 08:06 uibooker

好像是反向代理缓存的问题

manjieqi avatar Jun 25 '24 14:06 manjieqi

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


It seems to be a reverse proxy cache issue

Issues-translate-bot avatar Jun 25 '24 14:06 Issues-translate-bot

好像是反向代理缓存的问题

应该就是这个问题了

uibooker avatar Jun 27 '24 09:06 uibooker

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


It seems to be a reverse proxy cache problem

This should be the problem

Issues-translate-bot avatar Jun 27 '24 09:06 Issues-translate-bot

什么时候能修复完成啊?我用的https://api.chatanywhere.com.cn \

lukemin avatar Aug 11 '24 06:08 lukemin