Closed AbondonedScrawl closed 1 week ago
👀 @AbondonedScrawl
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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
Hey @AbondonedScrawl! I'm here to help with any bugs, questions, or contributions you have. Let's tackle this issue together!
I found a similar unsolved discussion: Using Auth0 for Deploying Server Database Version Using Docker [1]. Additionally, there are two closed issues that might be relevant:
NEXTAUTH_URL
variable as per the documentation [2].To resolve the "UNAUTHORIZED" error when visiting the web UI in a Docker environment on Ubuntu, follow these steps:
Check Environment Variables: Ensure that the environment variables related to authentication are correctly set in your .env
file. Specifically, verify the following variables:
NEXT_AUTH_SECRET=3904039cd41ea1bdf6c93db0db96e250
NEXT_AUTH_SSO_PROVIDERS=auth0
NEXTAUTH_URL=http://localhost:3210/api/auth
AUTH0_CLIENT_ID=xxxxxx
AUTH0_CLIENT_SECRET=cSX_xxxxx
AUTH0_ISSUER=https://lobe-chat-demo.us.auth0.com
Restart the LobeChat Service: After making sure the environment variables are correctly set, restart the LobeChat service to apply the changes:
docker compose up -d
Check CORS Configuration: Ensure that CORS settings are correctly configured to allow cross-origin requests. This can be done in the MinIO WebUI or through Docker Compose environment variables:
MINIO_API_CORS_ALLOW_ORIGIN=http://localhost:3210
Verify Authentication Service: Make sure the authentication service (Auth0 in this case) is running and accessible. You can check the logs for the Auth0 container to ensure it is running without errors:
docker logs -f lobe-auth0
By following these steps, you should be able to resolve the "UNAUTHORIZED" error when accessing the web UI [4][5].
To continue talking to Dosu, mention @dosu.
Do you login?
Do you login?
Not sure what you mean. I just follow the guide
I mean you need to login and then try the upload
Damn it, I missed that part completely. Thank you. Now it is working
✅ @AbondonedScrawl
This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。
I have followed instruction using docker-compose, after configuring logto and updating env, lobe chat wont show me login page but rather every action result in unauthorized
@moeinrahimi1 click the logo to login
📦 Environment
Docker
📌 Version
Latest
💻 Operating System
Ubuntu
🌐 Browser
Chrome, Safari, Firefox
🐛 Bug Description
I have carefully followed each step in this guide https://lobehub.com/docs/self-hosting/server-database/docker-compose. Every time I end up with a chat that is not working. I get following error:
When looking at lobe-database logs, it looks like this:
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
Issue persists on other hardware as well.