Spotty-Plugin icon indicating copy to clipboard operation
Spotty-Plugin copied to clipboard

LMS stucks when adding second spotify family account

Open sorryusernameisalreadytaken opened this issue 4 years ago • 14 comments

_lms_logs (2).txt This is my container log.

The container I run is: https://hub.docker.com/r/lmscommunity/logitechmediaserver

The first account was added previously. Sadly I am not able to give a server.log from lms, because lms is completely freezed.

From the error message I'd say it's a temporary issue on Spotify's end. Can you try again in a bit and report back?

michaelherger avatar Sep 02 '21 11:09 michaelherger

Its getting more clear.

It is no problem with a family-Account holder but with family-members within a spotify-family account.

EDIT: So accidentally, please don't ask more specific :D, I manage 2 Spotify Family accounts.

When I add one of the main accounts, it works immediately. If a Spotify Family member account is added, LMS goes into a sort of infinite loop. This helps restarting the docker.

If you're using your own client ID (which you should be), then make sure you added those accounts to your client ID configuration (as outlined in the help text to the client ID setting).

michaelherger avatar Sep 02 '21 11:09 michaelherger

I guess you mean this:

Spotify Client ID
Die Verwendung einer eigenen Client ID kann helfen, falls Sie Probleme mit dem "Rate Limiting" haben (Fehler 429). Um eine solche Client ID zu erhalten, befolgen Sie diese einfachen Schritte:
Besuchen Sie das Spotify Developer Portal, melden Sie sich falls nötig an.
Klicken Sie "Create An App", und folgen Sie den Anweisungen.
Kopieren Sie die neu erstellte Client ID, und fügen Sie sie in den Spotty Einstellungen ein.
Falls Sie einen Familienaccount verwenden, oder sonst mehrere Konten in Spotty verwenden möchten, fügen Sie die entsprechenden Konten bei der neu erstellten Konfiguration unter "Users and Access" hinzu.

https://github.com/michaelherger/Spotty-Plugin/blob/284cce47178d4d3b04a82b396a2a878aeac62292/strings.txt#L109

Yes.

michaelherger avatar Sep 02 '21 12:09 michaelherger

okay, done. Add my main spotify family account with normal login creds and add the dev. client-id to the settings.

Within the sproitfy dev area I add the mail of the seconds family acc.

But how does this fix the login problem with a family account? I am not able to play a playlist from the 2nd account or? image

Do you still get the same failure?

michaelherger avatar Sep 02 '21 13:09 michaelherger

Should I try now to add the seconds family acc?

EDIT: I try to add the 2nd (not acc holder) after adding the client-id and add thoose acc within the dev-ui of spotify. Still the same issue.

Hmm... how much time since your first failed attempt? Have you ever tried restarting your LMS machine?

michaelherger avatar Sep 03 '21 05:09 michaelherger

Some minutes, but I did not track the time.

I really think this is some kind of Spotify family member api problem. Perhaps forced, I don't know. I remember this issue here: https://github.com/forslund/spotify-skill/issues/53

And yes, I do a restart of lms and try restarting the docker too.

I trust you, I can give you a Spotify family member cred for Testing. Just in case you have no one to test it on your own.

As I said, normal account (family account owner) works immediately. Any family member login will freeze the whole lms. Can then not even check the logs, only via exec at the docker but there is nothing special in it.

We're using a family membership here, too. That's not the point. I believe it's a communication issue. The error in your log file says AuthenticationError(LoginFailed(TryAnotherAP)). Searching for similar errors I found references where Spotify would send a user to a different "access point" (AP), and librespot only seems to be handling one of them. Why you'd get this error, but "nobody" else, I don't know. That's why I thought a full reboot of your infrastructure, worst case up to the router, might help. I'm saying the router, as if they were blocking your IP or something, a router restart might get you a new address, freeing whatever lock there might be.

michaelherger avatar Sep 03 '21 07:09 michaelherger

I got it :D

It was the password. It contained a $. I replaced it with a -.

Can you reproduce this?

Wow... that's rather surprising. Now I have to figure out whether this is an issue in the way I pass the password to the helper, or with the helper itself. Because I thought I had addressed the $ sign issue before. What OS are you using?

michaelherger avatar Sep 03 '21 11:09 michaelherger

Wow... that's rather surprising. Now I have to figure out whether this is an issue in the way I pass the password to the helper, or with the helper itself. Because I thought I had addressed the $ sign issue before. What OS are you using?

I use this docker: https://hub.docker.com/r/lmscommunity/logitechmediaserver Docker is runnung on my nas server, thats OpenMediaVault. Its debian based.

Can you reproduce this?

dupe of #79

michaelherger avatar Nov 14 '23 12:11 michaelherger