mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #14057] feat: Users should stay logged in across restarts/ upgrades #55789
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 @luantak on GitHub (May 20, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14057
Check Existing Issues
Problem Description
Whenever I upgrade or restart my openwebui instance all users have to re-authenticate.
Desired Solution you'd like
I would like for users to not have to re-authenticate (type in their userrname / password) after the instance is restarted.
Alternatives Considered
No response
Additional Context
I'm using the default sqlite backend (if that's relevant)
@athoik commented on GitHub (May 20, 2025):
Check Keeps being logged out after every update?
@luantak commented on GitHub (May 20, 2025):
Ah ok thanks for this, however why not just persist this token by default somewhere in
/app/backend/data(if none is set explicitly?@Classic298 commented on GitHub (May 20, 2025):
Because it is meant to be used as environment variable.
At last, if you use high concurrency setups like k8s/helm or just use multiple uvicorn workers they all need to have it in the environment variable and read it from there. Otherwise multiple processes need to read it from a single file ;)
@luantak commented on GitHub (May 20, 2025):
@Classic298 so if it isn't set a distributed setup wouldn't work anyway
@Classic298 commented on GitHub (May 20, 2025):
yeah if it isn't used as a distributed setup, it could indeed make itself a persistent value by just reading the same file everytime.
I suspect this wasn't done to keep complexity low (otherwise there'd be two different ways of reading it depending on whether Open WebUI runs with a distributed setup)