ChatGPTNextWeb / ChatGPT-Next-Web

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

[Bug] No git or not from git repo #4882

Open uibooker opened 4 days ago

uibooker commented 4 days ago

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

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

fred-bf commented 4 days ago

@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

uibooker commented 4 days ago

@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 服务

manjieqi commented 4 days ago

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

Issues-translate-bot commented 4 days ago

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.

fred-bf commented 4 days ago

@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

manjieqi commented 3 days ago

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

Issues-translate-bot commented 3 days ago

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.

sunghoppe commented 3 days ago

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

uibooker commented 3 days ago

@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 等,就会出现上述问题

manjieqi commented 3 days ago

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

Issues-translate-bot commented 3 days ago

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


It seems to be a reverse proxy cache issue

uibooker commented 1 day ago

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

应该就是这个问题了

Issues-translate-bot commented 1 day ago

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