mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-15 03:24:48 -05:00
Adminpanel userlist is empty #133
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 @Morethanevil on GitHub (Dec 28, 2023).
Bug Report
After the newest version, I created the first user. I tried to view the admin panel and the userlist was empty. I was looking in the docker volumes a databasefile is created and more than 0 bytes. I shutdown the stack and deleted the file, cleared the cache from the browser and wanted to start over. I created a user again, but same result.
If I want to view the user list it is empty. When I want to go back I am logged out. It does not matter if I use lowercases or uppercases.
Environment
Ubuntu server 22.04 latest docker via ofgicial ppa
Latest Firefox and brave
Reproduction Details
Confirmation:
Installation Method
[Describe the method you used to install the project, e.g., manual installation, Docker, package manager, etc.]
Docker container, volume for ollama web-ui is added
Docker-compose.yml appended
dockercompose.txt
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@tjbck commented on GitHub (Dec 28, 2023):
Hi, Thanks for creating this issue! That seems very strange, could you verify that you're on the latest version by pulling the latest container? Keep us updated!
Also, I've just noticed that you're using
/docker/ollama/ollama-webui:/app/backend/datafor the docker volume, I'm not entirely sure about this but you might have to create a separate volume for the webui!@tjbck commented on GitHub (Dec 28, 2023):
FYI, Here's what it should look like!
@Morethanevil commented on GitHub (Dec 28, 2023):
I tried again, the docker volume
/docker/ollama/ollama-webui:/app/backend/datais for the web ui, the other one is for ollama itself, storing the modelfiles.After retrying the problem remains. I append the output of dockerlogs. I am using the web ui behind a reverse proxy, if this helps.
logs.txt
It looks like this for me
The db file is created
@tjbck commented on GitHub (Dec 28, 2023):
Oh, I meant I think you might have to replace
/docker/ollama/ollama-webui:/app/backend/datawithollama-webui:/app/backend/data. Are there any reasons for why you're using/docker/ollama/ollama-webui:/app/backend/datafor the volume mount?@Morethanevil commented on GitHub (Dec 28, 2023):
Yes I always use bind mounts in every docker project for easier backup, instead of docker volumes.
/dockeris easier to backup instead of/var/lib/docker/overlay2/64c9c0cf8c9cfb0e2168071df0652a317d49f58a68fe86e4a9a9a525ab9e365e/webuiAnd I always need my network settings, because the reverse proxy is not running in docker. I shorted the path to
/docker/ollama/webuinow, but no changeAre there any special permissions for the db file? It is created and owned by root, which is normal and it seems to store data
@Morethanevil commented on GitHub (Dec 28, 2023):
Tried to use the docker volume
Getting the same error in the logs
@tjbck commented on GitHub (Dec 28, 2023):
The log you see is just a warning log 😅 it shouldn't have any effect on the backend!
@tjbck commented on GitHub (Dec 28, 2023):
Could you verify that
/usersroute is being redirected to/users/like above? Thanks.@tjbck commented on GitHub (Dec 28, 2023):
Also, if you could share the browser console logs or request logs from the network tab in the browser dev tool, that would help us a lot with narrowing down the problem!
@Morethanevil commented on GitHub (Dec 28, 2023):
When I append
/userto the URL, I am redirected to/authMixed Content warning for
/adminFrom Brave:
/useris throwing this:@tjbck commented on GitHub (Dec 28, 2023):
I should've clarified myself, you wouldn't be able to access the users route directly!
If you could share the logs you get in the dev tool when you visit the admin page, that would be helpful.
Super late where I am currently, will take a look soon as I wake up, Thanks!
@Morethanevil commented on GitHub (Dec 28, 2023):
The first picture was from the adminpanel. Tried again, login and click on my username and then adminpanel
Log from Brave:
bravelog.log
There is no more information in the brave dev console and maximum verbose logging :(
@mtompkins commented on GitHub (Dec 28, 2023):
Can confirm this user add issue. Posting only to share that it is reproducible.
@tjbck commented on GitHub (Dec 28, 2023):
I'm back, @mtompkins are you also serving the webui over https?
@tjbck commented on GitHub (Dec 28, 2023):
Just identified what's causing the issue, working on a fix! Thank you all for your patience!
@tjbck commented on GitHub (Dec 28, 2023):
Tested the fix over https with cloudflare tunnel, seem to have fixed the issue. Let me know if the issue persists, Thanks a lot!
@Morethanevil commented on GitHub (Dec 28, 2023):
Yes it works now for me, thank you ☺️
@mtompkins commented on GitHub (Dec 28, 2023):
Yes, I use traefik as a proxy. WIll confirm the current change.
@mtompkins commented on GitHub (Dec 28, 2023):
Can confirm this resolves.
Would love a delete user choice :)
@Morethanevil commented on GitHub (Dec 28, 2023):
And disabling registration completly via ENV 🤔
@tjbck commented on GitHub (Dec 28, 2023):
They're all on the roadmap! This is just the beginning, stay tuned for regular updates!