borg-backup-ui icon indicating copy to clipboard operation
borg-backup-ui copied to clipboard

Handle filesystem I/O errors during restore-test repository probing

Open borg-codex-bot opened this issue 1 month ago • 0 comments

A Restore Test crashes with an uncaught OSError from Path.is_dir() when an Unraid USB device has been disconnected without unmounting and its stale mount returns EIO (errno 5).

Expected behavior:

  • Treat a local filesystem access error during repository availability probing as an unavailable repository.
  • Persist a normal report with a failed repository-reachability step, untested subsequent steps, and actionable mount/device guidance instead of a traceback.
  • Keep the existing unavailable exit code, worker/supervisor protocol, and cleanup behavior.
  • Do not start Borg or access passphrase material after the probe fails.

Validation: reproduce EIO and related path-access errors, missing paths, the normal reachable path, SSH bypass, and resource-worker report publication. Add a user-facing release-note fragment.

This follow-up will ship with the current Restore Tests changes in PR #611.

borg-codex-bot avatar Oct 27 '26 12:10 borg-codex-bot