Skip to content

Keep cached files safe when upload metadata is damaged - #13

Merged
alphasixtyfive merged 1 commit into
mainfrom
repair/cache-metadata-20261128
Nov 28, 2026
Merged

alphasixtyfive merged 1 commit into
mainfrom
repair/cache-metadata-20261128

Conversation

@alphasixtyfive

Copy link
Copy Markdown
Owner

A damaged rclone cache-metadata file currently appears as “Upload status unavailable,” even when rclone is reachable. Show “Cache metadata needs attention” with a recovery dialog and include the distinction in diagnostic reports.

“Back up and recheck” preserves and hashes the original metadata and cached bytes, fetches a separate server copy, and proceeds only when the files match and the cache/process remain unchanged. It reads the mounted file so rclone can refresh its own metadata. It never trims JSON, deletes cache files, uploads local bytes, terminates a process or overrides upload protection. Differences, locks, cancellation and account changes retain the backups and stop recovery.

Validation:

  • Full local build: 1,481 tests passed; two optional/elevation-dependent cases skipped. MSI and Setup compiled without warnings.
  • All 450 App tests passed with one available CPU. The compiled recovery dialog was checked at 100%, 150% and 200% scaling, including progress, cancellation and backup access.
  • Real rclone VFS/WebDAV regression with a disposable local backend, plus mismatched-server, concurrent-change, lock, cancellation and malformed/dirty-metadata cases.
  • Live repair on the affected PC: backed up both originals, independently downloaded identical server bytes, and used a read-only mount read. Rclone rewrote valid metadata; the installed host reported fresh status and no queued uploads. No server write or cache deletion was used.

The app changes are for review. No new release or production installation is included.

@alphasixtyfive
alphasixtyfive marked this pull request as ready for review November 28, 2026 16:55
@alphasixtyfive
alphasixtyfive merged commit 82f0fb5 into main Nov 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant