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

Spotify - Stream appears to play but no sound output - HA media player stuck buffering. #2982

Closed
1 task done
jazzyisj opened this issue Sep 30, 2024 · 10 comments
Closed
1 task done

Comments

@jazzyisj
Copy link

What version of Music Assistant has the issue?

2.3.0b28

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

2024.9.1

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

  • Yes

The problem

Streaming Spotify - no sound output.

MASS media player appears to be playing with album art, progress indicator etc. HA media player remains in buffering state. Youtube, TuneIn, Radio, and local files all work as expected.

I've removed the spotify provider and reinstalled it. I've cleared the core cache. I've restarted the server and reloaded the integration. Spotify plays from computers, phones, and on all cast devices without MASS with no issues. Happens on all media players (Cast, Fully Kiosk)

image image

How to reproduce

Play a spotify playlist, album, or song.

Music Providers

Spotify

Player Providers

All media players. Cast (Nest Hubs, Nest Mini's, Chromecasts, and Google Home), Fully Kiosk.

Full log output

music-assistant.log

Additional information

This has been happening fore the last couple beta releases.

What version of Home Assistant Core are your running

2024.10.0b4

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

ODROID

@marcelveldt
Copy link
Member

Can you go into MA settings --> Core modules --> Streamserver --> advanced section.
Check if the publish IP there matches your internal local IP

@jazzyisj
Copy link
Author

Yep, Public IP looks ok. 192.168.1.100

@marcelveldt
Copy link
Member

Did you check another source, like radio station to verify if this is isolated to spotify ?

@jazzyisj
Copy link
Author

Yes. Youtube Music, Tune In, and local files all work fine. Listening to YT music right now :-)

@jazzyisj
Copy link
Author

jazzyisj commented Oct 1, 2024

Updated to 2.3.0b29, problem persists but now I'm getting errors in the MASS log.

music-assistant.log

@marcelveldt
Copy link
Member

OK so it appears that librespot itself is simply not outputting any audio. I indeed added an exception to the code to catch that (and prevent it from getting stuck indefinitely).

Couple of questions:

  1. Did it ever work ? Like before version 2.2 or 2.1 ?
  2. Are you using a Spotify premium account ?

@OzGav OzGav added the More info label Oct 1, 2024
@jazzyisj
Copy link
Author

jazzyisj commented Oct 1, 2024

Yes I have Spotify premium. I've been using Spotify with MASS pretty much since the day you released it. It only stopped working maybe 2 or 3 updates ago. Am I really the only one having an issue? I don't think anything has changed on my that might have caused this.

@marcelveldt
Copy link
Member

We had/have some nasty issues with (Spotify) playback lately but this is not one of them tbh so the issue seems to be isolated to your case so far.

The only other thing that could be going on is that its account related but that is super far stretched.
Do you have discord ? Can you PM me there please ? I like to send you a test account to try out to rule out if its maybe account related.

@jazzyisj
Copy link
Author

jazzyisj commented Oct 1, 2024

I PM'd you on discord. I've logged into my Spotify account to check and it's definitely a Premium Family Plan in good standing. There is only one account on there now so that can't be the issue. Spotify is working correctly on all my other devices.

This is the service call I've been using in Dev Tools to test (with various valid Playlist names). I've also tried with Artist, Track, and Album with the same results.

action: mass.play_media
data:
  media_id: All Out 60s
  media_type: playlist
target:
  entity_id:
    - media_player.office_hub_2

@jazzyisj
Copy link
Author

jazzyisj commented Oct 2, 2024

We have discovered the issue! Thank you for pointing me in the right direction marcelveldt.

The Pi-Hole on my network randomly starting blocking requests to a domain spotify is calling. I don't know if my adlist got updated or if Spotify made a change but if you run into this issue check if these domains are getting blocked on your Pi-Hole and whitelist them if they are.

audio-ak-spotify-com.akamaized.net
audio-akp-spotify-com.akamaized.net

@jazzyisj jazzyisj closed this as completed Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants