music-assistant / hass-music-assistant

Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players.
Apache License 2.0
1.32k stars 49 forks source link

Unable to load Youtube music Playlists #2676

Closed Drew071 closed 1 month ago

Drew071 commented 2 months ago

What version of Music Assistant has the issue?

2.2.0b0

What version of the Home Assistant Integration have you got installed?

2024.7.1.b0

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

The problem

Youtube music plays songs and can queue albums, but it can not see playlist information. I click on a playlist and get "argument of type 'NoneType' is not iterable" in a red boxed prompt.

If click the big play button at the top i get another red box with "Server returned HTTP 404: Not Found. Requested entity was not found.

How to reproduce

As described in problem

Music Providers

Youtube music

Player Providers

N/A

Full log output

home-assistant_mass_2024-07-25T09-26-07.496Z.log

Additional information

No response

What version of Home Assistant Core are your running

2024.7.3

What type of installation are you running?

Home Assistant Supervised

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)

MarvinSchenkel commented 2 months ago

Are you also seeing this on the stable version (2.1.0)? Does it happen for all playlists or just a specific one?

Drew071 commented 2 months ago

Are you also seeing this on the stable version (2.1.0)? Does it happen for all playlists or just a specific one?

It does this on all playlists. I have not got stable version installed. I have only recently re-started up my HA machine due to home renovations.

This error maybe more useful

2024-07-25 11:20:51.540 ERROR (MainThread) [music_assistant.webserver] Error handling message: CommandMessage(message_id=19, command='music/playlists/playlist_tracks', args={'item_id': 'RDCLAK5uy_lrj9qy29eJKUUvkLFw56PiEHq07rDHwkU', 'provider_instance_id_or_domain': 'ytmusic', 'force_refresh': False}) Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/music_assistant/server/controllers/webserver.py", line 352, in _run_handler result = [x async for x in result] ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/music_assistant/server/controllers/media/playlists.py", line 65, in tracks tracks = await self._get_provider_playlist_tracks( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/music_assistant/server/controllers/media/playlists.py", line 353, in _get_provider_playlist_tracks for item in await provider.get_playlist_tracks(item_id, page=page): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/music_assistant/server/providers/ytmusic/init.py", line 361, in get_playlist_tracks if YT_PLAYLIST_ID_DELIMITER in prov_playlist_id: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: argument of type 'NoneType' is not iterable

Drew071 commented 2 months ago

Are you also seeing this on the stable version (2.1.0)? Does it happen for all playlists or just a specific one?

Just attempted the same on stable, issue was still present.

OzGav commented 2 months ago

Confirm you are using a paid subscription to YouTube Music

MarvinSchenkel commented 2 months ago

Could you also please include the log of MA itself, not HA. So in the MA UI, got to settings > core > download log file

Drew071 commented 2 months ago

Finally got the log.

2024-07-26 15:45:34.862 INFO (MainThread) [music_assistant] Starting Music Assistant Server (4116138c6ac747f2bd7eef89186a163d) version 2.1.0 - HA add-on: True - Safe mode: False 2024-07-26 15:45:34.874 INFO (MainThread) [music_assistant.cache] Initializing cache controller... 2024-07-26 15:45:35.190 INFO (MainThread) [music_assistant.music] Using a sync interval of 180 minutes. 2024-07-26 15:45:35.512 INFO (MainThread) [music_assistant.streams] Detected ffmpeg version 6.0.1 with libsoxr support 2024-07-26 15:45:35.512 INFO (MainThread) [music_assistant.streams] Starting server on 0.0.0.0:8097 - base url: http://192.168.4.57:8097 2024-07-26 15:45:35.524 INFO (MainThread) [music_assistant.webserver] Starting server on 172.30.32.1:8095 - base url: http://172.30.32.1:8095 2024-07-26 15:45:36.356 INFO (MainThread) [music_assistant] Loaded music provider Music Assistant 2024-07-26 15:45:36.357 INFO (MainThread) [music_assistant] Loaded metadata provider TheAudioDB Metadata provider 2024-07-26 15:45:36.357 INFO (MainThread) [music_assistant] Loaded metadata provider MusicBrainz Metadata provider 2024-07-26 15:45:36.358 INFO (MainThread) [music_assistant] Loaded metadata provider fanart.tv Metadata provider 2024-07-26 15:45:36.358 INFO (MainThread) [music_assistant] Loaded music provider Tune-In Radio 2024-07-26 15:45:36.759 INFO (MainThread) [music_assistant] Loaded player provider Airplay 2024-07-26 15:45:36.767 INFO (MainThread) [music_assistant.players] Player registered: ap689e19626bc5/kitchen 2024-07-26 15:45:36.771 INFO (MainThread) [music_assistant.players] Player registered: apa0f6fd77fc99/music room 2024-07-26 15:45:37.263 INFO (MainThread) [music_assistant.music] Sync task for Music Assistant completed 2024-07-26 15:45:37.714 INFO (MainThread) [music_assistant.music] Sync task for Tune-In Radio completed 2024-07-26 15:45:39.219 INFO (MainThread) [music_assistant] Loaded music provider YouTube Music 2024-07-26 15:45:40.773 WARNING (MainThread) [music_assistant.music] Sync task for YouTube Music completed with errors 2024-07-26 15:54:02.878 ERROR (MainThread) [music_assistant.webserver] Error handling message: music/playlists/playlist_tracks: argument of type 'NoneType' is not iterable 2024-07-26 15:54:19.227 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media:

On Fri, 26 Jul 2024, 07:27 Marvin Schenkel, @.***> wrote:

Could you also please include the log of MA itself, not HA. So in the MA UI, got to settings > core > download log file

— Reply to this email directly, view it on GitHub https://github.com/music-assistant/hass-music-assistant/issues/2676#issuecomment-2252063136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWK6AQNCGDX2C4F5ED6VS53ZOHT6NAVCNFSM6AAAAABLOFY6FCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJSGA3DGMJTGY . You are receiving this because you authored the thread.Message ID: @.***>

MarvinSchenkel commented 2 months ago

Can you make sure to update the hacs integration to the latest version and try again? I see you are still on 2024.7.1b0

Drew071 commented 2 months ago

I am now on the latest version having uninstalled the beta, resrting haos, and then installed later stable. I still have th same issue. Here is the log.

2024-07-26 15:45:34.862 INFO (MainThread) [music_assistant] Starting Music Assistant Server (4116138c6ac747f2bd7eef89186a163d) version 2.1.0 - HA add-on: True - Safe mode: False 2024-07-26 15:45:34.874 INFO (MainThread) [music_assistant.cache] Initializing cache controller... 2024-07-26 15:45:35.190 INFO (MainThread) [music_assistant.music] Using a sync interval of 180 minutes. 2024-07-26 15:45:35.512 INFO (MainThread) [music_assistant.streams] Detected ffmpeg version 6.0.1 with libsoxr support 2024-07-26 15:45:35.512 INFO (MainThread) [music_assistant.streams] Starting server on 0.0.0.0:8097 - base url: http://192.168.4.57:8097 2024-07-26 15:45:35.524 INFO (MainThread) [music_assistant.webserver] Starting server on 172.30.32.1:8095 - base url: http://172.30.32.1:8095 2024-07-26 15:45:36.356 INFO (MainThread) [music_assistant] Loaded music provider Music Assistant 2024-07-26 15:45:36.357 INFO (MainThread) [music_assistant] Loaded metadata provider TheAudioDB Metadata provider 2024-07-26 15:45:36.357 INFO (MainThread) [music_assistant] Loaded metadata provider MusicBrainz Metadata provider 2024-07-26 15:45:36.358 INFO (MainThread) [music_assistant] Loaded metadata provider fanart.tv Metadata provider 2024-07-26 15:45:36.358 INFO (MainThread) [music_assistant] Loaded music provider Tune-In Radio 2024-07-26 15:45:36.759 INFO (MainThread) [music_assistant] Loaded player provider Airplay 2024-07-26 15:45:36.767 INFO (MainThread) [music_assistant.players] Player registered: ap689e19626bc5/kitchen 2024-07-26 15:45:36.771 INFO (MainThread) [music_assistant.players] Player registered: apa0f6fd77fc99/music room 2024-07-26 15:45:37.263 INFO (MainThread) [music_assistant.music] Sync task for Music Assistant completed 2024-07-26 15:45:37.714 INFO (MainThread) [music_assistant.music] Sync task for Tune-In Radio completed 2024-07-26 15:45:39.219 INFO (MainThread) [music_assistant] Loaded music provider YouTube Music 2024-07-26 15:45:40.773 WARNING (MainThread) [music_assistant.music] Sync task for YouTube Music completed with errors 2024-07-26 15:54:02.878 ERROR (MainThread) [music_assistant.webserver] Error handling message: music/playlists/playlist_tracks: argument of type 'NoneType' is not iterable 2024-07-26 15:54:19.227 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: 2024-07-26 15:56:01.491 INFO (MainThread) [music_assistant.streams.media_stream] Detected (input) content type: aac (aac) 2024-07-26 15:56:42.129 ERROR (MainThread) [music_assistant.webserver] Error handling message: music/playlists/playlist_tracks: argument of type 'NoneType' is not iterable 2024-07-26 15:56:46.748 ERROR (MainThread) [music_assistant.webserver] Error handling message: music/favorites/add_item: 2024-07-26 15:56:50.603 ERROR (MainThread) [music_assistant.webserver] Error handling message: music/library/add_item: 2024-07-26 16:19:42.472 INFO (MainThread) [music_assistant.streams.media_stream] Detected (input) content type: aac (aac) 2024-07-26 16:33:59.507 WARNING (MainThread) [music_assistant.streams] Received unhandled NOTIFY request to /notify from 192.168.4.37 headers: <CIMultiDictProxy('NT': 'upnp:event', 'NTS': 'upnp:propchange', 'SID': 'uuid:e7e10098-d5e4-8412-edab-9658dd256b85', 'SEQ': '1', ' DLNADeviceName.lge.com': 'Snug%20TV', 'Host': '192.168.4.57:8097', 'Content-Length': '321', 'Content-Type': 'text/xml; charset="utf-8"')>

2024-07-26 16:33:59.719 WARNING (MainThread) [music_assistant.streams] Received unhandled NOTIFY request to /notify from 192.168.4.37 headers: <CIMultiDictProxy('NT': 'upnp:event', 'NTS': 'upnp:propchange', 'SID': 'uuid:e7e10098-d5e4-8412-edab-9658dd256b85', 'SEQ': '2', ' DLNADeviceName.lge.com': 'Snug%20TV', 'Host': '192.168.4.57:8097', 'Content-Length': '323', 'Content-Type': 'text/xml; charset="utf-8"')>

2024-07-26 16:33:59.928 WARNING (MainThread) [music_assistant.streams] Received unhandled NOTIFY request to /notify from 192.168.4.37 headers: <CIMultiDictProxy('NT': 'upnp:event', 'NTS': 'upnp:propchange', 'SID': 'uuid:e7e10098-d5e4-8412-edab-9658dd256b85', 'SEQ': '3', ' DLNADeviceName.lge.com': 'Snug%20TV', 'Host': '192.168.4.57:8097', 'Content-Length': '321', 'Content-Type': 'text/xml; charset="utf-8"')>

2024-07-26 16:34:00.145 WARNING (MainThread) [music_assistant.streams] Received unhandled NOTIFY request to /notify from 192.168.4.37 headers: <CIMultiDictProxy('NT': 'upnp:event', 'NTS': 'upnp:propchange', 'SID': 'uuid:e7e10098-d5e4-8412-edab-9658dd256b85', 'SEQ': '4', ' DLNADeviceName.lge.com': 'Snug%20TV', 'Host': '192.168.4.57:8097', 'Content-Length': '363', 'Content-Type': 'text/xml; charset="utf-8"')>

2024-07-26 16:34:00.509 WARNING (MainThread) [music_assistant.streams] Received unhandled NOTIFY request to /notify from 192.168.4.37 headers: <CIMultiDictProxy('NT': 'upnp:event', 'NTS': 'upnp:propchange', 'SID': 'uuid:e7e10098-d5e4-8412-edab-9658dd256b85', 'SEQ': '5', ' DLNADeviceName.lge.com': 'Snug%20TV', 'Host': '192.168.4.57:8097', 'Content-Length': '323', 'Content-Type': 'text/xml; charset="utf-8"')>

2024-07-26 16:34:01.013 WARNING (MainThread) [music_assistant.streams] Received unhandled NOTIFY request to /notify from 192.168.4.37 headers: <CIMultiDictProxy('NT': 'upnp:event', 'NTS': 'upnp:propchange', 'SID': 'uuid:e7e10098-d5e4-8412-edab-9658dd256b85', 'SEQ': '6', ' DLNADeviceName.lge.com': 'Snug%20TV', 'Host': '192.168.4.57:8097', 'Content-Length': '322', 'Content-Type': 'text/xml; charset="utf-8"')>

2024-07-26 16:34:01.509 WARNING (MainThread) [music_assistant.streams] Received unhandled NOTIFY request to /notify from 192.168.4.37 headers: <CIMultiDictProxy('NT': 'upnp:event', 'NTS': 'upnp:propchange', 'SID': 'uuid:e7e10098-d5e4-8412-edab-9658dd256b85', 'SEQ': '7', ' DLNADeviceName.lge.com': 'Snug%20TV', 'Host': '192.168.4.57:8097', 'Content-Length': '324', 'Content-Type': 'text/xml; charset="utf-8"')>

2024-07-26 17:26:04.856 ERROR (MainThread) [music_assistant.webserver] Error handling message: music/playlists/playlist_tracks: argument of type 'NoneType' is not iterable

On Fri, 26 Jul 2024, 16:55 Marvin Schenkel, @.***> wrote:

Can you make sure to update the hacs integration to the latest version and try again? I see you are still on 2024.7.1b0

— Reply to this email directly, view it on GitHub https://github.com/music-assistant/hass-music-assistant/issues/2676#issuecomment-2253048341, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWK6AQMZAZITF6PMVDDW64TZOJWQHAVCNFSM6AAAAABLOFY6FCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJTGA2DQMZUGE . You are receiving this because you authored the thread.Message ID: @.***>

Drew071 commented 2 months ago

Confirm you are using a paid subscription to YouTube Music

Sorry I missed this reply. I can confirm that I am on youtube premium. All albums and tracks play correctly. It just can't see the songs in any playlist.

MarvinSchenkel commented 2 months ago

Confirm you are using a paid subscription to YouTube Music

Sorry I missed this reply. I can confirm that I am on youtube premium. All albums and tracks play correctly. It just can't see the songs in any playlist.

So this affects all playlists? Or is just a specific one that is throwing this error? If so, please share the playlist so I can try to reproduce the problem

Drew071 commented 2 months ago

It affects every playlist

On Sat, 27 Jul 2024, 12:52 Marvin Schenkel, @.***> wrote:

Confirm you are using a paid subscription to YouTube Music

Sorry I missed this reply. I can confirm that I am on youtube premium. All albums and tracks play correctly. It just can't see the songs in any playlist.

So this affects all playlists? Or is just a specific one that is throwing this error? If so, please share the playlist so I can try to reproduce the problem

— Reply to this email directly, view it on GitHub https://github.com/music-assistant/hass-music-assistant/issues/2676#issuecomment-2254127048, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWK6AQIRP4LB4DKGBL3KHRLZOOCWDAVCNFSM6AAAAABLOFY6FCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJUGEZDOMBUHA . You are receiving this because you authored the thread.Message ID: @.***>

collateral87 commented 2 months ago

I can confirm that i have the same issue with yt music playlists only. I have a paid subscription too and the error in the log is the same as from Drew071

MarvinSchenkel commented 2 months ago

I have a feeling that somehow the database got corrupted during a version upgrade. I cannot reproduce it locally, but I did see it on my beta addon. I 'fixed' it by uninstalling and reinstalling the addon. Could someone try and report back if this solves it?

Drew071 commented 2 months ago

I have tried this. I've installed the beta, stable and dev build and all do the same thing. I did restarted Homeassitant between each uninstall and install.

I have just removed music assitant HACS integration, uninstall music assistance and restarted homeassistant. I then reinstalled the HACS integration, restarted HA and then installed the addon. I started it up and added YTmusic. Playlists still fail. I did notice that it somehow remembered the last playlist I searched even though it was meant to be a clean install. Is there a directory I can manually delete within HA to ensure no files are leftover when uninstalled?

On Tue, 30 Jul 2024, 10:44 Marvin Schenkel, @.***> wrote:

I have a feeling that somehow the database got corrupted during a version upgrade. I cannot reproduce it locally, but I did see it on my beta addon. I 'fixed' it by uninstalling and reinstalling the addon. Could someone try and report back if this solves it?

— Reply to this email directly, view it on GitHub https://github.com/music-assistant/hass-music-assistant/issues/2676#issuecomment-2257932079, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWK6AQK2GATWCCVX6OWZSXDZO5OA5AVCNFSM6AAAAABLOFY6FCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJXHEZTEMBXHE . You are receiving this because you authored the thread.Message ID: @.***>

MarvinSchenkel commented 2 months ago

I have tried this. I've installed the beta, stable and dev build and all do the same thing. I did restarted Homeassitant between each uninstall and install. I have just removed music assitant HACS integration, uninstall music assistance and restarted homeassistant. I then reinstalled the HACS integration, restarted HA and then installed the addon. I started it up and added YTmusic. Playlists still fail. I did notice that it somehow remembered the last playlist I searched even though it was meant to be a clean install. Is there a directory I can manually delete within HA to ensure no files are leftover when uninstalled? On Tue, 30 Jul 2024, 10:44 Marvin Schenkel, @.> wrote: I have a feeling that somehow the database got corrupted during a version upgrade. I cannot reproduce it locally, but I did see it on my beta addon. I 'fixed' it by uninstalling and reinstalling the addon. Could someone try and report back if this solves it? — Reply to this email directly, view it on GitHub <#2676 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWK6AQK2GATWCCVX6OWZSXDZO5OA5AVCNFSM6AAAAABLOFY6FCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJXHEZTEMBXHE . You are receiving this because you authored the thread.Message ID: @.>

So you completely removed the add-on and did a fresh install? Just updating / restarting does not do the trick, you would have to completely get rid of the addon and start fresh.

Drew071 commented 2 months ago

I have tried this. I've installed the beta, stable and dev build and all do the same thing. I did restarted Homeassitant between each uninstall and install. I have just removed music assitant HACS integration, uninstall music assistance and restarted homeassistant. I then reinstalled the HACS integration, restarted HA and then installed the addon. I started it up and added YTmusic. Playlists still fail. I did notice that it somehow remembered the last playlist I searched even though it was meant to be a clean install. Is there a directory I can manually delete within HA to ensure no files are leftover when uninstalled? On Tue, 30 Jul 2024, 10:44 Marvin Schenkel, @.**> wrote: I have a feeling that somehow the database got corrupted during a version upgrade. I cannot reproduce it locally, but I did see it on my beta addon. I 'fixed' it by uninstalling and reinstalling the addon. Could someone try and report back if this solves it? — Reply to this email directly, view it on GitHub <#2676 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWK6AQK2GATWCCVX6OWZSXDZO5OA5AVCNFSM6AAAAABLOFY6FCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJXHEZTEMBXHE . You are receiving this because you authored the thread.Message ID: @.**>

So you completely removed the add-on and did a fresh install? Just updating / restarting does not do the trick, you would have to completely get rid of the addon and start fresh.

I completely uninstalled all elements. Then went through the installation process again. On opening the fresh install, MA somehow remembered a search from the previous installations.

MarvinSchenkel commented 2 months ago

I have tried this. I've installed the beta, stable and dev build and all do the same thing. I did restarted Homeassitant between each uninstall and install. I have just removed music assitant HACS integration, uninstall music assistance and restarted homeassistant. I then reinstalled the HACS integration, restarted HA and then installed the addon. I started it up and added YTmusic. Playlists still fail. I did notice that it somehow remembered the last playlist I searched even though it was meant to be a clean install. Is there a directory I can manually delete within HA to ensure no files are leftover when uninstalled? On Tue, 30 Jul 2024, 10:44 Marvin Schenkel, @.**> wrote: I have a feeling that somehow the database got corrupted during a version upgrade. I cannot reproduce it locally, but I did see it on my beta addon. I 'fixed' it by uninstalling and reinstalling the addon. Could someone try and report back if this solves it? — Reply to this email directly, view it on GitHub <#2676 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWK6AQK2GATWCCVX6OWZSXDZO5OA5AVCNFSM6AAAAABLOFY6FCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJXHEZTEMBXHE . You are receiving this because you authored the thread.Message ID: @.**>

So you completely removed the add-on and did a fresh install? Just updating / restarting does not do the trick, you would have to completely get rid of the addon and start fresh.

I completely uninstalled all elements. Then went through the installation process again. On opening the fresh install, MA somehow remembered a search from the previous installations.

But you did have to set up YTM and any other settings again?

Drew071 commented 2 months ago

Yes all player providers and music providers needed adding.

MarvinSchenkel commented 2 months ago

Can you please retest with 2.2.0b2?

Op di 30 jul 2024 om 14:43 schreef Drew071 @.***>

Yes all player providers and music providers needed adding.

— Reply to this email directly, view it on GitHub https://github.com/music-assistant/hass-music-assistant/issues/2676#issuecomment-2258261030, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEG2MJ2RRIW6XDJD3UGFRJDZO6DANAVCNFSM6AAAAABLOFY6FCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJYGI3DCMBTGA . You are receiving this because you were assigned.Message ID: @.***>

Drew071 commented 2 months ago

Still the same problem

On Tue, 30 Jul 2024, 17:24 Marvin Schenkel, @.***> wrote:

Can you please retest with 2.2.0b2?

Op di 30 jul 2024 om 14:43 schreef Drew071 @.***>

Yes all player providers and music providers needed adding.

— Reply to this email directly, view it on GitHub < https://github.com/music-assistant/hass-music-assistant/issues/2676#issuecomment-2258261030>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AEG2MJ2RRIW6XDJD3UGFRJDZO6DANAVCNFSM6AAAAABLOFY6FCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJYGI3DCMBTGA>

. You are receiving this because you were assigned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/music-assistant/hass-music-assistant/issues/2676#issuecomment-2258739933, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWK6AQP7VUQJLR2I4WUDFKTZO644VAVCNFSM6AAAAABLOFY6FCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJYG4ZTSOJTGM . You are receiving this because you authored the thread.Message ID: @.***>

collateral87 commented 2 months ago

I can't tell from this whether it helps to uninstall and reinstall the MA add-on (I would like to avoid that if possible). 2.2.0b2 didn't fix the error for me either, hence my question: Can I wait for a fix or do I really have to completely reinstall my instance? (Additional question: Is there any way to manually delete/reset the database?)

Drew071 commented 2 months ago

I can't tell from this whether it helps to uninstall and reinstall the MA add-on (I would like to avoid that if possible). 2.2.0b2 didn't fix the error for me either, hence my question: Can I wait for a fix or do I really have to completely reinstall my instance? (Additional question: Is there any way to manually delete/reset the database?)

I did uninstall and reinstall the music addon completely. I think there are files being left over somewhere in HA that aren't being cleared when uninstalled.

collateral87 commented 2 months ago

No, not yet, because I want to prevent having to set everything up again.

MarvinSchenkel commented 2 months ago

No, not yet, because I want to prevent having to set everything up again.

You can just tick the backup option when updating the addon to ensure you have a backup of your current settings. Then you can safely delete the addon, reinstall it, test and restore your current settings from your backup.

collateral87 commented 2 months ago

@MarvinSchenkel when i restore the backup, the corrupted db will also be restored right?

(btw: keep up the unbelievable great work on MA)

MarvinSchenkel commented 2 months ago

@MarvinSchenkel when i restore the backup, the corrupted db will also be restored right?

(btw: keep up the unbelievable great work on MA)

Well, you will basically be in the same situation as you are right now. The good thing about addons is that they run in an isolated environment that can be easily backupped/restored. So to answer @Drew071 s questions on 'left overs in HA that are not cleared up', this cannot happen as the isolated environment of the addon (incl the database) gets completely removed when you uninstall an addon.

Drew071 commented 2 months ago

@MarvinSchenkel when i restore the backup, the corrupted db will also be restored right? (btw: keep up the unbelievable great work on MA)

Well, you will basically be in the same situation as you are right now. The good thing about addons is that they run in an isolated environment that can be easily backupped/restored. So to answer @Drew071 s questions on 'left overs in HA that are not cleared up', this cannot happen as the isolated environment of the addon (incl the database) gets completely removed when you uninstall an addon.

That's answers that then. Thanks for clarifying.

I've tried everything suggested so far to no avail.

MarvinSchenkel commented 2 months ago

Alright, a reinstall did fix it for me which is strange. Also works fine on 2.2.0b2 for me and I cannot reproduce it again, so it makes it hard to pinpoint. Let's wait and see if a reinstall fixes it for @collateral87, then we can make a plan how to go from there.

collateral87 commented 2 months ago

I uninstalled the addon, then installed it again, and only added ytmusic. The error is still there. I also noticed that my last search from the previous MA installation was still saved in the new fresh installation. How can this be?

image image image image image

OzGav commented 2 months ago

Can you uninstall it again and then show a screenshot of the ADDON page showing that it is not there,

collateral87 commented 2 months ago

image image image

@OzGav in my previous screenshots you saw that i did a fresh install (because there is only ytmusic provider configured)

OzGav commented 2 months ago

OK thanks just making sure we are all on the same sheet of music. How that search term could still be there is a mystery. I recommend a full host reboot and then reinstall the addon.

MarvinSchenkel commented 2 months ago

I uninstalled the addon, then installed it again, and only added ytmusic. The error is still there. I also noticed that my last search from the previous MA installation was still saved in the new fresh installation. How can this be?

image image image image image

Search results can be cache in the front end by your browser. However, this does indicate you are using an old front-end version. Can you do a hard refresh of the front-end to clear your browser cache? (shift+f5 or cmd+r). Or just try a different browser to verify whether this is a front end issue rather than a backend/addon issue.

collateral87 commented 2 months ago

Alright guys, I did a host reboot and then opened an incognito browser window, logged in, and installed MA. The search bar is now empty, but the error still persists.

MarvinSchenkel commented 2 months ago

Wait, you are searching for playlists and then clicking it. I do see an error there as well, so I will see if I can fix this. What I am trying to get confirmed is whether all playlists in your library function normally on 2.2.0b2 / after a reinstall. You should be able to click them and play any song in the playlist. Can you confirm?

collateral87 commented 2 months ago

What works: I can play my playlists in the "playlists" tab using the three-dot menu.

What doesn't work: When I click on a playlist in the "playlists" tab, all tracks are displayed, but I can't click on them (grayed out). In the "search" tab, I can't play playlists (error "999"). In the "search" tab, I can click on playlists, but the tracks do not load (error "argument of type 'NoneType' is not iterable").

does this answer your question?

Drew071 commented 2 months ago

Wait, you are searching for playlists and then clicking it. I do see an error there as well, so I will see if I can fix this. What I am trying to get confirmed is whether all playlists in your library function normally on 2.2.0b2 / after a reinstall. You should be able to click them and play any song in the playlist. Can you confirm?

I can not play any playlist songs. Playlists do not even show the song list within, I don't have any of my own to test otherwise.

collateral87 commented 2 months ago

"When I click on a playlist in the "playlists" tab, all tracks are displayed, but I can't click on them (grayed out)"

This seems to be solved. The grayed out disappeared after a while. I can confirm, that i can play titles from "playlists" tab, but not from the "search "tab" as Drew071 said.

donkeykong3x3 commented 2 months ago

A couple of quick things I noticed. I was previously on 2.07 and suddenly had an issue about 24hr ago. I noticed a different error that was causing my playlists to not work. After updating to 2.10 some of my playlists work fine, but one results in the issue presented above.

I'm running MA standalone in Docker, so I don't believe it is specific to HA. Also I noticed that the one that doesn't work is fairly large compared to the others (609 vs 224 tracks). Might just take awhile to resync. I've noticed YTMusic tends to take awhile when updating/syncing.

Need sleep, but hopefully some of this might be meaningful.

MarvinSchenkel commented 1 month ago

Can you please retest with 2.2.0b3?

UPDATE: This fix is also available in 2.1.1. You need to clear the cache after updating (no need to re-install) by going to settings > core (engine icon) > cache controller and hit 'clear cache'

mterry63 commented 1 month ago

I can confirm that the above instructions (clear cache) on 2.2.0b3 solves this problem for me. I was seeing it occur in a separate docker install of Music Assistant (not Add-on).

Drew071 commented 1 month ago

All fixed for me! Thank you for sorting this for us all!