You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] Jellyfin-protocol playback never recovers when its transcode node dies #2297
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.
Activity
fix(jellycompat): move a transcode off a dead transcode node
fix(jellycompat): move a transcode off a dead transcode node