Unable to access server after password reset

@ChuckPa you should bug someone to enable the EnablePinAuth hidden pref by default on linux; it helps a lot with these situations (it’s already on by default on macOS and Windows iirc). It creates a “Setup Plex.html“ file in the appsupport/appdata directory, and opening that file in a browser will take the user through the claim process pretty painlessly.

Also, there’s always a hidden file called “.LocalAdminToken“ in that directory, which can be used to authenticate to the server in scripts (including logout/reset/claim scripts), so screwing with prefs.xml directly shouldn’t be necessary. You could pretty easily make a script that uses .LocalAdminToken to sign the user out, set EnablePinAuth=1, and then direct the user to the Claim Plex file (or load the claim URL from the “.ClaimURL“ file).

1 Like

Glad it helped.

Regarding random sh scripts, I agree completely.

However, I would not call UserCredentialReset a random sh script. It was written by @ChuckPa who works for Plex. One of his many tasks is writing the Plex Media Server installation routines for Linux platforms. Do all the vetting you want, I’ll never argue against that, but if you see something from Chuck you can be sure it has been through several rounds of testing.

Just a FYI.

2 Likes

This solution did not work for me.

I receive the error in Terminal:

channel 3: open failed: administratively prohibited: open failed

While my browser (Firefox) said:

The connection was reset

The connection to the server was reset while the page was loading.

  • The site could be temporarily unavailable or too busy. Try again in a few moments.

  • If you are unable to load any pages, check your computer’s network connection.

  • ….

Got it working using UserCredentialReset.sh.

Thank you everyone.

1 Like

Fix Unraid Docker Container:

  • Stop the Container
  • Get a new Claim from https://plex.tv/claim
  • Copy and update claim as container variable PLEX_CLAIM
  • Apply and start container

:tada: :tada: :tada:

This worked for me!
Thanks!!

not working. I have acces to the server but can´t login because login asks for password now. I use SSO Authentification and have no password! This way login is password only which I don´t have !

not working, I got: ERR_EMPTY_RESPONSE

For a WINDOWS server you can also use this method: You need to reclaim your server, but don't dare to touch the Windows Registry
It avoids editing the registry directly.

For claiming the server afterwards, I had success with this method:

  1. Stop Plex server
  2. make the changes to the registry, either by editing it directly, or use the reg file from the above link
  3. sign in to your plex account by going to plex.tv, “Sign In” (as opposed to “Sign Up”)
  4. start Plex server using the regular Windows Start menu (unless you are running it as a system service, but if you do, you should already know how to start it)
  5. now double click the Setup Plex.html file inside your Plex data folder
  6. the web browser might now show an endless spinner. Let it sit spinning for at least 5 minutes!
  7. Stop Plex server using its task tray icon
  8. reboot Windows
  9. Wait another 5 minutes, then open the plex web app and see if access is restored

Don’t forget that you need to revisit all your client apps and other tools which are accessing your server using an access token.

5 Likes

@Chuckpa That seems to have done the trick. I was not prompted to claim the server, but did so manually and I appear to see all my content as expected.

There are a few anomalies with my network configuration so I will monitor through today’s Windows Update push and through a couple restart cycles to be 100% sure. Everything seems OK, though.

I do still have that “extra” server appearing in my sidebar. I assume I can delete that myself somehow, right ? I think what happened was I was logged on using a different windows user than the one PMS normally runs under. When I started PMS it setup under that user.. I’ d like to delete the registry hive and any other setup that it may have done on that incorrect user account to get back to my nice, clean install.

Thanks for your outstanding support !!

Help! I’m getting this: :backhand_index_pointing_down:

plexloginfail

https://support.plex.tv/articles/200288586-installation/#toc-2 worked for me. Terrible user experience on the part of Plex. Why do you hate us server admins :cry:

What the ■■■■ Plex ? How to get the server to working on Ubuntu ? re-logging at ipaddress:32400/web doesn’t show the server at all

1 Like

this worked after deleting those lines and then just add the /web at the end.

a million thx

Dear Plex Team,

stop with all that plex.tv external authentication bullsh*t.
I want to deal with a local users database, not some stupid accounts stored on plex.tv.
I don’t want to rely on an internet connection to be able to manage my users.
I don’t wan’t my account to be managed by you, I don’t want my account to be hacked. My infos has NO REASON to be on your plex.tv servers. My server is running local, I don’t want to have to deal with anything on plex.tv.

Your plex.tv philosophy makes no sense in the first place. Let us just manage our internal server fully On Premise. No “claim server” sh*t whatsoever.

Keep going and people will end up switching to Jellyfin.

Sorry to sound angry/offensive but I’m really FED UP.

5 Likes

User Credential Reset utility.

When prompted, you’ll need a claim token from https://plex.tv/claim.

  1. Download:
wget -O UserCredentialReset.sh https://github.com/ChuckPa/UserCredentialReset/releases/latest/download/UserCredentialReset.sh
  1. Make it executable: sudo chmod +x UserCredentialReset.sh
  2. Run it: sudo ./UserCredentialReset.sh
  3. When prompted, enter the code from https://plex.tv/claim.

Example: On a Ubuntu system

$ sudo ./UserCredentialReset.sh

          Plex Media Server user credential reset and reclaim tool (Ubuntu 24.04.3 LTS)

This utility will reset the server's credentials.
It will next reclaim the server for you using a Plex Claim token you provide from https://plex.tv/claim

Please enter Plex Claim Token copied from http://plex.tv/claim : claim-nottherealtoken
Stopping PMS
Clearing Preferences.xml
Getting new credentials from Plex.tv
Claim completed without errors.
 Username: FordGuy61
 Email:    <redacted>

Starting PMS
Complete.
$
3 Likes

Details? No idea what you tried, what gave you that message, DSM version, etc.

The fix for me with my Ubuntu container was to sign in via an IP address to my local server (It must be by IP!), click a library with exclamation mark, and claim the server. Then the page refreshed and I could see the libraries. I had to go to Settings and reclaim the server in Remote Access.

Reclaim server and then open via HTTPS worked for me :sweat_smile:

Try my solution above. Had the same Problem on DSM NAS