mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 09:33:54 -05:00
[GH-ISSUE #8803] When migrating, what to copy? #134994
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 @shiraz-shah on GitHub (Jan 23, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8803
I've installed Open WebUI in a conda environment using pip. So no docker image. It's worked well for months!
After upgrading to a newer version of Open WebUI, using pip upgrade as recommended somewhere, Open WebUI no longer works (internal error 500).
If I make a new conda environment and start from scratch, what files do I need to copy over from the old conda environment in order to preserve users and chat histories?
Currently
~/miniconda3/envsfolder has two foldersopenwebuiandopenwebui2. I.e. the old environment that no longer works, and the new environment with a fresh installation of Open WebUI.Inside each of the environment folders we have:
but I can't figure out where the user data is located.
@shiraz-shah commented on GitHub (Jan 23, 2025):
If anybody has ideas for the salvaging the old installation, here are the error messages within the original Open WebUI console, after upgrading:
On the web browser, there's either this:

Or
500 internal error@Classic298 commented on GitHub (Jan 23, 2025):
Bad Request on websocket - did you configure websockets yet on a reverse proxy (assuming you use one?)
also it should be in the lib folder, then python folder, then open_webui, then data, there you should find database and other stuff
@shiraz-shah commented on GitHub (Jan 23, 2025):
So awesome! Thanks!!
I'm not using reverse proxy. I have sometimes accessed the Open WebUI on this machine remotely through an
ssh -Ltunnel, but that's it.OK, so after copying the data, I see I'm having the same error in the new install.
Then after making a third blank install I still see the same error.
Then when opening an anynymous brower tab, it does work!
I guess browser cache has to be completely cleared before a new version of Open WebUI works.
But now, even after getting it to work, it's not seeing my
ollamamodels in the workspace, so I can't configure new models:But I can still select between existing models in when starting a new chat:
What do you think is wrong?
@Classic298 commented on GitHub (Jan 23, 2025):
The "base"-models have moved to the admin section only and should be visible for you there.
The Models in the workspace section are only for custom models (like Custom GPTs) that are based off of a base model like deepseek-r1 but have special system prompts or special descriptions, a custom picture and just different things whatever you set them to.
This was done quite a while ago. Basemodels: admin section. Custom models: workspace.
Check in admin section if you see your base models there.
@shiraz-shah commented on GitHub (Jan 23, 2025):
So cool, I love this change! It's way more intuitive.
But the browser cache thing is a bummer. I've replicated it over multiple systems.
I guess it makes sense for the browser cache to get glitchy after a major web site update, but I wish there was a smarter solution than asking all the users to reset their browser cache manually. I don't know if cache expiry settings can on Open WebUI assets can be optimised further, somehow.
Anyway, thanks for the help, @Classic298. That was awesome!!
@Classic298 commented on GitHub (Jan 23, 2025):
Yes the browser cache is indeed an issue. Users should just do a STRG+SHIFT+R after updates to ensure cache gets deleted. That fixes it all.
I don't know how to fix this though. Perhaps with some reverse proxy settings in nginx, nginx can tell the browser to only keep the cache for x minutes or something? I will do some research into this.
@Classic298 commented on GitHub (Jan 23, 2025):
@shiraz-shah
If you use a reverse proxy like nginx (which is IMO recommendable to use), you can set a custom cache policy, which the browser adheres to, which ensures the cache of the website is only stored for x hours before being invalidated/deleted by the browser.
I think this might be a solution to this issue and users will not be forced to delete cache manually everytime.
Obviously, choose a long enough time to still take away load from the OpenWebUI service, but at the same time, short enough so if you DO update (e.g. at the end of a work day) so that the next day, the cache is gone again/invalidated and users can use the service normally, because the browser has deleted the cache for you already.
Or you can also choose something like 30 minutes of course.
This will cache static files for 7 days (since i dont expect openwebui to change css jpg and other image files etc. that often
and this belongs inside the main location area and will ensure cache gets invalidated after 12hrs
@Classic298 commented on GitHub (Jan 23, 2025):
@shiraz-shah please close the issue if your error is solved
thanks!
and happy to help
@shiraz-shah commented on GitHub (Jan 23, 2025):
Oops, of course. Done!
@CallumJHays commented on GitHub (Feb 25, 2025):
Feel it would be worth setting
no-cacheon files served from the/staticdirectory.Strangely it looks like fastapi's
mountdoesn't support this without some middleware or subclassingStaticFiles.