Cannot access QNAP Plex Since resetting password

Those log entries I snipped and pasted are definitely claimit trying to run. They appear in the log every time I attempt to use the tool.

I’m wondering if this goes back to my credentials somehow being screwed after the password reset. Last night I discovered that I can log in to the website, to my local plex web instance, etc with the new credentials, but the Android app rejects those same credentials.

Worth another password reset?

Sadly not an Android guy, so clueless about that

But if credentials works for Web, then they are good, IMHO

Let’s try this instead

Make a zip of your Preferences.xml file and send it to me in a DM

Maybe something went wrong when you altered it?

This is so odd, and your prefs file looks okay, so let’s try this:

Download the latest Plex Pass version of PMS, and install on top of the existing

Then wait 5 min, and try again

Okay, will do.

For what it’s worth, I reset my password again (but did not trigger sign out of all devices), and now I can login to both the website, the local web app, AND to iOS and Android apps. The latter two were not accepting my credentials until this latest reset.

Will report back after server QPKG reinstalled.

Tried all of above but with no joy.

Unauthorized

401 Unauthorized

</b

Can you let the community know, should be keep trying, or wait until advised by PLEX until issues resolved?
For a PAID service, I’m disappointed with the lack of definitive communication here rather than trawling through thread trying to find answers. We understand there are issues, and am happy to be patient, but please advise us rather than asking people to try different things?

Installed the latest PMS QPKG, waited 5 minutes. Attempted claimit and got the same result.

Hi all, confirming that I have regained access to the server.

Great…and? You know everyone is going to ask…how??

Would you care to share what process was successful ?

@gregmcc

The PlexData shared folder must be created manually by you.

I originally created it with the package but there were too many conflicts and QTS errors so I had to remove the code from the installer.

Here’s how you create it and get it initialized.

@shadytree

while on the command line (SSH) in the QNAP,

curl  http://127.0.0.1:32400/identity

It should respond with XML.

Specifically, you’re looking for claimed="0" (false – aka, not claimed and ready to go)

curl http://127.0.0.1:32400/identity
<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="0" claimed="0" machineIdentifier="81aa08b7d389cf" version="1.28.2.6106-44a5bbd28">
</MediaContainer>

note: I worked until 3am last night helping customers here in the forum (15 hour day). I am east coast US and doing the best I can.

1 Like

I hesitate to document the process because it can potentially be destructive, but here’s what got me back online:

PROCEED AT YOUR OWN RISK. DOING A STEP WRONG HERE COULD BE VERY COSTLY.

  1. Stop the Plex Server on the QNAP

  2. Navigate to your Plex Library directory. For me it’s QPKG/PlexMediaServer/Library

  3. In that directory you have a directory called “Plex Media Server”. RENAME that entire directory to something like “Plex Media Server.old”.

  4. Start the Plex server again. Best to do this from an ssh command line so you can see errors. The start command would be “/etc/init.d/plex.sh start”. When I did this I got the following error:

“# Error in command line:the argument for option ‘–serverUuid’ should follow immediately after the equal sign”

  1. Stop the Plex server from the command line again using “/etc/init.d/plex.sh stop”

  2. Start the Plex server again using “/etc/init.d/plex.sh start” and confirm no errors this time.

  3. Check QPKG/PlexMediaServer/Library and confirm a new “Plex Media Server” directory has been created.

  4. Visit [local Plex Server IP]:32400/web. You should see the setup guide as if you’re creating a new server. MAKE SURE YOU’RE ALREADY LOGGED INTO YOUR PLEX ACCOUNT.

  5. Proceed through the prompts but don’t bother to add any media. Get to the end and you’ll be at an empty Plex screen.

  6. Click the wrench icon and make sure you see all the server options under settings.

  7. Visit [local Plex Server IP]:32400/identity and confirm it now says claimed=“1”.

  8. Back on the command line, stop Plex again using “/etc/init.d/plex.sh stop”

  9. Back in QPKG/PlexMediaServer/Library, go into the “Plex Media Server.old” directory. Rename your preferences.xml file to preferences.xml.bak or something.

  10. Back in QPKG/PlexMediaServer/Library, go into the newly created “Plex Media Server” directory and copy the preferences.xml file from there to “Plex Media Server.old”

  11. Again back in QPKG/PlexMediaServer/Library, rename the newly created “Plex Media Server” directory to “Plex Media Server.fixed”

  12. Still in QPKG/PlexMediaServer/Library, rename the “Plex Media Server.old” directory to “Plex Media Server”

  13. Back on the command line, start Plex using “/etc/init.d/plex.sh start” and ensure no errors

  14. Visit [local Plex Server IP]:32400/web. You should now be able to re-pin your sources. For me, all my watched statuses, etc. were preserved. HOWEVER, I have lost all shares to other users and will need to redo them.

1 Like

TO ALL HERE:

I’m trying to quickly put together a tool, like the one I use for Synology, to help clean up this mess.

It will require one thing.

  1. Start the script
  2. Open a new browser tab to Claim | Plex
  3. COPY the token it gives
  4. PASTE the token into my script.
  5. Hit Enter and let it do its work.

It won’t screw with any other preferences or settings. NO data will be lost during the running.

Is this acceptable?

3 Likes

I would recommend waiting for @ChuckPa to create his script, rather than try the method I used. It may preserve your shares to other users, and will surely be less risky.

Hola, tengo en mismo problema en mi QNAP. Alguien me puede explicar como solucionarlo en Español??, no soy informático, pero necesito poder volver a enlazar mi base de datos de películas .
Quedo a la espera.
Muchas Gracias

Folks.

This should do it for QNAP.

  1. PMS must be installed.
  2. Preferences.xml must exist
  3. Take this tar and extract it in some place easy like /share/Plubic/
  4. AS ADMIN user (remember to sudo), run it.
  5. Don’t forget to get the Plex Claim token and PASTE it when prompted.

This isn’t pretty but it worked.

[~] # ./BigHammer.sh 
Please enter Plex Claim Token copied from  http://plex.tv/claim claim-w38wHGZbyVFdVtaUr-Nz

Claim completed without errors.
 Username: ChuckPA
 Email:    ChuckIsCrazy@haha.com
 
[~] # 

BigHammer.tar (10 KB)

To use this:

  1. MAKE SURE PLEX IS STOPPED
  2. Untar the script someplace
  3. Open your SSH session and be ready
  4. Open a browser tab to Claim | Plex
  5. COPY the Token it gives you
  6. Start the script
  7. PASTE the token where it prompts
  8. Hit enter.

Thanks @ChuckPa !! I know you guys have been working your a**** of the last many hours …

I ran the script, but still no luck.

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8089    0  8089    0     0  40445      0 --:--:-- --:--:-- --:--:-- 40445
Claim completed without errors.
 Username: xxxx
 Email:    xxxx@xxxx.xx

I don’t know if I’m a unique case, but i have outlined everything here (you don’t need to focus on my problem now!!!)

@mm98

was Plex stopped when you ran it?

FFS … How could i miss that. Sorry! No, i’ll give it another shot …

:rofl:

PMS must be off while this works.

What it does is update Preferences.xml (your credentials).

When PMS starts, it has NO CLUE there was any games played while it was sleeping

Maybe I’ll check for PMS and update the script… NEED FOOD :slight_smile: