Jellyfin Forum
Caddy slow streaming - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access)
+---- Thread: Caddy slow streaming (/t-caddy-slow-streaming)



Caddy slow streaming - Tim Medvedev - 2024-06-08

So set up my server with Caddy as a reverse proxy several days ago, and am getting inconsistent streaming speeds and network usage. Something in the Caddy config is being changed after it runs for a bit and it kneecaps my connection and while thing stream they do so at 4mbps. 

Not using Docker, should I be?

My dns setup is Cloudflare without the Cloudflare proxy so just dns. Running Caddy in a Windows 11 terminal with only the reverse proxy from my domain to my localhost:8096 in my Caddyfile. After i run Caddy reload and stop it and run it again it will run properly, transcoding correctly and with high upload bandwidth, then seemingly something changes if I close the connection and open another one and it tanks to under 10mbps and works incredibly slowly. 

I'm running the proxy on the jellyfin server machine so in Jellyfin i've set the known proxies to 127.0.0.1

Is this something with certificates? Does something need to be set in Jellyfin? I am at a loss and am unsure and am really frustrated as it has moments of working just as I need it to then breaks without a clear error. Is it something with Caddy buffer settings? What are people using in a similar setup that works for them?

The only thing showing up in the Caddy logs is "error": "writing: H3_REQUEST_CANCELLED"}.


RE: Caddy slow streaming - Tim Medvedev - 2024-06-08

(2024-06-08, 03:27 PM)Tim Medvedev Wrote: So set up my server with Caddy as a reverse proxy several days ago, and am getting inconsistent streaming speeds and network usage. Something in the Caddy config is being changed after it runs for a bit and it kneecaps my connection and while thing stream they do so at 4mbps. 

Not using Docker, should I be?

My dns setup is Cloudflare without the Cloudflare proxy so just dns. Running Caddy in a Windows 11 terminal with only the reverse proxy from my domain to my localhost:8096 in my Caddyfile. After i run Caddy reload and stop it and run it again it will run properly, transcoding correctly and with high upload bandwidth, then seemingly something changes if I close the connection and open another one and it tanks to under 10mbps and works incredibly slowly. 

I'm running the proxy on the jellyfin server machine so in Jellyfin i've set the known proxies to 127.0.0.1

Is this something with certificates? Does something need to be set in Jellyfin? I am at a loss and am unsure and am really frustrated as it has moments of working just as I need it to then breaks without a clear error. Is it something with Caddy buffer settings? What are people using in a similar setup that works for them?

The only thing showing up in the Caddy logs is "error": "writing: H3_REQUEST_CANCELLED"}.

Just tried it in Git BASH instead of powershell or terminal and it worked with high bandwidth off the bat.



RE: Caddy slow streaming - TheDreadPirate - 2024-06-08

Can you share your full Jellyfin server log via pastebin? And what are the specs of the server besides Windows 11 as the OS?


RE: Caddy slow streaming - Tim Medvedev - 2024-06-08

(2024-06-08, 04:00 PM)TheDreadPirate Wrote: Can you share your full Jellyfin server log via pastebin?  And what are the specs of the server besides Windows 11 as the OS?

Yep, server specs are a ryzen 5 1600 af and a GTX 1660 super, two jellyfin libraries one on HDD the other on SATA SSD, and then the application itself is on an NVME.

Internet speed is 250 up and down with ports forwarded etc.

https://github.com/Tim-Medvedev/jellyfinLogs/blob/main/log-682024 Here are the logs

(2024-06-08, 04:09 PM)Tim Medvedev Wrote:
(2024-06-08, 04:00 PM)TheDreadPirate Wrote: Can you share your full Jellyfin server log via pastebin?  And what are the specs of the server besides Windows 11 as the OS?

Yep, server specs are a ryzen 5 1600 af and a GTX 1660 super, two jellyfin libraries one on HDD the other on SATA SSD, and then the application itself is on an NVME.

Internet speed is 250 up and down with ports forwarded etc.

https://github.com/Tim-Medvedev/jellyfinLogs/blob/main/log-682024 Here are the logs

and 16gb ram


RE: Caddy slow streaming - TheDreadPirate - 2024-06-09

How are you running caddy? With a caddy file or just running a one liner? Are you doing anything special in Caddy?


RE: Caddy slow streaming - Tim Medvedev - 2024-06-09

(2024-06-09, 01:48 AM)TheDreadPirate Wrote: How are you running caddy?  With a caddy file or just running a one liner?  Are you doing anything special in Caddy?

Basically just the one liner for reverse proxy but in the caddy file

Jellyfin.hostname.com {
     reverse proxy localhost:8096
}

No other config