Tolerate interrupted model downloads #173

Closed
opened 2025-11-11 14:09:34 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @robertvazan on GitHub (Jan 12, 2024).

Bug Report

Description

Bug Summary:
If model download is interrupted (perhaps by restarting ollama as a workaround to #456), WebUI gets stuck on the download. It is impossible to retry the download nor is it possible to download anything else. The problem persists after WebUI restart.

Steps to Reproduce:

  1. Start download of some model.
  2. Restart ollama to interrupt the download.

Expected Behavior:
Download status is cleared and new download attempts are possible.

Actual Behavior:
UI is stuck in download state with progress bar and with download button disabled. This state persists after WebUI restart.

Reproduction Details

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I have reviewed the troubleshooting.md document.
  • I have included the browser console logs.
  • I have included the Docker container logs.
Originally created by @robertvazan on GitHub (Jan 12, 2024). # Bug Report ## Description **Bug Summary:** If model download is interrupted (perhaps by restarting ollama as a workaround to #456), WebUI gets stuck on the download. It is impossible to retry the download nor is it possible to download anything else. The problem persists after WebUI restart. **Steps to Reproduce:** 1. Start download of some model. 2. Restart ollama to interrupt the download. **Expected Behavior:** Download status is cleared and new download attempts are possible. **Actual Behavior:** UI is stuck in download state with progress bar and with download button disabled. This state persists after WebUI restart. ## Reproduction Details **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I have reviewed the troubleshooting.md document. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs.
Author
Owner

@robertvazan commented on GitHub (Jan 12, 2024):

Update: The stuck download disappears and new model downloads are possible after some time. This seems to be due to timeout rather than any user action.

@robertvazan commented on GitHub (Jan 12, 2024): Update: The stuck download disappears and new model downloads are possible after some time. This seems to be due to timeout rather than any user action.
Author
Owner

@justinh-rahb commented on GitHub (Jan 18, 2024):

Lately, while working with larger models, I have encountered some disruptions due to my WAN failing over to backup. If the download progress doesn't vanish by itself eventually during these events, refreshing the page resolves it; however, upon re-downloading the model, the progress bar returns but has restarted progress automatically. Interestingly, should you close or refresh Ollama WebUI during this time, inputting the previously downloading model name will bring back the progress bar. It appears that in these instances, the background task can restart itself and persists as Ollama continues to download without needing a full reset. I have been unable to reproduce any permanently stuck downloads so far; at worst, refreshing and starting over has sufficed.

@justinh-rahb commented on GitHub (Jan 18, 2024): Lately, while working with larger models, I have encountered some disruptions due to my WAN failing over to backup. If the download progress doesn't vanish by itself eventually during these events, refreshing the page resolves it; however, upon re-downloading the model, the progress bar returns but has restarted progress automatically. Interestingly, should you close or refresh Ollama WebUI during this time, inputting the previously downloading model name will bring back the progress bar. It appears that in these instances, the background task can restart itself and persists as Ollama continues to download without needing a full reset. I have been unable to reproduce any permanently stuck downloads so far; at worst, refreshing and starting over has sufficed.
Author
Owner

@robertvazan commented on GitHub (Jan 18, 2024):

I cannot reproduce this anymore. Has anything changed that could have an effect on the issue?

@robertvazan commented on GitHub (Jan 18, 2024): I cannot reproduce this anymore. Has anything changed that could have an effect on the issue?
Author
Owner

@tjbck commented on GitHub (Jan 18, 2024):

@robertvazan not that I know of 😅, I'll close this issue then!

@tjbck commented on GitHub (Jan 18, 2024): @robertvazan not that I know of 😅, I'll close this issue then!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#173