Skip to content

[bug] Desktop app exits about 20 s after a core update or update check, leaving the Guard daemon running #5046

Open

Description

@Vyeche

What happens

After HOL Guard Desktop installs a Guard core update, or runs a tray update check, it reloads the dashboard. About 15–20 seconds later the app exits. There's no error dialog: the window and tray icon just go away, and I have to relaunch the app.

The next launch then finds the previous Guard daemon still running (runtime_inventory_stale daemon_roots=1 stale_roots=1). It spends about 10 s stopping it (daemon_stop_ok, "The live Guard daemon was stopped before the bootstrap retry"), so startup takes about 16 s instead of about 5 s. The leftover daemon suggests the app process didn't shut down normally.

Environment

  • HOL Guard Desktop 3.0.131 and 3.0.136 (AppImage), on Linux x86_64, Pop!_OS with COSMIC (Wayland)
  • Seen across core updates from 3.44.0 to 3.50.0a1

Evidence (desktop-startup.jsonl, times UTC)

Last events before the app went away App gone (AppImage mount released) Next launch
10-16 04:35:03 core_update activated, 04:35:21 dashboard reload (document loaded twice) — 04:35:38, runtime_inventory_stale, then daemon_stop_ok
10-17 14:02:15 core_update activated (3.50.0a1), 14:02:22 dashboard reload 14:02:43 14:02:45, runtime_inventory_stale, then daemon_stop_ok
10-17 14:04:19 tray_update_check completed, 14:04:20 dashboard reload 14:04:38 14:04:42, runtime_inventory_stale, then daemon_stop_ok
10-15 00:37:49 dashboard reload (document loaded twice) — 00:38:04

What the logs don't show:

  • No error recorded. desktop-startup.jsonl has no event for the exit itself. The last entry is always the dashboard reload.
  • No crash record from the system. The kernel logged no segfault or trap, and /var/crash has nothing for the app.
  • No stderr. The AppImage is started directly, so its error output isn't captured anywhere.

Repro (not reliable)

  1. Open the dashboard in the desktop app.
  2. Let it install a core update, or choose the tray's update check.
  3. Wait about 30 s. Sometimes the app exits.

Questions

  • Does the app log its exit reason anywhere, for example a Tauri or WebKitGTK panic, a crashed WebView process, or the core returning an error? If not, an exit diagnostic in desktop-startup.jsonl would make this diagnosable.
  • Is reloading the WebView while the core restarts the daemon after activation a known risk?

Next time, I'll run the AppImage from a terminal so its stderr is captured, and add the output here.

Activity

  1. Vyeche commented on Oct 18, 2026

    @Vyeche
    CollaboratorAuthor

    A related update-time symptom on 3.0.136, going from core 3.50.0a3 to 3.50.0a5. This time the app didn't exit, but for about two minutes it showed "Guard is not responding", still labelled v3.50.0a3 with "3.50.0a5 is ready", instead of the "Switching to the new version" progress screen. It then recovered on its own.

    From desktop-startup.jsonl (UTC, one app process throughout) and the core folder:

    Time Event
    23:15:56 App launched right after boot; runtime_selection → 3.50.0a3; the a3 daemon starts, and the dashboard loads at 23:16:03
    23:16:07 versions/3.50.0a5/hol-guard written outside the app. The folder name has no digest, like the 10-16 3.47.0a9 → 3.47.0a9-<digest> pair
    23:17:59 core_update detected external_install_detected, then daemon_stop_ok; external_install_activated follows at 23:18:04
    23:18:14–29 preflight, then activation_bootstrap; the a5 daemon starts at 23:18:27
    23:18:31 core_update staged harness_rebind_deferred: "HOL Guard was updated. Open Repair Protection to finish connecting you…"

    So it took about 1 min 52 s from the external install to the app noticing it, and Guard was down for about 30 s while switching. During the switch the window showed the generic "not responding" error, with no update progress. Two questions:

    • Should an install the app didn't run be noticed sooner?
    • Should the "not responding" screen say an update is being applied while core_update is in progress?
  2. Vyeche commented on Oct 20, 2026

    @Vyeche
    CollaboratorAuthor

    Another occurrence today on Desktop 3.0.136, this time with no manual update. It came from Core's own auto-update.

    Timeline (UTC, 2026-10-20). The PC booted at 13:33:58 after being off overnight.

    time source event
    13:41:27 desktop log desktop_launch with Core 3.50.0a5
    13:41:32 daemon.log daemon pid 14933 daemon_ready; start_queue_and_cloud_workers (Guard Cloud connected, alpha channel)
    13:41:40 desktop log dashboard_document loaded
    13:41:50 files core/versions/3.50.0a8/hol-guard written; managed/codex/authority-mutations.jsonl gets managed.install rows
    13:41:50 daemon-lifecycle pid 14933 retirement_requested, reason: managed_retirement
    13:41:50 – 13:43:29 no daemon on 5245; the window stays on "Loading Local approval center…"
    13:43:29 desktop log core_update detected: "The recorded Core pointer names 3.50.0a8 while this session is on 3.50.0a5"
    13:43:35 desktop log core_update completed, externally installed Core verified and serving

    guard_auto_update_state shows auto_updatable: true. Its last check was the new a8 daemon at 13:43:35 (no update available), so the a5 daemon's earlier check was overwritten. The a5 daemon.log has no line about the update or its retirement. Startup ends at warm_desktop_bootstrap_cache (13:41:40), so the only record of why it stopped is the lifecycle file.

    So the trigger is runtime/auto_update.py (maybe_auto_update from the command-queue worker) running right after startup, because the 6-hour throttle had expired overnight. The Desktop took 99 s to adopt the new Core. The app didn't exit this time.

    The current.json watcher and update screen in hol-guard-desktop#543 should cover this. Two small asks on the Core side:

    1. Log the auto-update itself (Auto-update: applying update … is info, but it didn't reach daemon.log).
    2. Consider skipping the auto-update in the first minutes after a daemon start, while the Desktop is still loading the dashboard.
  3. Vyeche commented on Nov 3, 2026

    @Vyeche
    CollaboratorAuthor

    Data point from 2026-11-03: the Linux desktop app updated Guard CLI 3.59.0a43 → 3.59.0a45 from the in-app updater. The app stayed open afterwards and didn't exit about 20 s later as described above. That's one clean update, not proof it's fixed. I'll keep watching the next few updates before suggesting we close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions