[Bug] 套 Cloudflare 代理后,打开网站卡在“应用启动中” #6087
Replies: 25 comments 1 reply
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
@hardy-one 你好! 我是Dosu,一个专注于解决问题、回答疑问并帮助人们成为贡献者的机器人。需要帮助时,我会在这里等候。 A similar issue was resolved by adjusting the reverse proxy configuration. In that case, the problem was with the nginx configuration, and the solution involved modifying the For your situation with Caddy and Cloudflare, you might want to ensure that your Caddy configuration is correctly set up to handle the reverse proxy with Cloudflare. You could try adding headers or adjusting the proxy settings to ensure compatibility with Cloudflare's requirements. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
Cloudflare 的反代要注意连接方式的吧?比如是否是灵活还是严格? |
Beta Was this translation helpful? Give feedback.
-
When it comes to Cloudflare's anti-generation, you should pay attention to the connection method? For example, is it flexible or strict? |
Beta Was this translation helpful? Give feedback.
-
同样遇到这个问题,是最近某个版本更新后出现的,关掉小黄云就正常了 |
Beta Was this translation helpful? Give feedback.
-
This problem also occurred after a recent version update, so it would be normal to turn off Xiao Huangyun. |
Beta Was this translation helpful? Give feedback.
-
@arvinxx 我也出现这个问题了。某次更新后发生错误的,以前正常. 控制台信息:
|
Beta Was this translation helpful? Give feedback.
-
尝试清空浏览器缓存和服务端网关缓存后重试? |
Beta Was this translation helpful? Give feedback.
-
LobeChat DB版在最新版本会卡在“应用启动中”,后来我回退到v1.51.3之后这个问题就解决了,我怀疑是和Auth的东西有关。 |
Beta Was this translation helpful? Give feedback.
-
The latest version of LobeChat DB will be stuck in "application startup". Later, after I fell back to v1.51.3, this problem was solved. I suspect it is related to Auth's stuff. |
Beta Was this translation helpful? Give feedback.
-
感谢佬,我用1panel的OpenResty做反代,清除反代缓存后恢复正常 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
刚拉的最新主分支代码运行也是这个问题,一直卡住不跳转登录页面 |
Beta Was this translation helpful? Give feedback.
-
This is also the problem when running the latest main branch code of Gangla. It has been stuck and cannot jump to the login page. |
Beta Was this translation helpful? Give feedback.
-
cloudflare 里设置的加密模式是: 服务器的证书是 caddy 自动申请的,V1.51.3 版本 cloudflare 同样设置的话是可用的。 |
Beta Was this translation helpful? Give feedback.
-
The encryption mode set in cloudflare is: The server's certificate is automatically applied by caddy, and the same setting of cloudflare in V1.51.3 is available. |
Beta Was this translation helpful? Give feedback.
-
我也是1panel 部署的db版的. 出现相同问题. 非db版是正常的. 第一次打开域名 ![]() ![]() |
Beta Was this translation helpful? Give feedback.
-
试下清空caddy的缓存和 1panel的缓存 |
Beta Was this translation helpful? Give feedback.
-
Try to clear the cache of caddy and the cache of 1panel |
Beta Was this translation helpful? Give feedback.
-
我用的是本地dev运行调试,一直卡住这里了,拉取的最新main分支代码。 |
Beta Was this translation helpful? Give feedback.
-
I'm using local dev to run debugging, and I've been stuck here and pulled the latest main branch code. |
Beta Was this translation helpful? Give feedback.
-
同样的问题,环境 Debian 12 arm64 |
Beta Was this translation helpful? Give feedback.
-
Same problem, environment Debian 12 arm64 |
Beta Was this translation helpful? Give feedback.
-
你在环境变量加一个配置,NEXT_PUBLIC_ENABLE_NEXT_AUTH=1 |
Beta Was this translation helpful? Give feedback.
-
You add a configuration to the environment variable, NEXT_PUBLIC_ENABLE_NEXT_AUTH=1 |
Beta Was this translation helpful? Give feedback.
-
📦 Environment
Docker
📌 Version
v1.52.8
💻 Operating System
Ubuntu
🌐 Browser
Chrome
🐛 Bug Description
VPS 部署 LobeChat 数据库版本,服务器上使用caddy反代。
配置cloudflare的反代后访问网站进度条卡在“应用启动中”,cloudflare上取消反代后可以正常访问。
caddy配置:
lobe.xxx.xxx {
reverse_proxy localhost:3210
}
补充:
V1.51.3 版本配置 cloudflare 反代可以正常使用。
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
Docker Log:
lobe-database | -------------------------------------
lobe-database | [Database] Start to migration...
lobe-database | ✅ database migration pass.
lobe-database | -------------------------------------
lobe-database | ▲ Next.js 15.1.6
lobe-database | - Local: http://localhost:3210
lobe-database | - Network: http://0.0.0.0:3210
lobe-database |
lobe-database | ✓ Starting...
lobe-database | ✓ Ready in 120ms
lobe-database | {
lobe-database | allowDangerousEmailAccountLinking: true,
lobe-database | clientId: undefined,
lobe-database | clientSecret: undefined,
lobe-database | platformType: 'WebsiteApp',
lobe-database | profile: [Function: profile]
lobe-database | }
lobe-database | (node:28) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.lobe-database | (Use
node --trace-deprecation ...
to show where the warning was created)lobe-database | {
lobe-database | allowDangerousEmailAccountLinking: true,
lobe-database | clientId: undefined,
lobe-database | clientSecret: undefined,
lobe-database | platformType: 'WebsiteApp',
lobe-database | profile: [Function: profile]
lobe-database | }
lobe-database | [rewrite] / -> /zh-CN__0__light
lobe-database | (node:28) [DEP0060] DeprecationWarning: The
util._extend
API is deprecated. Please use Object.assign() instead.Beta Was this translation helpful? Give feedback.
All reactions