-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Playlists not syncing correctly from Jellyfin #3278
Comments
As requested in the issue template paste the full log |
Is that not the full log? When I'm back at my machine I'll hunt to see if there is a fuller log |
Sorry somehow I didn't see it at first glance. If you can fix that Sonos player problem which is spamming your log then that will make it easier to read. Once that is fixed then turn on debug logging for the Jellyfin provider, restart MA and then once the log says the sync for Jellyfin is complete then post the log again. |
No problem. I've disabled the sonos integration and then enabled debug log level for the Jellyfin provider. I then did another sync and this is the log, starting from the point of enabling the debug log level: |
Can you turn on debug logging for "music controller" as well and try again. If there's an exception while syncing it's logged under the music controller, not the provider. |
With music controller debug logging turned on the updated log looks like this (truncated): The exception(s):
Could this be a playlist referring to a track item that doesn't exist that then causes a 404 error? |
@Jc2k any thoughts? |
In music-assistant/server#1843 I was able to get rid of the API call that was failing. I suspect the playlist will still be empty, but the sync may otherwise finish without errors. Let's see what it does when the change is merged. Other than that, if you can recreate the issue in a fresh MA with only Jellyfin, and the 404 is on first sync, then I might be able to write some python scripts to dump the raw output of the API calls the sync makes to get a better idea of whats happening. That will require using some python packaging tool like uv probably and setting up some rudimentary dev env, so not for everyone. |
music-assistant/server#1847 may also help. Rather than rely on a parent-child relationship existing between the playlist and its tracks, it uses an explicit playlist endpoint to fetch the playlist tracks. This was done to fix sorting, but its possible this playlist specific endpoint is accounting for some difference in our databases (its the endpoint that the jellyfin web interface uses, so if that works then MA should work). |
Both changes are in the latest beta (2.4.0b12) if you are able to test that. |
@tanc we will close this soon assuming fixed |
What version of Music Assistant has the issue?
2.4.0b7
What version of the Home Assistant Integration have you got installed?
2024.12.1
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?
The problem
When syncing a Jellyfin music provider with playlists, those playlists don't proper sync.
How to reproduce
Set up Music Assistant with a Jellyfin server music provider. Test that albums are syncing and can be played to confirm there is no issue with communication.
Music Providers
Jellyfin
Player Providers
Web UI
Full log output
music-assistant.log
Additional information
In the logs I can see
Sync task for Jellyfin Media Server Library completed with errors
What version of Home Assistant Core are your running
2024.12.1
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Linux
The text was updated successfully, but these errors were encountered: