mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
issue: Missing admin runtime creation #6467
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 @pyautoml on GitHub (Sep 22, 2025).
Originally assigned to: @tjbck on GitHub.
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.30
Ollama Version (if applicable)
0.11.10
Operating System
Ubuntu 22.04
Browser (if applicable)
Chrome 140.0.7339.128
Confirmation
README.md.Expected Behavior
Goal:
Dynamic admin account creation during Docker container runtime by passing credentials from local .env file to the OpenWebUI's internal database.
Context:
Running OpenWebUI inside a container and publishing it as a GUI interface, there is a time gap between making the resource online and time when I need to create first user manually, via providing email and password (the website is already online and other users can see the admin landing page). I tried many configurations and was not able to create admin (and add its credentials to locally created .db) account, blocking by this ranom user access to the admin dashboard.
Encryption issue
I was able to force OpenWebUI to accept my credentials on the runtime, but it occurs that the encryption is not matching later (I assume OpenWebUI uses different encryption method) and provided data do not allow me to log in as administrator.
Not secure workarounds
The only 2 ways I am aware of is either by blocking port, accessing the dashboard, create admin manually, and then reopening the port, or by creating database on a host machine (not on the server), and then manually mounting it as a volume when creating container on the server.
Actual Behavior
I have provide admin account credentials manually after the container is UP displaying admin dashboard to random internet users.
Steps to Reproduce
Logs & Screenshots
There are no logs or screens as credentials data is a sensitive information.
Additional Information
I have troubleshoot this for the last 3 days. The most successful step was forcing OpenWebUI container to wait until I load my admin credentials, but the credentials are encrypted in such way that later providing correct ones still results in a mismatch (I provide correct email and password, I have exactly the same in the .db, but the GUI displays message regarding login failure).