mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
API keys only work after first login upon server restart #3145
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 @ghmer on GitHub (Dec 30, 2024).
Bug Report
Installation Method
docker-compose stack with open-webui, ollama and redis
Environment
Open WebUI Version: 0.5.2
Ollama (if applicable): 0.5.4
Operating System: debian
Browser (if applicable): not applicable
Confirmation:
Expected Behavior:
An API key should work regardless of a user login. When a server is restarted, the owner of an API key should not be required to login before their API key can be used.
Actual Behavior:
Upon server/docker stack restart, I receive "HTTP 400: Bad Gateway" responses using http requests with an "Authorization: Bearer API_KEY" header until I logon to open-webui via browser.
Description
Bug Summary:
After a server restart, http requests to the Ollama backend via open-webui (authenticated via API key) results in "http 400 - Bad Gateway" responses. The issue persists unless the owner of the API key logs into open-webui via browser. Then, the API key is working properly until the next server restart.
Reproduction Details
Steps to Reproduce: