Skip to content

bug: auto-updater broken on Bazzite (rpm-ostree) — uses rpm -U where rpm-ostree update is required #244

Closed

Description

@EVWorth

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

  1. Install SQLPilot 0.3.4 on Bazzite: rpm-ostree install SQLPilot-0.3.4-1.x86_64.rpm
  2. Open the app. Status bar shows green "Update to v0.4.0" chip (manifest correctly includes linux-x86_64-rpm).
  3. Click it.
  4. PolKit prompts for password (twice — once for rpm, again for rpm -U or a preinstall script).
  5. 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-ostree manages packages as atomic OSTree layers pinned to the host's deployment.
  • Plain rpm -U against 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 an rpm-ostree update).
  • rpm-ostree install foo.rpm is 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:

  1. Detect rpm-ostree at update-check time (/usr/bin/rpm-ostree --version exits 0 = atomic)
  2. Either:
    a. Skip the in-app update chip and surface a "manual update required" message with the rpm-ostree update command, OR
    b. Implement a custom updater command that does rpm-ostree install <downloaded.rpm> + reboot prompt
  3. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions