Open LovelyGuYiMeng opened 2 hours ago
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
📦 Deployment environment
Zeabur
1.20.5
Other Linux
Chrome
Version 1.20.5, cannot be started after the github fork is built in zeabur
The docker deployment can start normally
@hezhijie0327
Deploying lobechat 1.20.5 directly on zeabur through github, the startup phase cannot be started after the build is successful.
Start normally after successful build
No response
👀 @LovelyGuYiMeng
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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
@LovelyGuYiMeng 你好!我是Dosu,一个可以帮助解决bug、回答问题并成为贡献者的机器人。我会在等待人类维护者的过程中帮助你。
I found a similar closed issue that might be relevant to your problem: [Bug] Failed to deploy on Zeabur. The solution involved manually forking the repository, creating a project, and adding a new service on Zeabur. Additionally, syncing and enabling the sync workflow resolved the issue [1].
The problem you're encountering with the "Module Not Found" error for /app/docker.cjs
and the process exiting with code 1 is likely due to the zbpack.json
configuration file specifying "ignore_dockerfile": true
and "serverless": true
. This configuration indicates that the deployment is intended to be serverless and not containerized, which may lead to issues with module resolution and dependencies expected in a Docker environment.
To resolve this, ensure that the necessary modules and dependencies are correctly configured for a serverless environment, or consider deploying using Docker if serverless deployment is not a strict requirement. Additionally, be aware of existing issues with Zeabur's support for Next.js middleware and rewrites, as noted in the LobeChat deployment documentation [2][3].
If you need detailed steps for configuring a serverless environment for LobeChat on Zeabur, please let me know!
To continue talking to Dosu, mention @dosu.
@hezhijie0327 来看下这个
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@hezhijie0327 take a look at this
/app/docker.cjs
不存在?我研究下 zeabur 咋用
@LovelyGuYiMeng 它这是直接构建镜像在运行的吗?
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
/app/docker.cjs
does not exist? I will study how to use zeabur
@LovelyGuYiMeng Is this directly building the image and running it?
@LovelyGuYiMeng 这个 DB 版是在哪里的?咱们 REPO 里的貌似不是数据库版本
@LovelyGuYiMeng 这个 DB 版是在哪里的?咱们 REPO 里的貌似不是数据库版本
不要用模板里的,模板里的是Docker镜像 用GitHubFork部署的,DB版在环境变量里加上NEXT_PUBLIC_SERVICE_MODE=server
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@LovelyGuYiMeng Where is this DB version? It seems that the one in our REPO is not the database version![image](https://private-user-images.githubusercontent.com/58100052/371837569-c92885ee-c265-46f7-842c-26ed15e5ce72.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6Ik pXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjc1OTgwOTIsIm5iZiI6MTcyNzU5Nzc5MiwicGF0aCI 6Ii81ODEwMDA1Mi8zNzE4Mzc1NjktYzkyODg1ZWUtYzI2NS00NmY3LTg0MmMtMjZlZDE1ZTVjZ TcyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWF sPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfc mVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTI5VDA4MTYzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbotX U2lnbmF0dXJlPTZkM2Y2ZjNhNjhjOWIyMDc1MzA4YTI0NWZiMTI5ZDhmYWRkNmJmNTQ1MjJkNzZhYzQ0MDQ0ZDQ3MzQwZTdhN2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.lZNX _OLueU_CCi9rMqGp9fn13WKcAmWrIUCpvtTtYqo)
Don’t use what’s in the template, what’s in the template is the Docker image Deployed with GitHubFork, add NEXT_PUBLIC_SERVICE_MODE=server to the environment variable for the DB version.
@arvinxx @LovelyGuYiMeng 我看了下有个 Template https://zeabur.com/templates/RRSPSD 运行正常的
@LovelyGuYiMeng 你这个方式我过会儿看看咋弄
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@arvinxx @LovelyGuYiMeng I checked and there is a Template https://zeabur.com/templates/RRSPSD that is running normally
@LovelyGuYiMeng I’ll see how you do it this way later
@LovelyGuYiMeng 我大致知道为啥了,但是之前版本真的能用吗?
有办法调整默认 Dockerfile 的方法不?按照之前版本的话,也是凑巧能用,因为 DB 没做迁移
NEXT_PUBLIC_SERVICE_MODE="server"
触发了启动器的判断
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@LovelyGuYiMeng I roughly know why, but does the previous version really work?
Is there a way to adjust the default Dockerfile? According to the previous version, it happened to work because the DB was not migrated.
NEXT_PUBLIC_SERVICE_MODE="server"
triggers the launcher's judgment
@hezhijie0327 好像之前版本就是没有做迁移, @LovelyGuYiMeng 每次都是手动自己做db migration的…
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@hezhijie0327 It seems that the previous version did not migrate. @LovelyGuYiMeng did the db migration manually every time...
@arvinxx 那这样的话 我搞个环境变量 让它跳过迁移就行,现在是强制,当初设计的时候没想到还有这需求...
TODO: 在变量设置后,输出 warning
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@arvinxx In that case, I can just set an environment variable to skip the migration. Now it is mandatory. I didn’t expect this requirement when I originally designed it...
TODO: After the variable is set, output warning
@LovelyGuYiMeng #4213 试下这个分支,设置 SKIP_DB_MIGRATION="true"
📦 部署环境
Zeabur
📌 软件版本
1.20.5
💻 系统环境
Other Linux
🌐 浏览器
Chrome
🐛 问题描述
1.20.5版本,在zeabur中github fork构建后无法启动
而docker部署可以正常启动
@hezhijie0327
📷 复现步骤
直接在zeabur通过github部署lobechat 1.20.5,构建成功后启动阶段无法启动
🚦 期望结果
构建成功后正常启动
📝 补充信息
No response