question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to get anything to play through youtube music

See original GitHub issue

What version of Music Assistant has the issue?

2022.8

The problem

I’ve installed Music Assistant and appear to have linked it to my premium youtube account just fine. When I go to the music assistant tab, it appears that many of the artist just continue to spin without ever properly loading. Additionally, when I try to play something, seems like it connects to my cast device (i hear the ping), but nothing plays and it doesn’t appear to play in music assistant (the play button doesn’t turn to pause or give any other appearance of playing.

How to reproduce

Just trying to play something

Relevant log output

2-08-04 08:51:50.221 INFO (MainThread) [music_assistant.db] Database connected.
2022-08-04 08:51:50.650 DEBUG (MainThread) [music_assistant.event] background_job_updated 
2022-08-04 08:51:51.585 DEBUG (MainThread) [music_assistant.event] background_job_updated 
2022-08-04 08:51:51.657 INFO (MainThread) [music_assistant.stream] Started stream server on port 8095
2022-08-04 08:51:51.657 DEBUG (MainThread) [music_assistant.event] background_job_updated Cleanup cache
2022-08-04 08:51:51.657 DEBUG (MainThread) [music_assistant.event] background_job_updated Cleanup removed items from database
2022-08-04 08:51:51.997 INFO (MainThread) [music_assistant] Finished job [Cleanup cache] in 0.34 seconds.
2022-08-04 08:51:51.997 DEBUG (MainThread) [music_assistant.event] background_job_finished Cleanup cache
2022-08-04 08:51:52.007 INFO (MainThread) [music_assistant] Finished job [Cleanup removed items from database] in 0.35 seconds.
2022-08-04 08:51:52.007 DEBUG (MainThread) [music_assistant.event] background_job_finished Cleanup removed items from database
2022-08-04 08:52:19.653 DEBUG (MainThread) [music_assistant.event] background_job_updated 
2022-08-04 08:52:19.653 DEBUG (MainThread) [music_assistant.event] background_job_updated 
2022-08-04 08:52:19.662 DEBUG (MainThread) [music_assistant.event] background_job_updated Library sync for provider Youtube Music
2022-08-04 08:52:19.662 DEBUG (MainThread) [music_assistant.event] background_job_updated Library sync for provider URL
2022-08-04 08:52:19.665 DEBUG (MainThread) [music_assistant.music.ytmusic] Start sync of artist items.
2022-08-04 08:52:19.678 INFO (MainThread) [music_assistant] Finished job [Library sync for provider URL] in 0.02 seconds.
2022-08-04 08:52:19.678 DEBUG (MainThread) [music_assistant.event] background_job_finished Library sync for provider URL
2022-08-04 08:52:21.588 DEBUG (MainThread) [music_assistant.event] queue_added media_player.ethans_speaker
2022-08-04 08:52:21.589 INFO (MainThread) [music_assistant.players] Player registered: media_player.ethans_speaker/Ethans Speaker
2022-08-04 08:52:21.589 DEBUG (MainThread) [music_assistant.event] player_added media_player.ethans_speaker
2022-08-04 08:52:21.608 DEBUG (MainThread) [music_assistant.event] queue_added media_player.living_room_speaker
2022-08-04 08:52:21.610 INFO (MainThread) [music_assistant.players] Player registered: media_player.living_room_speaker/Living Room speaker
2022-08-04 08:52:21.610 DEBUG (MainThread) [music_assistant.event] player_added media_player.living_room_speaker
2022-08-04 08:52:21.611 DEBUG (MainThread) [music_assistant.event] queue_added media_player.bedroom_clock
2022-08-04 08:52:21.611 INFO (MainThread) [music_assistant.players] Player registered: media_player.bedroom_clock/Bedroom clock
2022-08-04 08:52:21.611 DEBUG (MainThread) [music_assistant.event] player_added media_player.bedroom_clock
2022-08-04 08:52:21.714 DEBUG (MainThread) [music_assistant.music.ytmusic] Start sync of album items.
2022-08-04 08:52:21.752 DEBUG (MainThread) [music_assistant.event] queue_added media_player.bathroom_speaker
2022-08-04 08:52:21.752 INFO (MainThread) [music_assistant.players] Player registered: media_player.bathroom_speaker/Bathroom speaker
2022-08-04 08:52:21.753 DEBUG (MainThread) [music_assistant.event] player_added media_player.bathroom_speaker
2022-08-04 08:52:21.773 DEBUG (MainThread) [music_assistant.event] queue_added media_player.home_group
2022-08-04 08:52:21.773 INFO (MainThread) [music_assistant.players] Player registered: media_player.home_group/Home group
2022-08-04 08:52:21.774 DEBUG (MainThread) [music_assistant.event] player_added media_player.home_group
2022-08-04 08:52:21.777 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.ethans_speaker
2022-08-04 08:52:21.780 DEBUG (MainThread) [music_assistant.event] player_updated media_player.ethans_speaker
2022-08-04 08:52:21.782 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.living_room_speaker
2022-08-04 08:52:21.785 DEBUG (MainThread) [music_assistant.event] player_updated media_player.living_room_speaker
2022-08-04 08:52:21.786 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.bathroom_speaker
2022-08-04 08:52:21.789 DEBUG (MainThread) [music_assistant.event] player_updated media_player.bathroom_speaker
2022-08-04 08:52:21.792 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.bedroom_clock
2022-08-04 08:52:21.797 DEBUG (MainThread) [music_assistant.event] player_updated media_player.bedroom_clock
2022-08-04 08:52:21.801 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.office_speaker
2022-08-04 08:52:21.806 DEBUG (MainThread) [music_assistant.event] player_updated media_player.office_speaker
2022-08-04 08:52:21.816 DEBUG (MainThread) [music_assistant.event] player_updated media_player.home_group
2022-08-04 08:52:21.818 DEBUG (MainThread) [music_assistant.event] queue_added media_player.office_speaker
2022-08-04 08:52:21.818 INFO (MainThread) [music_assistant.players] Player registered: media_player.office_speaker/Office Speaker
2022-08-04 08:52:21.818 DEBUG (MainThread) [music_assistant.event] player_added media_player.office_speaker
2022-08-04 08:52:23.365 DEBUG (MainThread) [music_assistant.event] queue_items_updated media_player.ethans_speaker
2022-08-04 08:52:23.365 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.ethans_speaker
2022-08-04 08:52:23.697 DEBUG (MainThread) [music_assistant.music.ytmusic] Start sync of track items.
2022-08-04 08:52:25.185 INFO (SyncWorker_6) [pychromecast.controllers] Receiver:Launching app CC1AD845
2022-08-04 08:52:25.188 DEBUG (MainThread) [music_assistant.players.stream] Starting Queue audio stream for Queue Ethans Speaker (PCM format: s16le - sample rate: 44100)
2022-08-04 08:52:25.188 INFO (MainThread) [music_assistant.players.stream] Start Streaming queue track: database://track/688 (Arcade Fire - The Suburbs) for queue Ethans Speaker - crossfade: False
2022-08-04 08:52:25.188 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.ethans_speaker
2022-08-04 08:52:25.204 DEBUG (MainThread) [music_assistant.helpers.audio] start media stream for: ytmusic://track/BWuYbxdrJoA
2022-08-04 08:52:26.726 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.ethans_speaker
2022-08-04 08:52:26.727 DEBUG (MainThread) [music_assistant.event] player_updated media_player.ethans_speaker
2022-08-04 08:52:32.674 DEBUG (MainThread) [music_assistant.music.ytmusic] Start sync of playlist items.
2022-08-04 08:52:33.908 DEBUG (MainThread) [music_assistant.music.playlist] updated Your Likes in database: 1
2022-08-04 08:52:33.926 DEBUG (MainThread) [music_assistant.music.playlist] updated Classic Rock Instrumentals in database: 2
2022-08-04 08:52:33.937 DEBUG (MainThread) [music_assistant.music.playlist] updated Classic Children's Songs in database: 3
2022-08-04 08:52:33.948 DEBUG (MainThread) [music_assistant.music.playlist] updated Handclapping & Footstomping in database: 4
2022-08-04 08:52:33.959 DEBUG (MainThread) [music_assistant.music.playlist] updated Alt-8 06/09/2018 in database: 5
2022-08-04 08:52:33.971 DEBUG (MainThread) [music_assistant.music.playlist] updated Alt-8 Week Ending 06-16-18 in database: 6
2022-08-04 08:52:33.980 DEBUG (MainThread) [music_assistant.music.playlist] updated Ethan in database: 7
2022-08-04 08:52:33.989 DEBUG (MainThread) [music_assistant.music.playlist] updated Classic Rock Lullabies in database: 8
2022-08-04 08:52:33.998 DEBUG (MainThread) [music_assistant.music.playlist] updated Flanagan Home Videos in database: 9
2022-08-04 08:52:34.007 DEBUG (MainThread) [music_assistant.music.playlist] updated Classical in database: 10
2022-08-04 08:52:34.015 DEBUG (MainThread) [music_assistant.music.playlist] updated 90s Workout in database: 11
2022-08-04 08:52:34.032 DEBUG (MainThread) [music_assistant.music.playlist] updated Rock & Run! in database: 12
2022-08-04 08:52:34.041 DEBUG (MainThread) [music_assistant.music.playlist] updated SiriusXM Alt Nation Alt-18 - Updated in database: 13
2022-08-04 08:52:34.051 DEBUG (MainThread) [music_assistant.music.playlist] updated Unofficial Alt-Nation Alt-18 Countdown in database: 14
2022-08-04 08:52:34.060 DEBUG (MainThread) [music_assistant.music.playlist] updated Wedding potential in database: 15
2022-08-04 08:52:34.069 DEBUG (MainThread) [music_assistant.music.playlist] updated Paste's 50 Best Grunge Songs in database: 16
2022-08-04 08:52:34.588 DEBUG (MainThread) [music_assistant.music.playlist] updated New Release Mix in database: 17
2022-08-04 08:52:34.598 DEBUG (MainThread) [music_assistant.music.playlist] updated Baby Driver Soundtrack in database: 18
2022-08-04 08:52:34.612 DEBUG (MainThread) [music_assistant.music.playlist] updated Dream a Little Dream Soundtrack in database: 19
2022-08-04 08:52:34.624 DEBUG (MainThread) [music_assistant.music.playlist] updated Guardians of the Galaxy Awesome Mix Vol. 2 in database: 20
2022-08-04 08:52:34.635 DEBUG (MainThread) [music_assistant.music.playlist] updated Boombox Radio in database: 21
2022-08-04 08:52:34.648 DEBUG (MainThread) [music_assistant.music.playlist] updated A Happy Alternative in database: 22
2022-08-04 08:52:34.662 DEBUG (MainThread) [music_assistant.music.playlist] updated Conditions Underground in database: 23
2022-08-04 08:52:34.679 DEBUG (MainThread) [music_assistant.music.playlist] updated Electric swing in database: 24
2022-08-04 08:52:34.700 DEBUG (MainThread) [music_assistant.music.playlist] updated Today's Coffee Shop Blend in database: 25
2022-08-04 08:52:34.713 DEBUG (MainThread) [music_assistant.music.playlist] updated INDIE MIXTAPE Best Indie New Rock in database: 26
2022-08-04 08:52:34.727 DEBUG (MainThread) [music_assistant.music.playlist] updated '00s Indie Scene in database: 27
2022-08-04 08:52:34.740 DEBUG (MainThread) [music_assistant.music.playlist] updated Best New Alt/Indie in database: 28
2022-08-04 08:52:34.753 DEBUG (MainThread) [music_assistant.music.playlist] updated Best New Alt/Indie - 18 November 2013 in database: 29
2022-08-04 08:52:34.761 INFO (MainThread) [music_assistant] Finished job [Library sync for provider Youtube Music] in 15.1 seconds.
2022-08-04 08:52:34.761 DEBUG (MainThread) [music_assistant.event] background_job_finished Library sync for provider Youtube Music
2022-08-04 08:52:35.188 WARNING (MainThread) [music_assistant.players.stream] Abort: client(s) did not connect within 10 seconds.
2022-08-04 08:52:35.190 DEBUG (MainThread) [music_assistant.helpers.audio] media stream aborted for: ytmusic://track/BWuYbxdrJoA
2022-08-04 08:52:41.595 DEBUG (MainThread) [music_assistant.event] queue_items_updated media_player.office_speaker
2022-08-04 08:52:41.606 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.office_speaker
2022-08-04 08:52:41.843 INFO (SyncWorker_0) [pychromecast.controllers] Not launching app CC1AD845 - already running
2022-08-04 08:52:41.843 DEBUG (MainThread) [music_assistant.players.stream] Starting Queue audio stream for Queue Office Speaker (PCM format: s16le - sample rate: 44100)
2022-08-04 08:52:41.843 INFO (MainThread) [music_assistant.players.stream] Start Streaming queue track: ytmusic://track/BWuYbxdrJoA (Arcade Fire - The Suburbs) for queue Office Speaker - crossfade: False
2022-08-04 08:52:41.843 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.office_speaker
2022-08-04 08:52:41.857 DEBUG (MainThread) [music_assistant.helpers.audio] start media stream for: ytmusic://track/BWuYbxdrJoA
2022-08-04 08:52:42.918 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.office_speaker
2022-08-04 08:52:42.919 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.office_speaker
2022-08-04 08:52:42.921 DEBUG (MainThread) [music_assistant.event] player_updated media_player.office_speaker
2022-08-04 08:52:42.957 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.office_speaker
2022-08-04 08:52:45.338 INFO (SyncWorker_1) [pychromecast.controllers] Not launching app CC1AD845 - already running
2022-08-04 08:52:45.339 DEBUG (MainThread) [music_assistant.players.stream] Starting Queue audio stream for Queue Office Speaker (PCM format: s16le - sample rate: 44100)
2022-08-04 08:52:45.339 INFO (MainThread) [music_assistant.players.stream] Start Streaming queue track: database://track/688 (Arcade Fire - The Suburbs) for queue Office Speaker - crossfade: False
2022-08-04 08:52:45.339 DEBUG (MainThread) [music_assistant.event] queue_updated media_player.office_speaker
2022-08-04 08:52:45.354 DEBUG (MainThread) [music_assistant.helpers.audio] start media stream for: ytmusic://track/BWuYbxdrJoA
2022-08-04 08:52:51.845 WARNING (MainThread) [music_assistant.players.stream] Abort: client(s) did not connect within 10 seconds.
2022-08-04 08:52:51.846 DEBUG (MainThread) [music_assistant.helpers.audio] media stream aborted for: ytmusic://track/BWuYbxdrJoA

Additional information

No response

What version of Home Assistant Core are your running

2022.8

What type of installation are you running?

Home Assistant Core

On what type of hardware are you running?

Linux

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:25 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marcelveldtcommented, Sep 1, 2022

It has always been like that, since the very beginning so it must be something in your network or config that is wrong, sorry.

0reactions
chriskecommented, Oct 22, 2022

Hi!

Your issue is based on the IP address, that you’re runnig Haas in a docker container. Default docker creates an inner network, which is independent from your home network. So, what happens is the 172.20.X.X is a docker basd IP. It cannot be resolved from any of your devices in your network, just from the server OS. The solution is to migrate your container into host network mode, where you will get a proper network IP from your DHCP server. Or forget docker, and use Home Assistant OS instead in a VM for example.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I fix this? - YouTube Music Community - Google Support
The reason some of the songs in your playlists show as unavailable is because that particular video is not considered the "official" source....
Read more >
Why is YouTube Music Not Working? – Try These Quick Fixes
Why is YouTube Music not working? These quick fixes will solve the problem and get your music streaming on any device.
Read more >
YouTube Music common issues and how to solve them
YouTube Music common issues and how to solve them · 1. Can't upload music to YouTube Music · 2. Downloaded tracks won't play...
Read more >
Fix YouTube Music Not Playing Next Song - Technipages
Completely uninstalling YouTube Music could solve this problem. Tap and hold the YT Music icon and select the Uninstall option. Reboot your device...
Read more >
Youtube Music down? Current problems and outages
Are you also having issues? Select the option you are having issues with, and help provide feedback to the service. Audio Streaming App...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found