Desktop updater reports exhausted network retries and environment install failures to Sentry as errors
Milestone: Nov 9 - Nov 13 · Parent: tinyhumansai/team#46
Sentry issues covered
7 Sentry issue(s), 1065 events in total, up to 7 users on a single issue. Releases seen: 0.54.0, 0.57.18, 0.57.44, 0.58.7, 0.63.9, 0.63.12, 0.64.4, 0.64.7, 0.64.10, 0.64.14.
| Sentry | Project | Events | Users | Releases | Last seen |
|---|---|---|---|---|---|
| TAURI-RUST-4KF | tauri-rust | 717 | 2 | 0.54.0, 0.57.18, 0.63.12, 0.63.9 | 2026-10-31 |
| TAURI-RUST-HSX | tauri-rust | 341 | 7 | 0.63.12, 0.63.9, 0.64.10, 0.64.4, 0.64.7 | 2026-11-07 |
| TAURI-RUST-16ZB | tauri-rust | 2 | 0 | 0.58.7, 0.64.10 | 2026-11-09 |
| TAURI-RUST-16WJ | tauri-rust | 2 | 0 | 0.57.44 | 2026-11-04 |
| TAURI-RUST-174F | tauri-rust | 1 | 0 | 0.64.14 | 2026-11-06 |
| TAURI-RUST-1690 | tauri-rust | 1 | 1 | 0.64.4 | 2026-10-29 |
| TAURI-RUST-162V | tauri-rust | 1 | 1 | 0.64.10 | 2026-10-27 |
What happens
download_app_update retries transient (reqwest) download errors and, when retries run out, logs [app-update] download failed after N attempt(s): {e} at error level; install_app_update logs every install failure at error level. Most of what arrives is the user's network or install location: truncated bodies (error decoding response body, HSX: 341 events, 7 users), 504s from the download host (16ZB), a signature check failing on a truncated/proxied download (174F), and install failures from a read-only location (16WJ, os error 30), a macOS app that cannot be moved into place (1690) and access denied on Windows (162V). 4KF (invalid updater binary format, 717 events, 0.54-0.63.12) is the Linux updater rejecting a non-AppImage install. There are no 0.64.15 events only because no newer release exists yet; the code is unchanged on main, so these will return with the next release.
Likely code path
crates/openhuman-app/src/lib.rsdownload_app_update(~line 668-715,log::error!onRetryDecision::GiveUp) andinstall_app_update(~line 780,log::error!("[app-update] install failed: {e}"))crates/openhuman-app/src/app_update.rsis_transient_updater_err(onlyError::Reqwest)crates/openhuman-core/src/core/observability.rsUPDATER_TRANSIENT_MESSAGE_PHRASES(check side only)
Suggested fix
- When the final download error is transient (reqwest decode/timeout/5xx), log at warn and let the UI show the retry option; keep error level for signature failures only when the download completed in full.
- Classify install failures by io kind: read-only filesystem, permission denied and macOS move-into-place failures are environment (warn plus a user-facing hint such as 'move OpenHuman to Applications'); keep error for the rest.
- For Linux non-AppImage installs, skip the in-app updater (or tell the user to update via their package) instead of attempting and failing.
- Tests for the classification helper.
Done when
- [ ] A regression test reproduces the failure (or the misreport) and passes with the fix
- [ ] The fix is merged to
main - [ ] The Sentry issues above are resolved in the next release, and stay quiet on builds that carry the fix
Updater download/install failures that are really user-environment issues (transient network errors, read-only install locations, macOS move-into-place, Windows access denied, non-AppImage Linux installs) are logged at error level and flooded to Sentry (7 issues, ~1065 events). Suggested fix: classify transient download errors and io-kind install failures as warn with user-facing hints, keep error for genuine failures, skip in-app updater for Linux non-AppImage, and add tests. This is an observability/noise misreport with workarounds (users still get retry option), not a broken core path, so p2. No candidate matches the same underlying problem.
Labelled priority: p2.