Skip to content

Admin playback commands fail when the request lands on another API replica #2283

Closed

Description

@Rhainland

Problem

Administrator playback commands only work on the API replica that holds the session. In a deployment with more than one API replica, Pause, Resume, Stop and Message from the Activity page fail with "This playback session has already ended." whenever the admin request lands on a different replica than the one serving the player. Operators running Silo as a cluster cannot reliably control active playback.

The playback session, its realtime control lane (RealtimeHub) and the sequenced command ledger all live in the memory of the process that serves the session. An admin request on another replica finds no local session and answers 404. Terminate partly works: it revokes the attempt durably through the stopped attempt row and the stream deny marker, but answers delivery: "unavailable", so the player is not told and the owning replica keeps its in-memory session until idle expiry.

Reproduction

Commands assume the repository root is the cwd.

  1. Run two API replicas against the same Postgres and Redis, behind a load balancer without admin-route affinity.
  2. Start playback on a client; note which replica serves its control socket.
  3. Send POST /api/v2/admin/sessions/{id}/pause to the other replica. It answers 404 not_found ("Playback session not found.").

Single-node deployments and remote transcode nodes are not affected; this was checked during the #1205 validation with a separate transcode node.

Possible direction

Route admin commands to the replica that owns the session's control lane, for example by publishing the command on Redis (the event bus already spans replicas) and letting the owning replica dispatch it and record the receipt, or by recording lane ownership so the receiving replica can forward the request. The command ledger's applied-once ordering has to survive that hop.

Related: #1205 (validation), #305 (cross-node enforcement for terminate and caps)

Activity

  1. added
    bug
    impact: usability
    priority: P1
    on Oct 11, 2026
  2. silo-triage commented on Oct 11, 2026

    @silo-triage

    Which Silo version or commit and playback client did you use for the two-API-replica reproduction? That will help distinguish this routing failure from the unreachable-player fallback addressed in #2280.

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

    bugimpact: usabilitypriority: P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions