Cannot claim server

Server Version#: Synology DS412+
Player Version#: 1.23.3.4707-ebb5fe9f3

Plex Media Server Logs_2021-06-26_13-07-06.zip (2.5 MB)

I once again having problems claiming my server. I’ve already tried the following things, none of which have worked:

  1. Restarted both the router and NAS
  2. Ensured VPN is turned off
  3. Signed out of both Plex Server and Plex.tv client
  4. Restarted Plex Server
  5. Signed back into Plex Server using http://myip:32400/web/index.html, in fresh browser window
  6. Try to claim server and it fails with no information.
  7. Signed back into Plex client and tried again.
  8. Tried running claimpms.sh on both NAS and laptop to claim server, and both failed.

I don’t understand why plex has a problem connecting to its server from my NAS, and I don’t understand the errors provided in the logs to debug. I’ve attached the logs. This issues keeps happening to me every other month or so, and with almost every plex update. Anyone have any ideas?

Thank you for the logs.

I can see where PMS is unable to communicate with Plex.tv.

“Host Unreachable” means there is a problem with the networking.

In this case, I recommend checking -

  1. Default adapter
  2. Gateway device
  3. Confirm the NAS can indeed get to the internet.
Jun 26, 2021 13:06:39.571 [0x7fad8ab5cb38] WARN - HTTP error requesting GET https://plex.tv/api/v2/release_channels?X-Plex-Token=xxxxxxxxxxxxxxxxxxxxt to server) (Failed to connect to plex.tv port 443: Host is unreachable)
Jun 26, 2021 13:06:39.571 [0x7fad8ab5cb38] DEBUG - [AutoUpdateRequestHandler] Using cached data for update channels
Jun 26, 2021 13:06:39.572 [0x7fad8ab5cb38] DEBUG - HTTP requesting GET https://plex.tv/api/v2/features?X-Plex-Token=
Jun 26, 2021 13:06:47.021 [0x7fad8abc5b38] DEBUG - player cdk47gwxmhkwmlufq226gtbh was last refreshed 30 seconds ago
Jun 26, 2021 13:06:48.597 [0x7fad8ab5cb38] ERROR - Error issuing curl_easy_perform(handle): 7
Jun 26, 2021 13:06:48.597 [0x7fad8ab5cb38] WARN - HTTP error requesting GET https://plex.tv/api/v2/features?X-Plex-Token=xxxxxxxxxxxxxxxxxxxxt to server) (Failed to connect to plex.tv port 443: Host is unreachable)

Hmm, I’ve checked the default gateway. It is set to the correct IP and it’s the same as the Plex Server is accessible at. How can I check the default adapter and gateway device? Can you provide some more details as to what they should be set to and how to check those values? I ssh-ed into the NAS and was able to curl an external website, but not sure if that is actually verifying the NAS can get to the internet. It seems like it’s connected.

The Synology GUI is the preferred tool here. It shows the default gateway adapter and IP address of the gateway (you type in).

If all else fails, we’ll just hit it with a manual claim process. Not a big deal there.

Are you up to a little bit of command line work?

Yeah I normally check things using the GUI. I’m comfortable with the command-line work. If you can me provide some steps to follow / things to check, I’ll go through them and report back.

Setup -

  1. Stop Plex
  2. Plex share – Library / Application Support / Plex Media Server
  3. Delete Preferences.xml
  4. Start Plex
  5. Let it sit completely idle / unopened.

Manual claiming

  1. Control Panel - Terminal & SNMP - Enable SSH
  2. If needed, get “Putty” (for Windows) if you’re using that.
  3. SSH into the Syno as either ‘admin’ (giving administrator password) or your username.

=== these next few steps have a time limit so be mindful ====

  1. Web browser window -
  2. https://plex.tv/claim
  3. It will preent you with a Claim Code
  4. Copy that to the browser
  5. – now the timer starts – we have 4 minutes to complete the task.
  6. At the command line:

curl -X POST ‘http://127.0.0.1:32400/myplex/claim?token=PASTE-TOKEN-HERE

it will look like this except with your token:

curl -X POST 'http://127.0.0.1:32400/myplex/claim?token=claim-yfYswUXsThQpGy2d'
  1. Hit ENTER
  2. The curl command will sit there idle for 15-20 seconds – this is normal.
  3. It’s waiting for PMS to take what you gave it (the token) and reply
  4. PMS is using the token to talk to Plex.tv and log in to your account.

When it’s all done —

You’ll see a whole bunch of “Features” scroll by.
The command line prompt will return.

The server is now signed in to your account.

2 Likes

So I’m getting an html 500 response status when I attempt the curl. Followed all the steps. Stopped Plex, deleted Preferences, restarted Plex, got a new token on the web from plex.tv/claim (after prompt to sign in). Then this

curl -X POST 'http://127.0.0.1:32400/myplex/claim?token=claim-[mytoken]'
<html><head><title>Internal Server Error</title></head><body><h1>500 Internal Server Error</h1></body></html>

It sits idle for awhile as you said, then returns a 500 status. I tried testing the curl against other sites and they return status ok. E.g. curl -X GET "https://httpbin.org/get" -H "accept: application/json" or curl -X GET "https:/www.google.com"

Just for giggles? ( I might have been out in the sun too long ? :wink: )

retry the sequence… use https://127.0.0.1.

I get the following error using https. curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 127.0.0.1:32400

@havok2063

Check PM

Hello @ChuckPa, I’m experiencing the same issue here. Following your steps, I get the same error as @havok2063 : Internal Server Error. How did you fix it? Sounds like the server can’t reach plex.tv endpoint but it’s very strange, it worked correctly yesterday and I did not make any modifications to the server or to plex configs. Thank you

@DevPan

Where are you in the process? DSM 6? , DSM 6 → DSM 7 migration?, DSM upgrade?

Please share some more details. The more I know, the better.

Well, I could be in the wrong thread but I’m not using Synology, just a plain Ubuntu Server 18.04 distro.

I’m getting exactly the same issue. I’m using Synology, here’s the details from the logs about my system:

Aug 22, 2021 14:04:25.304 [0xb3902d90] INFO - Plex Media Server v1.24.0.4930-ab6e1a058 - Synology DS214play i686 - build: linux-x86 synology - GMT -07:00
Aug 22, 2021 14:04:25.307 [0xb3902d90] INFO - Linux version: DSM 6.2.4.25556-0, language: en-US
Aug 22, 2021 14:04:25.307 [0xb3902d90] INFO - Processor Intel(R) Atom™ CPU CE5335 @ 1.60GHz
Aug 22, 2021 14:04:25.307 [0xb3902d90] INFO - Compiler is - Clang 11.0.1 (https://plex.tv e0c29d5827bc4eaaa2ceb882cbeed224b0960173)

Not sure where the internal server error logs are being written. This whole claiming server business is a real PITA, I’ve wasted too many hours trying to get this stuff to work. I’m still using DMS 6.2.4 and have not attempted a DSM 7 upgrade.

Also, I upgraded to what I thought was the latest Server but the webpage still thinks there’s an update.

@plex_myidentity_site

Sorry, I need a lot more of the logs than that.

All that tells me is the CPU you have. It’s shows nothing of the problem

  1. Manually go into the Plex share (File Station)
  2. navigate down until you see Logs
  3. Right-click Logs → Compress to Logs.zip
  4. Download that (click it)
  5. Attach here.

@ChuckPa @DevPan FWIW, I’m still having the same problem. Upgraded to plex 1.24.1.4931-1a38e63c6, still using DSM 6. Has there been any discussion on possible ideas of why I can’t manually reclaim the server with the curl command? I basically can’t access any of my media anymore via plex.

@trumpy81 I’ve tried that before, and already, and it doesn’t work. But I can try it again. The Claim Server button just spins and does nothing. I always get some sort of the following error in my log,

Aug 28, 2021 08:20:05.281 [0x7f3554fc9b38] ERROR - Error issuing curl_easy_perform(handle): 7
Aug 28, 2021 08:20:05.282 [0x7f3554fc9b38] WARN - HTTP error requesting GET https://plex.tv/api/v2/features?X-Plex-Token=xxxxxxxxxxxxxxxxxxxxt to server) (Failed to connect to plex.tv port 443: Host is unreachable)
Aug 28, 2021 08:20:05.282 [0x7f3554fc9b38] WARN - FeatureManager: Couldn't get features. Trying again soon.

and when I try to manually claim the server using plex.tv/claim with curl I get the 500 internal server error.Plex Media Server Logs_2021-08-28_08-48-29.zip (3.0 MB)

I’ve attached the latest logs to my last post. You can also take a look at the logs attached in my very first post to see the logs from a while back, to compare.

Ok, I can try that. I have/had custom rules set up on my firewall. Can you tell me what I should set for the Firewall rules to allow Plex through? In particular, under the Port - Custom settings, and which regions I need to check under the Source IP - Location settings? Currently, under Port-Custom, I have Destination Port set to TCP for 32400. Under Source IP - Location, I have the regions selected for U.S, Great Britain, and Ireland.

And for Port Forwarding, is it preferable to set that on my router, or in the Synology, or both? Normally I set it in my router, and don’t set it up as a rule in the Synology.