Shuffling causes (semi)reliable 502 errors

Issue description:

I added my Jellyfin Server to Symfonium and noticed that Symfonium often reports that Jellyfin is offline.
This shows up as soon as (or in correlation to) me creating a playlist using library>songs>shuffle
which creates a 2031 song long playlist.
As soon as I start playing / skipping some songs I get the error that the media is not supported.

Logs:

debug-20230317_202508.zhttps://support.symfonium.app/t/shuffling-causes-semi-reliable-502-errors/1669ip (2.9 MB)

Screenshots:


Screenshot shows the uptime status, yellow is when shuffling all songs to a random playback

Additional information:

So I looked into this, as good as I could.

  1. I installed an uptime monitor to check the availability of the subdomain
  2. changed cloudflares cname from proxied to non-proxied
  3. tried enabling “slower downloads” in the Advanced settings

As shown in the screenshot, after creating the playlist, jellyfin goes into 502 mode (yellow lines in the graph).

Is there anything I can change to fix this?

2023-03-16 20:21:54.042 Verbose/JellyfinLogger: <-- [160] <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>openresty</center>
</body>
</html>

2023-03-16 20:21:54.043 Error/JellyfinLogger: Request Error: 502 [<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>openresty</center>
</body>
</html>
]

The logs only shows your proxy answer. You need to check your proxy logs to see if there’s rate throttling security or things like that and the error is from the proxy.
Or you need to check Jellyfin logs to why it stop answering to the proxy.

The errors occurs regularly but most of the time only once or twice.

There’s nothing obvious in the logs, you have enabled Playback cache, so this triggers up to 2 simultaneous downloads to cache current song and the next one.
I can see some cases where it causes no issues too.

So nothing obvious in the logs, and no strange behavior from Symfonium either;

sorry for the late reply, was a bit busy.
I have done some further testing and have decided that, for me, it is easier to switch from jellyfin as music provider to Navidrome

If you do not need multi genre or multi artists then it’s probably a wise choice for music yes.