[Bug] 使用 Docker Compose 部署 LobeChat 服务端数据库版本 重定向/unknown-session错误 #4518
Replies: 19 comments
-
👀 @mhaas6 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.
-
尝试直接访问 出现的网页一片空白没有任何内容 |
Beta Was this translation helpful? Give feedback.
-
Try to access directly The webpage that appears is blank with no content. |
Beta Was this translation helpful? Give feedback.
-
@mhaas6 你好!我是 Dosu,我是一个可以帮助你解决 bug、回答问题并成为贡献者的机器人。我会在等待人类维护者的过程中帮助你。 I found some similar issues and discussions that might help you resolve the "unknown-session" error you're encountering:
You might want to check your reverse proxy settings and ensure that all necessary environment variables, especially those related to authentication, are correctly configured. |
Beta Was this translation helpful? Give feedback.
-
cloudflare好像要把SSL/TLS设置为 加密完全(严格),或者设置重定向规则 |
Beta Was this translation helpful? Give feedback.
-
Cloudflare seems to need to set SSL/TLS to fully encrypted (strict), or set redirection rules |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
关闭没用啊 要设置为 加密完全(严格) 或者使用zitadel替换logto |
Beta Was this translation helpful? Give feedback.
-
很奇怪,我按照图片中的示例设置了lobe-auth-ui.example.com重定向到3002端口,无效果依然跳转404 |
Beta Was this translation helpful? Give feedback.
-
It’s strange. I followed the example in the picture and set up lobe-auth-ui.example.com to redirect to port 3002. It has no effect and still jumps to 404. |
Beta Was this translation helpful? Give feedback.
-
那就不清楚了,我当初设置重定向或者tls改为完全加密就好了。不然你换zitadel试试吧 |
Beta Was this translation helpful? Give feedback.
-
That's not clear. I just set up redirection or changed TLS to full encryption. Otherwise, try zitadel instead. |
Beta Was this translation helpful? Give feedback.
-
我部署了ZITADEL但是遇到了另一个问题 我查找了以下文件 没有发现example.com,都以替换为我自己的域名 我尝试添查询ai后加环境变量 但依然无效 真见鬼 |
Beta Was this translation helpful? Give feedback.
-
I deployed ZITADEL but ran into another problem I looked for the following files Example.com was not found, so I replaced it with my own domain name. I try to add environment variables after querying ai but still invalid What the hell |
Beta Was this translation helpful? Give feedback.
-
这个好像不影响使用 |
Beta Was this translation helpful? Give feedback.
-
我进不去管理页面啊,域名或者ip+端口都跳转到这个页面...... |
Beta Was this translation helpful? Give feedback.
-
ExternalDomain在 |
Beta Was this translation helpful? Give feedback.
-
建议试下 casdoor |
Beta Was this translation helpful? Give feedback.
-
📦 Environment
Docker
📌 Version
v1.24.1 Latest
💻 Operating System
Other Linux
🌐 Browser
Chrome
🐛 Bug Description
Docker Compose 部署 LobeChat 服务端数据库版本,logto安装配置完成后,访问【lobe-auth-ui.example.com】与【http://localhost:3002】的时候出现重定向错误:【lobe-auth-api.example.com/unknown-session】
我使用服务器【ip:3002】 直接访问,仍然被跳转到【lobe-auth-api.example.com/unknown-session】
📷 Recurrence Steps
curl -fsSL https://raw.githubusercontent.com/lobehub/lobe-chat/HEAD/docker-compose/production/logto/docker-compose.yml > docker-compose.yml
curl -fsSL https://raw.githubusercontent.com/lobehub/lobe-chat/HEAD/docker-compose/production/logto/.env.zh-CN.example > .env
2.将【example.com】替换为我自己的域名
3.docker compose up -d
4.访问
【https://lobe-auth-ui.example.com】
被跳转到
【lobe-auth-api.example.com/unknown-session 】
报错404
🚦 Expected Behavior
No response
📝 Additional Information
[lobe-logto]的环境变量
ADMIN_ENDPOINT | https://lobe-auth-ui.xxxx.xyz
DB_URL | postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/logto
ENDPOINT | https://lobe-auth-api.xxxx.xyz
NODE_VERSION | 20.17.0
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
TRUST_PROXY_HEADER | 1
YARN_VERSION | 1.22.22
————————————————————
https://lobe-auth-ui.xxxx.xyz
反向代理ip:3002
https://lobe-auth-api.xxxx.xyz
反向代理ip:3001
使用cloudflare,为开启代理状态仅记录dns
Beta Was this translation helpful? Give feedback.
All reactions