Skip to content

🐛Playback of any video file over Cloudflare Tunnel (via Immich) causes stream to be canceled #1519

@aspiziri

Description

@aspiziri

Describe the bug
When accessing Immich hosted on my local network via a Cloudflare Tunnel I run into the following error any time I attempt to interact with any video file:

2025-08-15T19:00:25Z ERR  error="stream 109 canceled by remote with error code 0" connIndex=1 event=1 ingressRule=6 originService=http://{removed}
2025-08-15T19:00:25Z ERR Request failed error="stream 109 canceled by remote with error code 0" connIndex=1 dest=https://immich.{removed}/api/assets/{removed}/video/playback?c={removed} event=0 ip={removed} type=http

To be clear - Immich loads completely fine, I can navigate and use the app perfectly fine for photos, making configuration changes, etc. But the second I even mouse over the thumbnail of a video (which would normally start playing a preview) it hangs in the UI and the above error is thrown in the Cloudflare logs.

This is a 100% repro.

I've see multiple other related bugs (#1105 and #1300 ) but in those ingressRule is 0 and in mine it is 6. I don't know if that helps identify anything specific to debug.

To Reproduce
Steps to reproduce the behavior:

  1. Access Immich through a Cloudflare Tunnel
  2. Try and play back a video file of any kind

If it's an issue with Cloudflare Tunnel:
4. Tunnel ID : aa57fc79-c207-419b-a614-9bff2255d1a1
5. cloudflared config:

Expected behavior
The video would start playing back.

Environment and versions

  • OS: Any/all
  • Architecture: Any/all
  • Version: Any/all

Logs and errors

2025-08-15T19:00:25Z ERR  error="stream 109 canceled by remote with error code 0" connIndex=1 event=1 ingressRule=6 originService=http://{removed}
2025-08-15T19:00:25Z ERR Request failed error="stream 109 canceled by remote with error code 0" connIndex=1 dest=https://immich.{removed}/api/assets/{removed}/video/playback?c={removed} event=0 ip={removed} type=http

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: NormalMinor issue impacting one or more usersType: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions