Prune can't preview or delete as think another operation is already in progress
Hi,
I have an issue with the prune tool. Server crashed during a preview and from this each time I run a preview or a delete operation it reports:
- if preview: Preview failed: A prune operation is already in progress. Please wait for it to complete.
- if deletion: 22:05:48 WARNING Prune operation already in progress (started 2026-08-03 20:09:59.460384, operation 990aaafb)
Happy to share additional info if needed. Is there a way to perform a manual cleanup to clear locks from the last uncomplete operation ?
the lock is a crash safety net with a 2 hour timeout: it clears itself 2 hours after the crashed run last touched it, so this resolved on its own the same evening. your log actually shows it, the blocked attempt at 22:05 was 4 minutes before the lock from the 20:09 run expired.
if you want to clear it immediately next time: delete the file .prune.lock in open webui's cache directory (in docker: /app/backend/data/cache/.prune.lock). takes effect right away, no restart needed. if you have redis configured there is also a redis-side lock, it expires within the same 2 hours on its own, or delete the open-webui:prune:running key to clear it instantly.
if the preview itself is what crashed the server (rather than something unrelated taking it down), the log lines right before the crash would interest me.
Thanks for the detailed answer, wasn't aware of this lock system. I think it was the delete operation that crashed. If that happen in preview mode, I'll share the log.