Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unraid 数据库版Docker更新后,AUTH0无法登录 #4940

Closed
iparanoid opened this issue Dec 9, 2024 · 9 comments
Closed

[Bug] Unraid 数据库版Docker更新后,AUTH0无法登录 #4940

iparanoid opened this issue Dec 9, 2024 · 9 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@iparanoid
Copy link

iparanoid commented Dec 9, 2024

📦 Environment

Docker

📌 Version

1.36.3

💻 Operating System

macOS

🌐 Browser

Chrome

🐛 Bug Description

Unraid部署数据库版本一直稳定使用,最近更新lobechat容器后,发现无法登录了
使用chrome点击登录后显示
image

以下是相关配置,按理说是正确的,因为之前一直是正常的

再附上Docker的容器日志
`🌐 DNS Server: [ '172.27.1.10' ]
[Database] Start to migration...
✅ database migration pass.
▲ Next.js 14.2.8

✓ Starting...
✓ Ready in 145ms
[NextAuth] Error: {
cause: 'Configuration',
message: 'Wrong configuration, make sure you have the correct environment variables set. Visit https://lobehub.com/docs/self-hosting/advanced/authentication for more details.',
name: 'NextAuth Error'
}`

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@iparanoid iparanoid added the 🐛 Bug Something isn't working | 缺陷 label Dec 9, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Dec 9, 2024
@lobehubbot
Copy link
Member

👀 @iparanoid

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Dec 9, 2024

I found a similar issue related to Auth0 configuration errors in Lobe Chat. The error message you're encountering suggests a configuration issue with your environment variables for Auth0 authentication. Here are some steps to check and resolve the issue:

  1. Verify Environment Variables: Ensure that all required environment variables for Auth0 are correctly set. These include:

    • AUTH_AUTH0_ID: Your Auth0 application's Client ID.
    • AUTH_AUTH0_SECRET: Your Auth0 application's Client Secret.
    • AUTH_AUTH0_ISSUER: The domain of your Auth0 application, formatted as https://example.auth0.com.
    • NEXT_AUTH_SECRET: A securely generated key for encrypting session tokens. You can generate it using openssl rand -base64 32.
    • NEXTAUTH_URL: The callback URL for OAuth authentication, which should match your deployment URL.
  2. Check Callback URLs: Ensure that the "Allowed Callback URLs" in your Auth0 application settings match the URL used in your deployment, such as http://172.27.1.60:3220/api/auth/callback/auth0.

  3. Review Docker Configuration: Double-check your Docker environment variables and ensure they are correctly set in your docker run command.

  4. Consult Documentation: Refer to the Lobe Chat documentation for detailed setup instructions and ensure all steps are followed correctly.

If these steps do not resolve the issue, consider reviewing the logs for any additional clues or errors that might indicate what is misconfigured.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@arvinxx
Copy link
Contributor

arvinxx commented Dec 9, 2024

@cy948 来看看?

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@cy948 Come and take a look?

@cy948
Copy link
Contributor

cy948 commented Dec 9, 2024

环境变量加 NEXT_AUTH_DEBUG=1 再启动,看看日志。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Add NEXT_AUTH_DEBUG=1 to the environment variable, restart and check the logs.

@iparanoid
Copy link
Author

环境变量NEXT_AUTH_DEBUG=1再次启动,查看日志。

不好意思,打扰了 经过排查,是我家中的网关配置出现了问题,不是lobechat的问题

@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Dec 9, 2024
@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Environment variable NEXT_AUTH_DEBUG=1 and start again and check the log.

Sorry to bother you. After investigation, it was found that there was a problem with the gateway configuration in my home, not lobechat's problem.

@lobehubbot
Copy link
Member

@iparanoid

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Done
Development

No branches or pull requests

4 participants