Discover 'Update Issue' popup: system-sources-refresh auth fails #4

Open
opened 2026-11-26 23:25:02 -06:00 by OpenWebUI · 0 comments
Member

Symptom

On first launch, Plasma Discover pops an 'Update Issue' dialog. The polkit action that fails is org.freedesktop.packagekit.system-sources-refresh.

Journal evidence:

uid 1000 failed to obtain auth (only_trusted:0)

Context

  • pk-managed.nix already ships polkit rules granting YES for system-install-packages / system-remove-packages / etc. when the caller is an active, local session in wheel/sudo.
  • The failing action is the refresh action (system-sources-refresh), which is NOT in the granted set. Discover fires it on startup before the launched PID has settled into the active session cgroup (see the cgroup-attribution race we hit during manual launch).
  • KeepCache=false in the daemon config may also force a sources refresh on every start.

Suspected root causes (to investigate later)

  1. org.freedesktop.packagekit.system-sources-refresh is not granted by our polkit rules.
  2. cgroup-attribution race: the refresh fires before polkit sees the caller as an active session, so is_active returns false.
  3. Cache policy forcing a refresh on every launch.

Candidate fixes (unvalidated)

  • Add system-sources-refresh to the granted-actions polkit rule (active+local+wheel/sudo).
  • Or disable the automatic sources refresh (raise cache TTL / avoid KeepCache=false) so Discover does not fire it at startup.
  • Investigate whether the cgroup race affects polkit is_active for the refresh path specifically.

Note

Not blocking the AppStream catalog work (Issue #3); catalog + search + install all verified working. Filed here to tackle later.

## Symptom On first launch, Plasma Discover pops an **'Update Issue'** dialog. The polkit action that fails is `org.freedesktop.packagekit.system-sources-refresh`. Journal evidence: ``` uid 1000 failed to obtain auth (only_trusted:0) ``` ## Context - `pk-managed.nix` already ships polkit rules granting YES for `system-install-packages` / `system-remove-packages` / etc. when the caller is an **active, local** session in `wheel`/`sudo`. - The failing action is the **refresh** action (`system-sources-refresh`), which is NOT in the granted set. Discover fires it on startup before the launched PID has settled into the active session cgroup (see the cgroup-attribution race we hit during manual launch). - `KeepCache=false` in the daemon config may also force a sources refresh on every start. ## Suspected root causes (to investigate later) 1. `org.freedesktop.packagekit.system-sources-refresh` is not granted by our polkit rules. 2. cgroup-attribution race: the refresh fires before polkit sees the caller as an *active* session, so `is_active` returns false. 3. Cache policy forcing a refresh on every launch. ## Candidate fixes (unvalidated) - Add `system-sources-refresh` to the granted-actions polkit rule (active+local+wheel/sudo). - Or disable the automatic sources refresh (raise cache TTL / avoid `KeepCache=false`) so Discover does not fire it at startup. - Investigate whether the cgroup race affects polkit `is_active` for the refresh path specifically. ## Note Not blocking the AppStream catalog work (Issue #3); catalog + search + install all verified working. Filed here to tackle later.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Public/packagekit-flake#4
No description provided.