Unable to claim secondary server

Server Version#:PlexMediaServer-1.22.1.4228-724c56e62
Player Version#:N/A

I’ve got an existing plex server that works fine, I’ve tried installing a secondary plex server that is in a remote location and headless.

How ever I am unable to claim the new server, I’ve tunneled into the server and I can access 127.0.0.1:32400 via the tunnel when I login to plex all that it shows is my existing plex server which is at my house.

I’ve also tried a script to manually claim the server, it still doesn’t show up, although after running that I do notice that in the log it no longer says unclaimed.

before running the script to claim it by going to plex.tv/claim.

Plex Media Server.1.log:Apr 01, 2021 12:46:27.476 [0x7f836b7fe700] DEBUG - MyPlex: Sending unclaimed device connections
Plex Media Server.1.log:Apr 01, 2021 12:46:27.477 [0x7f836b7fe700] DEBUG - HTTP requesting POST https://plex.tv/devices/3d932fc0436c7080aae943dd40e942774c5ac77c/unclaimed?
Plex Media Server.1.log:Apr 01, 2021 12:46:28.448 [0x7f836b7fe700] DEBUG - HTTP 422 response from POST https://plex.tv/devices/3d932fc0436c7080aae943dd40e942774c5ac77c/unclaimed?

Now when I restart the service that line isn’t in the log anymore but I am unable to see the server.

When trying to claim a remote server, there’s a few ways.

What I’ve found the most reliable (SSH tunneling is becoming problematic due to the default configurations don’t allow channel 3 by default), which I’ve implemented for Synology NAS systems is, presuming you’re at the command prompt ON the target host:

  1. Make certain the target server friendly name isn’t listed in "Settings - Authorized Devices - Server (dropdown). If it is, REMOVE it.

Proceeding:

  1. With PMS stopped

  2. Remove the following Name="Value" pairs from Preferences.xml if they exist
    a. PlexOnlineUsername
    b. PlexOnlineToken
    c. PlexOnlineEmail
    d. PlexOnlineHomee

  3. Get a Claim Token from Plex.tv

  4. Start Plex and let it sit there a moment

  5. Construct:

curl -X POST 'http://127.0.0.1:32400/myplex/claim?token=PASTE_TOKEN_HERE'
  1. It will pause a moment (PMS will be communicating with Plex.tv)

  2. It will then output a whole bunch of keywords (your account feature flags)

  3. The server will now be available in the GUI.

If this continues to give you difficulty, I will remove the server UUID from plex.tv

1 Like

So following the instructions it “looked” like it worked. I removed it as a Authorized device, none of those values were in Preferences.xml.

Ran the curl with the token.

The Preferences.xml file was updated with a lot more content including my plex username etc, I can see the server was re-added back to Authorize-device.

How ever I can’t see the server in the list, only my original server, if I click on the drop down arrow next to the server name where you would assume you would change it. It just shows one server, that is under settings.

If I go to media section and try to view if the server is visible there, all I can see is my original server plus other servers friends have shared with me, not this newly setup one.

1 Like

Force - Refresh the browser / apps (Control - F5)

The list of servers on your account gets loaded when the page loads.

CTRL F5 doesn’t work, this is across multiple devices trying to access plex.tv and it’s not there so it’s not a cache issue.

If i go to IP the ip, I have the following URL

http://NEWMACHINEIP:32400/web/index.html#!/settings/server/ProcessedMachineIdentifier/settings/general

The ProcessedMachineIdentifier matches the identifier of the old server Preferences.xml.

So I tried putting in the ProcessedMachineIdentifier of the new machine into the URL string, all I get is the following error;

“No Soup for you!”
You do not have access to this server

Remove the PlexOnlineUsername, PlexOnlineToken, PlexOnlineEmail, and PlexOnlineHome (if it exists)

Now use this to claim it.

Still the same, ran the script said it was fine, login to my plex account via plex.tv or directly to the sever itself, same thing only showing the original server.

I did originally try to sync the plex directory from the old server to the new server, but after that didn’t work I did a purge on the directory on the new server and re-installed plex so it was fresh again.

Script output.

plex.tv Password:
plex.tv Password Repeated:
IP Address of PMS server: 127.0.0.1
Comparing entered passwords
Comparing entered passwords ok
Validating IP address
Getting PMS Server Identifier
Getting PMS Server Identifier ok
Getting User Token from plex.tv
Getting User Token from plex.tv ok
Getting PMS Claim Token
Getting PMS Claim Token ok
Claiming server
Claiming server ok 200

Please close your browser, reopen, and browse to http://127.0.0.1:32400/web

@somanbra

  1. Stop Plex.
  2. Make a tar.gz of the “Logs” directory under “Plex Media Server” (in /var/lib/plexmediaserver)
  3. Attach it please.

@somanbra

You gave me a gz of the directory itself… OOOPS

cd ......./Plex Media Server
sudo tar cfz /tmp/PlexLogs.tar.gz ./Logs

attach the PlexLogs.tar.gz found in /tmp

right not sure how I did that one, attached are the correct logs :wink: logs.tar (2.4 KB)

Looks mo’ bettah! :wink:

reviewing.

You have VERBOSE logging on :angry:
Please ONLY use when requested.

I see a user authenticated.

Is this correct ?

Auth: authenticated user 1 as matthieu

Interesting that user means nothing to me.

Also sorry about the logging, it’s just default install settings.

@somanbra

I see two servers signed into your account: Deadpool & plex-server

Is this correct ?

Yup that is correct.

The only server that displays is Deadpool

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.