[GH-ISSUE #2052] [FR]: cli command to fix broken images (and maybe preload missing ones)? #1082

Open
opened 2026-02-26 02:35:10 +03:00 by kerem · 2 comments
Owner

Originally created by @AEnterprise on GitHub (Aug 15, 2025).
Original GitHub issue: https://github.com/koel/koel/issues/2052

Originally assigned to: @phanan on GitHub.

Description

Currently there is no way to fix broken images (missing on disk, after a docker update or wrong manipulation in moving mounted files around). I'd like to make a koel:verify-images command. This would go through all the images it expects to exist in the database. If it cant find the file it would clear the field in the db so it can be re fetched.

Ideally this would have a flag to then fetch the missing images as well, or maybe that would make more sense as a separate command.

Additional information

I'd like to try making it myself but it's probably quite a bit of work not being very familiar with the codebase so figured i'd open an issue first to make sure this is actually wanted or not before putting in the work

Originally created by @AEnterprise on GitHub (Aug 15, 2025). Original GitHub issue: https://github.com/koel/koel/issues/2052 Originally assigned to: @phanan on GitHub. ### Description Currently there is no way to fix broken images (missing on disk, after a docker update or wrong manipulation in moving mounted files around). I'd like to make a koel:verify-images command. This would go through all the images it expects to exist in the database. If it cant find the file it would clear the field in the db so it can be re fetched. Ideally this would have a flag to then fetch the missing images as well, or maybe that would make more sense as a separate command. ### Additional information I'd like to try making it myself but it's probably quite a bit of work not being very familiar with the codebase so figured i'd open an issue first to make sure this is actually wanted or not before putting in the work
Author
Owner

@phanan commented on GitHub (Aug 21, 2025):

I'd gladly accept a PR!

<!-- gh-comment-id:3211650905 --> @phanan commented on GitHub (Aug 21, 2025): I'd gladly accept a PR!
Author
Owner

@Jacob-Noah commented on GitHub (Sep 19, 2025):

Is there a way to force a refresh of images by clearing specific fields in the database? I can't seem to figure out how to actually restore the images even manually.

<!-- gh-comment-id:3313666159 --> @Jacob-Noah commented on GitHub (Sep 19, 2025): Is there a way to force a refresh of images by clearing specific fields in the database? I can't seem to figure out how to actually restore the images even manually.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#1082
No description provided.