mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-09 21:38:47 -05:00
[GH-ISSUE #11606] issue: oauth state does not sync between replicas #16292
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @computerdane on GitHub (Mar 12, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11606
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Linux
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
OAuth state should sync between multiple instances that are behind a load balancer
Actual Behavior
OAuth state does not persist, and logins fail
Steps to Reproduce
Logs & Screenshots
N/A
Additional Information
Related to https://github.com/open-webui/open-webui/issues/10365
I am deploying open-webui in Fargate, and when I have multiple instances running and attempt to login, it fails since it is behind a round-robin load balancer and the other containers' states are not in sync with the state of the container that initiated the login.
Possible fix on my branch:
85bdb4ac67. Once I am able to test this change I will submit a PR and link it to this issue.@computerdane commented on GitHub (Mar 13, 2025):
Ok, turns out I just needed to set the
WEBUI_SECRET_KEYenvironment variable for all of the containers to the same thing, since the Docker image randomizes it. I didn't even need the Redis cache for authlib or anything@Ithanil commented on GitHub (Mar 15, 2025):
@computerdane Hit the same issue, same fix. Would be good to add a hint to the documentation of
WEBUI_SECRET_KEY.@computerdane commented on GitHub (Mar 15, 2025):
@Ithanil
108d01c73dlooks like this PR will update the docs accordingly@taylorwilsdon commented on GitHub (Mar 15, 2025):
There are no published docs on Open-WebUI's site about this currently, but I have a PR that adds them ready to go here https://github.com/open-webui/docs/pull/448
@computerdane commented on GitHub (Mar 15, 2025):
@taylorwilsdon lol looks like we found each other at the same time
@taylorwilsdon commented on GitHub (Mar 15, 2025):
just two souls passing in the night