Repository navigation
Description
Summary
The auto-updater's .rpm install path shells out to rpm -U as root. On Bazzite (rpm-ostree atomic), this fails silently — the update chip flips to "failed" with no error string.
Reproduction
- Install SQLPilot 0.3.4 on Bazzite:
rpm-ostree install SQLPilot-0.3.4-1.x86_64.rpm - Open the app. Status bar shows green "Update to v0.4.0" chip (manifest correctly includes
linux-x86_64-rpm). - Click it.
- PolKit prompts for password (twice — once for
rpm, again forrpm -Uor a preinstall script). - After auth, status flips to red "failed". No error message in the UI.
Root cause
The Tauri updater runs:
/usr/bin/rpm -U /tmp/.tauri_updateVHWHGhP/package.rpm
This is correct on traditional rpm-based distros (Fedora Workstation, RHEL). It does not work on Bazzite because Bazzite uses rpm-ostree:
rpm-ostreemanages packages as atomic OSTree layers pinned to the host's deployment.- Plain
rpm -Uagainst an rpm-ostree system writes to /var/lib/rpm, which is shadowed by the OSTree tree. The new package either fails silently or appears only in /var/lib/rpm (invisible to the running system until the user does anrpm-ostree update). rpm-ostree install foo.rpmis the correct invocation. It layers the package into the active deployment, requiring a reboot for the new layers to take effect.
This was flagged in the 0.4.0 update-system audit (#236+). The auto-update manifest is correct for traditional distros. The problem is the install command (rpm -U) is wrong for atomic distros.
Two PolKit prompts
Tauri's updater runs rpm twice — once for rpm --version (or similar precheck) and once for the actual rpm -U install. Each triggers a separate PolKit prompt. Even when both succeed, the second rpm -U invocation is the one that hits the rpm-ostree wall.
Why "failed" without an error
The updater plugin's IPC contract surfaces only { kind: 'error', error: <reason> } at the React layer. The underlying rpm -U exit code / stderr is captured in settingsStore.ts's error handler, but the StatusBar renders only "Update failed" + a Retry button — not the underlying text. Audit followup: pipe the underlying error string into the toast / chip.
Desired behavior
For users on rpm-ostree distros (Bazzite, Fedora Atomic, Bluefin, Aurora, Silverblue, Universal Blue), the auto-update should:
- Detect rpm-ostree at update-check time (
/usr/bin/rpm-ostree --versionexits 0 = atomic) - Either:
a. Skip the in-app update chip and surface a "manual update required" message with therpm-ostree updatecommand, OR
b. Implement a custom updater command that doesrpm-ostree install <downloaded.rpm>+ reboot prompt - Either way, show the underlying error string in the UI when an update fails for any reason (audit point B3 / UX polish).
Scope
Out of scope for 0.4.1 (the imminent patch). Should be a 0.5.0 feature: Bazzite users currently have to manually rpm-ostree install SQLPilot-0.4.0-1.x86_64.rpm from the GitHub release page to update, and accept the reboot. AppImage + Gear Lever is the working auto-update path on Bazzite today; the rpm-ostree branch is a follow-up.
Workarounds for users right now
| Path | Verdict |
|---|---|
| AppImage + Gear Lever | ✅ Works. Not what rpm-ostree users installed. |
Manual rpm-ostree install SQLPilot-0.4.0-1.x86_64.rpm |
✅ Works. Requires terminal + reboot. |
| Click the green "Update to v0.4.0" chip | ❌ Fails silently. Don't bother. |
Acceptance criteria
- App detects rpm-ostree and surfaces a different update path
- Failing updates surface the underlying error string, not just "failed"
- AppImage auto-update path verified on Fedora Workstation (a non-atomic rpm-based distro)
Activity
docs: add RELEASING.md with v0.4.0 release gotchas (#245)
fix: installUpdate guard + surface install errors (#240)
fix: installUpdate guard + surface install errors (#240) (#246)
feat: MenuBar "Check for Updates…" + download progress UI (#247)
fix(updater): manual update path on rpm-ostree distros + error details (
fix(updater): manual update path on rpm-ostree distros + error details (
fix(updater): manual update path on rpm-ostree distros + error details (