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

spotify Login failed for user #2749

Closed ppiixxii closed 3 months ago

ppiixxii commented 3 months ago

What version of Music Assistant has the issue?

2.1.3

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

No response

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

The problem

while using correct spotify credentials, the system states that login has failed

How to reproduce

go to music provider and key in credentials,

Music Providers

spotify

Player Providers

n/a

Full log output

log.txt

Additional information

No response

What version of Home Assistant Core are your running

2024.8.1

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Raspberry Pi

OzGav commented 3 months ago

Has it ever worked? Are you sure you are typing it correctly? Do you have any unusual characters in the passowrd? A slash maybe? Have you tried changing it to something simple to see if that works and then change it back?

ppiixxii commented 3 months ago

yes until 2.1.2 it worked, no unusual characeters in password, the account works if i login via web on the spitify website with the same credentials.

OzGav commented 3 months ago

Can you roll back using your backup to see if it works again. Nothing was changed with Spotify in this update.

MorrisekN commented 3 months ago

I have the same problem. Premium account individual

OzGav commented 3 months ago

As above. Please roll back and confirm it works with 2.1.2. I use Spotify and it is working fine for me (although I am using my own client id)

frodo777 commented 3 months ago

the same here:

Only Spotify Premium accounts are supported

ppiixxii commented 3 months ago

rolled back to 2.1.2 problem remains, i also have the 2.1.1. version still in the backups, go to that one? (and yes paid spotify)

ppiixxii commented 3 months ago

I do not use client ID. only account name and password.

OzGav commented 3 months ago

Yeah so maybe it is a Spotify problem again.

MorrisekN commented 3 months ago

I have two paid individual accounts and I can't log in to either of them

OzGav commented 3 months ago

I just tried mine on my dev account and it also failed. So could be a temporary Spotify outage or a bigger problem. Everyone will just have to sit tight and wait and see what happens this time,

erkr commented 3 months ago

@OzGav Spotify announced, to the Librespot library team, that username / password logins will be removed. If that is what is happening now, rolling back won't help. Let's monitor the implementation of OAuth in Librespot

burghs commented 3 months ago

I am on Spotify Family Account which also worked fine and getting a login error in the MASS Server logs "ERROR (MainThread) [music_assistant] Error loading provider(instance) Spotify: Login failed for user". Pretty sure this is on Spotify side.

spasypaddy commented 3 months ago

i have this error as well on a duo account, i should add and maybe its a coincidence but i think spotify reported MA trying to login as suspicious behaviour and then forced me to change my password? Would be interested to know if this happened to anyone else

ppiixxii commented 3 months ago

yes, they are forcing me to change the pwd also

churchofnoise commented 3 months ago

Also had to change Spotify password after multiple attempts to add Spotify as music provider (I also made an issue, presumably identical to this which I just closed as this issue exists #2750 ).

kschmidtlarsen commented 3 months ago

Will just echo the issue today - I'm completely new to MA btw.

Premium Family account. Adding my VT Music account worked great. x86 i7 setup with Unraid, Home assistant as a VM and MA installed through HACS in HA. Been messing with this for over an hour and then found this - will try to change my Spotify PW to see if this helps.

2024-08-12 19:26:40.755 WARNING (MainThread) [music_assistant.providers.spotify] Error while retrieving Spotify token after 0.21 seconds, details: 2024-08-12 19:26:40.962 WARNING (MainThread) [music_assistant.providers.spotify] Error while retrieving Spotify token after 0.21 seconds, details: 2024-08-12 19:26:41.169 WARNING (MainThread) [music_assistant.providers.spotify] Error while retrieving Spotify token after 0.21 seconds, details: 2024-08-12 19:26:41.383 WARNING (MainThread) [music_assistant.providers.spotify] Error while retrieving Spotify token after 0.21 seconds, details: 2024-08-12 19:26:41.616 WARNING (MainThread) [music_assistant.providers.spotify] Error while retrieving Spotify token after 0.23 seconds, details:

Edit: Updated spotify PW to a super secure generated pw. Did not allow me to login (same message as above) Tried both the user name and my mail login. ps use email login (no fb or google)

Edit again: Also attempted to use the Client ID - did not work - so far unresolved for me

dedors commented 3 months ago

Did a Music Assistant update today. A short while later I receive a mail from Spotify to change my password (happened like 6 times since I use MA). Changed password, but can't login with MA now.

CultusMechanicus commented 3 months ago

Yep, I set this up this afternoon, with Spotify working, it had just barely finished syncing artist art. Got an email saying "Suspicious activity, change your password". Changed the password, Spotify app accepts new password, Spotify web accepts new password, Music Assistant login fails.

erkr commented 3 months ago

Hi all, Spotify is phasing out the authorisation mechanism that is used by the Librespot library. Librespot is used by MA, so the coming hours, all of us will be locked out using Spotify in MA. Hopefully there is a fast update of Librespot, so wat can re-author the Spotify provider. I locked this issue for further commends. We will update the issue when there is new info

OzGav commented 3 months ago

Spotify is fixed in beta 6. For those running stable you will have to be a little more patient. Please thank Marcel for the unbelievable effort in turning this around so fast! https://music-assistant.io/help/#donations