mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #12121] issue: Function deactivated after container restart due to missing extra dependencies #32003
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 @almajo on GitHub (Mar 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12121
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Linux
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
After I restart the docker container I want to have the same state as before. Every function that was activated before, should be activated again.
Actual Behavior
When a function has extra dependencies, the function crashes on startup and thus is being deactivated by openwebui.
Steps to Reproduce
requirements: ...to the docstring on top)Logs & Screenshots
...
Additional Information
The problem can be manually resolved by opening the function and press "Save" - which triggers the install of relevant requirements.
It would be great if we could trigger this process automatically on startup.
@MoMia7 commented on GitHub (Mar 31, 2025):
+1 here, I lose dependencies. Planning to fix this with a tool server soon when its released but would be nice to have a temp solution until then
@Lutherwaves commented on GitHub (Apr 1, 2025):
+1, not only tool dependencies are lost, but also unless env variables are set to define RAG completely, if a re-ranking model setting exists, it causes conflicts as it tries to install it on transformers, which obviously fails. More details I posted in https://github.com/open-webui/open-webui/issues/12314
@rndmcnlly commented on GitHub (Apr 7, 2025):
+1 from me too.
I'm prototyping a larger system where I can't store any user data on the local disk at all. OWUI does a pretty good job of supporting this with the
STORAGE_PROVIDERandDATABASE_URLconfig options. SettingDATA_DIR=/dev/shm/owui-dataeven moves temporary storage files into RAM. I was hoping that the resulting system would be effectively stateless, but the need to reinstall python tool dependencies was revealed as a hidden element of state. Ideally, if someone has set STORAGE_PROVIDER/DATABASE_URL/DATA_DIR to either known-persistent or known-ephemeral locations, users shouldn't be able to notice when the app is moved to a new machine or the enclosing Docker container is restarted. If tools mentioned in the DB are scanned on first launch, I think that would satisfy my setting.@Classic298 commented on GitHub (Apr 7, 2025):
I think you can set a 'requires' or 'requirements' comment in the tool's comment head, which openwebui will recognize and automatically install the requirements noted there.
So on tool import, any requirements will be installed and you more or less achieved statelessness?
@Lutherwaves commented on GitHub (Apr 7, 2025):
The issue I am referring to is for a tool that already has these requirements, maybe I am doing something wrong - example tool is https://openwebui.com/t/lutherwaves/todoist
@Lutherwaves commented on GitHub (May 5, 2025):
Confirming this is no longer an issue with latest release https://github.com/open-webui/open-webui/releases/tag/v0.6.6