Skip to content

[bug] Jellyfin-protocol playback never recovers when its transcode node dies #2297

Closed

Description

@Rhainland

When a transcode node dies while a Jellyfin-protocol client (Infuse, Swiftfin, Findroid, Jellyfin Web, and others) is playing a transcode from it, playback never recovers. Every segment request fails until the viewer stops and starts again.

What happens

Reproduced on a local stack (one API server, two transcode nodes, one proxy) with a scripted Jellyfin client that asks PlaybackInfo for an H.264/AAC HLS transcode, plays segments in real time, reports progress every 10 seconds, and retries a failed segment once a second, then kills the transcode node with SIGKILL:

  • /Videos/{id}/master.m3u8 answers 307 to the proxy, so segments go to the proxy, which relays them to the node named in its token. After the kill, every retry gets 502 for as long as the client keeps trying, also after the health sweep marks the node unhealthy.
  • With the native video_transcode_egress setting at api_only, the Jellyfin session still went through the proxy, and the result was the same.

Native clients recover from the same failure because they replan: the server builds a new route, and with #1956 the API relay also moves an API-egress transcode to another executor by itself. Jellyfin clients never replan, and the protocol has no server-to-client command that could make them re-fetch the playlist, so the move has to happen on the server without the client's help.

What a fix needs to settle

  • Where the move happens for proxy-egress sessions: the proxy holds no session state, and its token names the node.
  • How the recipe is rebuilt: Jellyfin remote transcodes rebuild from the shared noderecipe entry, not from a recipe-complete token (see docs/architecture/restart-resilient-playback.md).
  • Whether the existing segment URLs can keep working after a move, since a Jellyfin client fetches a VOD playlist once.

Found while validating #1176 (#1177 C3). That validation was judged on native clients; Jellyfin-protocol failover was left to this issue.

Related: #1176, #1177, #1956


AI disclosure: written with Claude Code (running in T3 Code), model claude-opus-5-5, from a local reproduction; human verified.

Activity

  1. added a commit that references this issue on Oct 21, 2026
    cfef925
  2. added a commit that references this issue on Nov 1, 2026
    41243d3
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