goauthentik / authentik

The authentication glue you need.
https://goauthentik.io
Other
13.35k stars 891 forks source link

OAuth2 Duplicate User Error #11443

Open philsjh opened 1 month ago

philsjh commented 1 month ago

Describe the bug

Relevant info version 2024.8.2 running on kubernetes

Screenshots image

Logs

{"event": "Internal Server Error: /source/oauth/callback/github/", "exception": [{"exc_type": "IntegrityError", "exc_value": "duplicate key value violates unique constraint \"authentik_core_usersourc_user_id_source_id_ad1f5aa7_un │
│ iq\"\nDETAIL:  Key (user_id, source_id)=(7, <clipped>) already exists.", "frames": [{"filename": "/ak-root/venv/lib/python3.12/site-packages/asgiref/sync.py", "lineno": 518, 

Version and Deployment (please complete the following information):

Additional context

Happens every time - tried custom flows without the "write" too.

esimes commented 2 weeks ago

Hi @philsjh , I'm encountering the same error, but in my case, I'm using Docker for deployment. Since it's been about three weeks, were you able to find a solution?