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.36k stars 52 forks source link

Error adding Spotify as Music Provider "Provider spotify did not load within 30 seconds" #2130

Closed chesapeakesoja closed 6 months ago

chesapeakesoja commented 6 months ago

What version of Music Assistant has the issue?

2.0.0b136

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

2024.3.6

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

The problem

When attempting to add Spotify as a Music Provider, I receive the error "Provider spotify did not load within 30 seconds." I have tried this with two separate users on my Premium Family plan attempting to use the email address as the user name as well as the Spotify-assigned user (random numbers that Spotify assigns as user). I see the issue either way and it is persistent; I have been unable to add Spotify as a Music Provider

How to reproduce

  1. Go to Settings in MA
  2. Select Add Music Provider > Spotify
  3. Enter credentials to authenticate
  4. Click Save
  5. Wait 30 seconds
  6. Receive error

Music Providers

Spotify is the only provider for which I have experienced this issue.

I have successfully added Tidal, TuneIn, Plex Media Server Library, and RadioBrowser without any issues.

Player Providers

I have not experienced this with any Player Providers.

Full log output

MAlog.txt

Additional information

I have been unable to see anything in the FAQ or past issues that resembles this. I am running HAOS with a pretty standard network setup. Attempting to log in with multiple users to determine whether the issue was tied to one user account seemed to be logical.

What version of Home Assistant Core are your running

2024.4.3

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

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

OzGav commented 6 months ago

Couple of things. Good first issue report. If you can just delete log file and attach it rather than pasting. Secondly, b137 was just released so try that. Lastly I see another error in there saying the radio browser failed to load as well so something is going on with your setup I think but let’s see with b137.

OzGav commented 6 months ago

Also please advise how you have installed HAOS. Is it running directly on your machine or in VM?

chesapeakesoja commented 6 months ago

Thanks. I've updated the log, as requested, so that it is attached rather than plain text. The RadioBrowser failure was something I saw but restarting that seemed to resolve the issue. I'll update to b137 and attempt this again before providing another update.

HAOS is installed directly on the system rather than in a VM. It's a ZimaBoard 832.

chesapeakesoja commented 6 months ago

After an update, I am still receiving the same error (and RadioBrowser also failed to load). New log attached. MAlog_137b.txt

chesapeakesoja commented 6 months ago

Due to some slow loads when attempting to download HACS integrations, I found a recommendation to disable IPv6 and this seems to have resolved the issue with both HACS as well as Spotify authentication.

Hopefully this helps anyone else who may encounter this issue.