[GH-ISSUE #5803] Deleting models from the Web UI does not work if they have been renamed #14132

Closed
opened 2026-04-19 20:35:50 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @robertosw on GitHub (Sep 29, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5803

Bug Report

When trying to delete a model using the admin panel, this only works if the model has not been renamed. Otherwise the user assigned name will be used in the delete request and an error will pop up that the model could not be deleted.

I added some icons to the models to distinguish between their use cases, so I renamed phi3 from phi3:14b to 💬 phi3 and get this error:
image

Installation Method

docker run \
                              -e OLLAMA_BASE_URL=http://ollama:11434 \
                              --name open-webui -p 8080:8080 --network local-llms \
                              ghcr.io/open-webui/open-webui:0.3.30

Environment

  • Open WebUI Version: v0.3.30

  • Ollama: v.0.3.6

  • Operating System: linux 6.10.11 | NixOS 24.11

  • Browser (if applicable): Mozilla Firefox 130.0.1

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
    • All ollama versions since 0.3.6 have a bug which leads to segmentation faults
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Docker container logs

INFO  [open_webui.apps.ollama.main] url: http://ollama:11434
ERROR [open_webui.apps.ollama.main] 400 Client Error: Bad Request for url: http://ollama:11434/api/delete
Traceback (most recent call last):
  File "/app/backend/open_webui/apps/ollama/main.py", line 478, in delete_model
    r.raise_for_status()
  File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://ollama:11434/api/delete
INFO:     172.20.0.1:40838 - "DELETE /ollama/api/delete/0 HTTP/1.1" 500 Internal Server Error
INFO  [open_webui.apps.ollama.main] get_all_models()
INFO:     172.20.0.1:40838 - "GET /api/models HTTP/1.1" 200 OK
Originally created by @robertosw on GitHub (Sep 29, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/5803 # Bug Report When trying to delete a model using the admin panel, this only works if the model has not been renamed. Otherwise the user assigned name will be used in the delete request and an error will pop up that the model could not be deleted. I added some icons to the models to distinguish between their use cases, so I renamed phi3 from `phi3:14b` to `💬 phi3` and get this error: ![image](https://github.com/user-attachments/assets/610abbad-ef8d-487c-b1d3-18ec6fea0041) ## Installation Method ```shell docker run \ -e OLLAMA_BASE_URL=http://ollama:11434 \ --name open-webui -p 8080:8080 --network local-llms \ ghcr.io/open-webui/open-webui:0.3.30 ``` ## Environment - **Open WebUI Version:** v0.3.30 - **Ollama:** v.0.3.6 - **Operating System:** linux 6.10.11 | NixOS 24.11 - **Browser (if applicable):** Mozilla Firefox 130.0.1 **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - All ollama versions since 0.3.6 have a bug which leads to segmentation faults - [ ] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Docker container logs ```shell INFO [open_webui.apps.ollama.main] url: http://ollama:11434 ERROR [open_webui.apps.ollama.main] 400 Client Error: Bad Request for url: http://ollama:11434/api/delete Traceback (most recent call last): File "/app/backend/open_webui/apps/ollama/main.py", line 478, in delete_model r.raise_for_status() File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://ollama:11434/api/delete INFO: 172.20.0.1:40838 - "DELETE /ollama/api/delete/0 HTTP/1.1" 500 Internal Server Error INFO [open_webui.apps.ollama.main] get_all_models() INFO: 172.20.0.1:40838 - "GET /api/models HTTP/1.1" 200 OK ```
Author
Owner

@tjbck commented on GitHub (Oct 19, 2024):

Fixed on dev!

<!-- gh-comment-id:2423660206 --> @tjbck commented on GitHub (Oct 19, 2024): Fixed on dev!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#14132