Can't claim my media server on Synology dsm 6.2~

Server Version#:1.42.2.10156–600010156
Player Version#:4.147.1

So I wanted to update my library (scan manually) in the browser but couldn’t find my media server. At this time the media server still worked so I could watch it on my apple tv. In the browser Plex recommended I follow these instructions (https://support.plex.tv/articles/204281528-why-am-i-locked-out-of-server-settings-and-how-do-i-get-in/) to regain access in the browser.

I made a back up copy of the preferences.xml and then tried removing 3 out of the 4 value pairs instructed. I could not find “PlexOnlineHome”. But once I removed these 3 value pairs I could try to claim the server again, but it fails. Nothing happens. When I restore to the back up preferences.xml it doesn’t find my Plex media server at all in the browser client so it is even worse than seeing it but not being able to claim it. Then I saw there was a newer version so I downloaded and installed it hoping that it would help, but it didn’t. I guess I could just delete all the Plex folders and reinstall the media server again to start from scratch, but is there any way to get my current media server working again?

I realize that I should perhaps install DSM7+ so I can use a newer version of Plex Media Server as well, but that is a major project as I host an API with databases etc and I don’t want to mess that up as I did with my media server. Any suggestions to save my current media server?

Best regards

if you want to stay on DSM 6 you can. It will be supported until DSM 8 is released (if they decide to create a DSM 8)

how good are you with command line?

Are you familiar with SSH ?

I used to run my API with tmux from the command line before I learned about Docker, but I would not say that I’m particularly experienced with command line. SSH sound familiar and I may have used it years ago when working with certificates. but I don’t remember a lot about that either unfortunately. I would say consider me a rookie with some previous experience years ago. :face_with_diagonal_mouth:

Edit: Thinking about it it was proably called OpenSSL or something that I used for certiicates so I may be mixing them up. SSH still sounds familiar though,

Take a peek here.

Go through the README.md and tell me if you are comfortable with it.

When you run it, it will figure out which type of host & OS you’re using then configure itself for resetting the credentials.

The next step, it will ask you for a Plex Claim Token (it shows the URL to get one)

After you PASTE the token into the command line and hit Enter, it will talk to Plex.tv, Get new credentials for your server, and lastly it will edit Preferences.xml for you.

Thank you! I need a break to eat something, but I will try this after dinner and get back here to let you know how it worked out for me. :slight_smile:

I’m doing something wrong. Probably something obvious to someone more experienced with command line? I don’t know exactly what is going on even though it probably tells me. :sad_but_relieved_face:

User@NAS:~$ sudo sh
Password:
sh-4.3# cd /volume1/Plex/
sh-4.3# dir
Bitte\ legen\ Sie\ hier\ keine\ Mediendateien\ ab. tmp_transcoding
@eaDir UserCredentialReset.sh
Library Veuillez\ ne\ placer\ aucun\ fichier\ multimédia\ ici.
Please\ do\ not\ place\ any\ media\ files\ here. ここにメディアファイルを置かないでください。
Por\ favor,\ no\ coloque\ ningún\ archivo\ multimedia\ aquí. 请不要在此处放置任何媒体文件。
sh-4.3# chmod +x UserCredentialReset.sh
sh-4.3# ./UserCredentialReset.sh
sh: ./UserCredentialReset.sh: /bin/sh^M: bad interpreter: No such file or directory
sh-4.3#

Did you save this on a Windows machine? ^M is a CR character.
Linux does not accept this as EOL. Windows uses CR/LF (pair) as EOL.

To download UserCredentialReset.sh directly to the NAS, use:

 wget -O UserCredentialReset.sh https://github.com/ChuckPa/UserCredentialReset/releases/latest/download/UserCredentialReset.sh

Thanks! I did download it on a windows computer. I tried this instead and this happened:

sh-4.3# wget -O UserCredentialReset.sh https://github.com/ChuckPa/UserCredentialReset/releases/latest/download/UserCredentialReset.sh
–2025-12-10 03:13:03-- https://github.com/ChuckPa/UserCredentialReset/releases/latest/download/UserCredentialReset.sh
Resolving github.com… failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘github.com
sh-4.3#

Things are never easy :frowning:

Configure the NAS to use a public DNS server such as 1.1.1.1 (Cloudflare), 8.8.8.8 (Google), or 9.9.9.9 (Quad9).

In DSM 7 it is Synology Control Panel → Network. It should be similar for DSM 6.

If you perform a nslookup for github, then you should see something similar to this (the IP address might be different):

sh-4.4# nslookup github.com
Server:         1.1.1.1
Address:        1.1.1.1#53

Non-authoritative answer:
Name:   github.com
Address: 140.82.113.3

sh-4.4#

This does appear to be the root of the problem (DNS Lookup Failure)

Thank you guys! Especially ChuckPa for your patience and all your help. Now it seems to work! :smiley:

You are superstars :100: :flexed_biceps: :glowing_star: