Linux Tips

When server and device credentials are out of sync.

Use this procedure when:

  1. You receive the nasty “No Soup For You” message
  2. You’ve changed your Plex password and now have trouble accessing something.
  3. You’ve cloned the server or performed a ‘backup & restore’ using the procedures above but now cannot access the server.

First choice - Preferences.xml missing or deleted.

If something happened to “Preferences.xml” and you need to claim the server again, with everything being normal, Start here first.

Begin here:

  1. Sign out the plex/web browser
  2. Open a new Window
  3. Go to to www.plex.tv (not app.plex.tv)
  4. Sign into your account settings.
  5. Force sign out everything as you change the password.
  6. Open an incognito window
  7. Open http://ip.addr.of.host:32400/web (or 127.0.0.1:32400/web if on the host)
  8. Sign in
  9. Claim it again.

The X-Plex-Token (PlexOnlineToken) and other credentials will now all resync
go to your devices and sign them in again.

Second choice - After a hard password reset on plex.tv

If you’ve changed your password on Plex.tv, and things didn’t go well afterwards …

There is a similar method for other hosts:

On the server computer

  1. Open a Terminal window / SSH into the machine / get into the container ,
    (whichever case applies)
  2. Stop Plex
  3. Edit Preferences.xml
    (Use the Linux text editor on the host itself.)
  4. Carefully remove the following Name="Value" pairs
    – PlexOnlineName
    – PlexOnlineToken
    – PlexOnlineMail
    – PlexOnlineHome (if it exists)
  5. Save the file
  6. Start Plex
  7. Keep the terminal window open. You will need it again momentarily.

On your computer

  1. Open Claim | Plex
  2. COPY the token given into your browser

Switch back to the Terminal session window

  1. On the command line (where the server is), type:
curl -X POST 'http://127.0.0.1:32400/myplex/claim?token=PASTE_TOKEN_HERE'
  1. Hit Enter.
  2. Wait 15-20 seconds for Curl / PMS to talk to Plex.tv and setup new credentials.

As confirmation, the curl statement will look like this:

curl -X POST 'http://127.0.0.1:32400/myplex/claim?token=claim-xxxxxxx'

Confirming success.

You will be able to confirm the server is properly reclaimed and credentials are in sync when, after executing the curl statement, it responds with a stream of XML which ends in </MyPlex>

3 Likes