Skip to content

fix(apps): restart a crashed app manager and avoid a false stale catalog after staging #655

Done

Description

@RentnerKev

Problem

  • docker/production/entrypoint.sh:132-136 starts the app manager once and only logs when it exits. After a crash, apps stay down until the container restarts.
  • core/src/app_install/browse.rs:68-71 takes now before a catalog fetch of up to 120 s. If staging stores a newer checkpoint during the fetch, previous(now) fails (core/src/app_install/catalog.rs:118,125-126) and finish_refresh marks the catalog Stale for 60 s (core/src/app_manager/catalog.rs:360-369). Installs keep working from the cached entries, but the catalog shows a false error.

Proposal

  • Restart the app manager with backoff, the same way other supervised processes are handled, and surface repeated crashes.
  • Read now after taking the lock in refresh_in_background, or retry once when the checkpoint moved during the fetch.

Acceptance

  • Test: killing the app manager restarts it and running apps come back.
  • Test: a refresh that overlaps staging does not mark the catalog stale.

Found in the app platform audit of 2026-11-30.

Activity

  1. added
    bug
    area: runtime
    on Nov 30, 2026
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

    area: runtimebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions