Repository navigation
fix(memory): serve media archived while the wiki is running - #120
Merged
Merged
Conversation
A screenshot filed from a capture room showed on its wiki page as a broken image, and its File link answered 404, until the wiki container was next recreated. The media archive writes through a temporary `.tmp-*` file beside the target and renames it into place; ffmpeg derivatives are written the same way and take long enough for the wiki's file watcher to report them. Quartz then asks its Assets emitter to copy or unlink a path that is already gone, and the emitter throws. Quartz 4.5.2 keeps every change since startup and replays them on each rebuild, so the failure repeats: the process exits, or later assets never reach the site. Exclude `media/**/.tmp-*` from Quartz's content, which also removes the files from what the watcher reports. Fixes: 03e1708 ("feat(memory): keep the original file behind a wiki page (#92)")
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.tmp-*files that are renamed into place. The wiki's watcher reported them, Quartz failed copying or unlinking a path already gone, and replayed that failure on every rebuild. The archive's temporary files are now excluded from the wiki's content.