FAQ 15: Claiming & Connecting to a troublesome Synology server
This FAQ is for those situations where the normal claim process has failed.
There are multiple techniques to accomplish this.
DSM 7
- Uninstall the package with the “Keep” option
- Reinstall the package , selecting the “Plex Claim Token” option
- Click “Get Plex Claim Token”.
- Browser tab will open and display a “claim-xxxxxxx” token string
- “COPY” the string
- Return to the installer window
- PASTE the
claim-xxxxx
into the small window on the form. - Click NEXT until it starts installing.
- Installation will need an extra 15-20 seconds for the installer to communicate with Plex.tv and obtain new credentials for your server. After it receives the credentials, it updates your “Preferences.xml” automatically so the server is again connected to your account.
- The installer will confirm success or failure attaching. Success will include your Plex account username in the message
- Open an Incognito Browser Window.
- Connect http://LAN.IP.of.Syno:32400/web
- Confirm Sign in
- Confirm “Got it”
- Skip through wizard if presented
- Arrive at dashboard.
DSM 6
Normal Method 1
- Both Workstation (Computer performing the claiming) and the Synology MUST be on the same LAN subnet.
- In the browser, open http://app.plex.tv/desktop?secure=0
Alternative Method 2
This method has two parts. For those with DSM 7, you’ll recognize it to be the “Plex Claim Token” method.
The procedure is:
On Synology,
- Preparation
- Create a scheduled task named “Claim Plex Server”, which is a “User Script”.
- It runs as user ‘root’
- The “Settings” tab is the script contents. Copy and paste this text
#!/bin/bash
# Make certain you have removed the following NAME="VALUE" pair
# from Preferences.xml with Plex stopped
# Remove: PlexOnlineUsername, PlexOnlineToken, PlexOnlineMail, PlexOnlineHome
# Save and Start Plex
# In your browser, open https://plex.tv/claim
# COPY the link to your browser
# PASTE the claim-xxxxxx value in the statement below .
# Be careful of quotes
curl -X POST 'http://127.0.0.1:32400/myplex/claim?token=PASTE_TOKEN_HERE'
# Check the email from DSM. It will tell if you successful or
# give you the error to bring to the forums.
- SAVE this Scheduled Task. We’ll come back to it shortly.
-
Stop PMS
-
Ensure the Synology Text Editor app is installed.
-
Depending on DSM version , open Preferences.xml in the Synology text editor
- DSM 6: Plex/Library/Application Support/Plex Media Server/Preferences.xml
- DSM 7: PlexMediaServer/AppData/Plex Media Server/Preferences.xml
- Carefully remove the following
Name="Value"
pairs from Preferences.xml being careful not to damage any others or the punctuation then save the file.
- PlexOnlineUsername
- PlexOnlineToken
- PlexOnlineMail
- PlexOnlineHome (if it exists)
-
Now start PMS. Do not open it. Let it sit idle
-
Open Claim | Plex
-
You will be given a claim-xxxxxx token. COPY this token into your browser.
-
Quickly open the Scheduled Task settings again for ‘Claim Plex Server’
-
Go to Task Settings, scroll down to where you paste the Token and paste the
claim-xxxxx
token into the comand. -
Save the task changes
-
RUN the command.
-
Wait for your email to arrive (takes 30-60 seconds depending on ISP)
-
You should see a whole bunch of “Feature Flags” ending with
</MyPlex>
. This indicates your server has been claimed under your account.