-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Bug] Internal server error when logging in using Google OIDC #2475
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
Comments
Can you provide a list of users in the database and their fields and the ones that try to login when you get the error? I suspect that they might not have migrated from the old "user only" format to the new one, see the changelog for 0.24. |
Sure, here you go!
Note that the |
Just tried two things: ReauthReauthenticated user 4 (not that the id matters I guess 😅) and encountered an internal server error again.
However, shutting down Tailscale and starting it again worked, so the previous key still seems valid. The output of
Registered new userRegistered a user who has never logged in to Headscale previously. They have a unique first and last name, so there should be no such collisions.
|
I have the same issue. Even adding new users is creating this behavior. Does anyone has any hint on this ? Any workaround ? |
For those having the same issue, I managed to solve the user creation error : My issue was that even with the migration flag on, my users had a user.name empty,
and most importantly, my OIDC provider was returning an empty username to headscale (I am using authelia). After digging into the code of headscale, I found that the name (in the DB) is mapped with the Bottom line : Destroying and recreating user is possible, but you have to ensure that you're allowing headscale to fetch the user username to avoid duplication of empty value. It's working for v0.24 and 0.25 |
I'm facing the same problem. I tried the solution mentioned in #2505: https://www.authelia.com/integration/openid-connect/openid-connect-1.0-claims/#restore-functionality-prior-to-claims-parameter, but using the After the successful login the username field is empty and I get The resulting "user" in the table looks like this:
None of the other users (all use oidc) have the Using Authelia 4.39.1 and Headscale 0.25.1 might be related to #2516? |
Is this a support request?
Is there an existing issue for this?
Current Behavior
Similar to #2465 which was closed.
An existing (since Headscale 0.23) tried to log in for the first time since upgrading to 0.25, without success.
Even after destroying the user (along with the associated nodes and preauthkeys) and restarting headscale, the issue persists.
I tried to investigate how the OIDC handling has changed over the versions, but from what I could gather most issues seem to stem from the email having possibly changed? This has not happened in our case.
Expected Behavior
The current user should be migrated to the new format.
Steps To Reproduce
Environment
Runtime environment
Anything else?
Thank you for your dedicated work on Headscale!
The text was updated successfully, but these errors were encountered: