Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jellyfin needs cache invalidated #688

Open
fatexs opened this issue Jun 8, 2024 · 6 comments · May be fixed by #795
Open

Jellyfin needs cache invalidated #688

fatexs opened this issue Jun 8, 2024 · 6 comments · May be fixed by #795
Labels
bug Something isn't working

Comments

@fatexs
Copy link

fatexs commented Jun 8, 2024

Since the Jellyfin Player relies on external jellyfin-web the web data seems to be cached.

If the server is not updated this is not an issue.
However if the server is updated the interface breaks is various ways.

In the jellyfin player under overview->Server
it still shows the old web-Version (in my case 10.9.3) even though jellyfin-server was updated to 10.9.6 and jellyfin-web also on 10.9.6.
(I confirmed that via Firefox)

Connecting works fine but playback is broken, no video plays, only audio. Then the player completely freezes.
Server works fine on all other players (androidtv, android, firefox webinterface)

The fix is to delete:
C:\Users\user\AppData\Local\JellyfinMediaPlayer
and
C:\Users\user\AppData\Local\Jellyfin Media Player

My guess is JF Client does never validate if cache data is still valid to use.

To Reproduce
Steps to reproduce the behavior:

  1. run server in old Version
  2. Connect with JF client external
  3. Upgrade Server
  4. Reconnect with client
  5. Interface broken (no video, only audio plays)

Expected behavior
Working interface

Desktop (please complete the following information):

  • OS: Windows 11 23H2
  • Version 10.11.0 / 10.11.1
  • Installation Method windows installer
@fatexs fatexs added the bug Something isn't working label Jun 8, 2024
@fatexs
Copy link
Author

fatexs commented Jun 8, 2024

Jellyfin log after clearing %appdata% .
JellyfinMediaPlayer.log

@gummykage
Copy link

Great workaround! Definitely a bug I've been struggling with thank you for finding it.

@fatexs
Copy link
Author

fatexs commented Jun 25, 2024

Related: jellyfin/jellyfin-web#5729
Probably related: #694

@gerben838665
Copy link

Ran into this issue today.
After I updated my server to 10.9.7 the interface in jellyfin-media-player broke.
Making it impossible to open anything from the homepage.
Curiously starting playback still worked from the homepage through "Next Up" for example.

Deleting "%LOCALAPPDATA%\Jellyfin Media Player" fixed the issue.

Attached below log files from before and after deleting the above folder.
JellyfinMediaPlayer before.log
JellyfinMediaPlayer after.log

Only things I notice in the log files is a ChunkLoad error in the before.
And that the before thinks i'm running jellyfin-web version 10.9.6 instead of 10.9.7

@Doxterpepper
Copy link

Related: jellyfin/jellyfin-web#5729 Probably related: #694
Yeah, this has to be an issue with the HTTP cache. When you delete app data, it should delete the cache forcing the application to make the request to the server instead of using cache.

I'm guessing the fix here would be the same in jellyfin-web, either don't use the cache when calling the /system/info API, or do a conditional request to see if the value has changed before using the cache.

@Xav-Pe
Copy link

Xav-Pe commented Dec 2, 2024

Ran into this yesterday after updating the server to 10.10.3. The installed Media player (v1.11.1) was buggy and the files were playing with just the audio, no video, an a frozen client displaying the main page. Deleting %LOCALAPPDATA%\Jellyfin Media Player fixed it.

Log.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

5 participants