Claiming server removes my access

I’ve recently started getting a error message that I’m not authorised to access Plex from my NAS. I found a helpful article about removing the authentication credentials, which seesm to work (most of the time!) for a day or two and then the error kicks in again. I’ve discovered that if I don’t claim the server and associate it with my plex account the problem doesn’t happen, but that meanst that I can’t access my content when I’m not on my home network.

It seems like it would be a settings issue, but can’t work out what. I’ve not changed any settings (on either Plex or my server), so not sure why it would start all of a sudden, unless there’s been an update that’s tweaked a setting somewhere.

I’m running Plex version 1.29.2.6364 on my QNAP TS-453D.

Any help is appreciated!

@ChuckPa thanks for that, I’ve made some progress with it, but when invoking the utility ( ./UserCredentialReset.sh) I get
“./UserCredentialReset.sh: line 8: syntax error near unexpected token newline' ./UserCredentialReset.sh: line 8: '” returned, rather than it confirming that it’s running on a QNAP.

Any ideas?

Syntax error? “Unexpected token newline” Smells like you copied/pasted it from windows. Did you?

Are you running as admin / sudo bash ?

There are no errors with the code.

Thanks for the quick reply! I’ve tried copy/paste and typing it out to make sure no typos, both give the same message.

Followed the instructions and it worked fine up to that point. I know it’s probably a rookie error I’m making (as a self confessed rookie!), just can’t work out where I’m going wrong with it.

@ChuckPa any thoughts on this one? Can’t work out where I’m going wrong with it.

Copy the tar file to the host, and then extract it via the QNAP command line.

Entire sequence performed on QNAP.

[~] # cd /share/Public
[/share/Public] # wget https://github.com/ChuckPa/UserCredentialReset/archive/refs/tags/1.0.6.tar.gz
--2022-12-24 14:29:33--  https://github.com/ChuckPa/UserCredentialReset/archive/refs/tags/1.0.6.tar.gz
Resolving github.com... 140.82.112.3
Connecting to github.com|140.82.112.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/ChuckPa/UserCredentialReset/tar.gz/refs/tags/1.0.6 [following]
--2022-12-24 14:29:33--  https://codeload.github.com/ChuckPa/UserCredentialReset/tar.gz/refs/tags/1.0.6
Resolving codeload.github.com... 140.82.113.9
Connecting to codeload.github.com|140.82.113.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘1.0.6.tar.gz’

1.0.6.tar.gz                        [ <=>                                                    ]   5.98K  --.-KB/s    in 0s      

2022-12-24 14:29:34 (21.2 MB/s) - ‘1.0.6.tar.gz’ saved [6127]

[/share/Public] # ls          
1.0.6.tar.gz  DBRepair.sh*  @Recycle/
[/share/Public] # tar xf 1.0.6.tar.gz 
[/share/Public] # ls -la
total 64
drwxrwxrwx  4 admin administrators  4096 2022-12-24 14:30 ./
drwxrwxrwx 28 admin administrators  4096 2022-12-24 14:25 ../
-rw-r--r--  1 admin administrators  6127 2022-12-24 14:29 1.0.6.tar.gz
-rwxr-xr-x  1 admin administrators 37573 2022-12-19 21:47 DBRepair.sh*
drwxrwxrwx  2 admin administrators  4096 2022-12-19 20:48 @Recycle/
drwxrwxr-x  2 admin administrators  4096 2022-11-10 19:14 UserCredentialReset-1.0.6/
[/share/Public] # cd UserCredentialReset-1.0.6/
[/share/Public/UserCredentialReset-1.0.6] # ls -la
total 32
drwxrwxr-x 2 admin administrators  4096 2022-11-10 19:14 ./
drwxrwxrwx 4 admin administrators  4096 2022-12-24 14:30 ../
-rw-rw-r-- 1 admin administrators   974 2022-11-10 19:14 LICENSE.md
-rw-rw-r-- 1 admin administrators  5189 2022-11-10 19:14 README.md
-rw-rw-r-- 1 admin administrators 10042 2022-11-10 19:14 UserCredentialReset.sh
[/share/Public/UserCredentialReset-1.0.6] # chmod +x UserCredentialReset.sh 
[/share/Public/UserCredentialReset-1.0.6] # ./UserCredentialReset.sh 
 
          Plex Media Server user credential reset and reclaim tool (QNAP)
 
This utility will reset the server's credentials.
It will next reclaim the server for you using a Plex Claim token you provide from https://plex.tv/claim
 
ERROR:  PMS is running.  Please stop PMS and try again
[/share/Public/UserCredentialReset-1.0.6] # ./UserCredentialReset.sh                                                           
 
          Plex Media Server user credential reset and reclaim tool (QNAP)
 
This utility will reset the server's credentials.
It will next reclaim the server for you using a Plex Claim token you provide from https://plex.tv/claim
 
Please enter Plex Claim Token copied from http://plex.tv/claim : ^C
[/share/Public/UserCredentialReset-1.0.6] # 

@mc7_of_9

See my post ^^. Repeat . :sunglasses:

@ChuckPa You Sir are a legend of the highest order! Thanks so much for the help, it worked like a charm this time around once I had an idiots guide.

Clearly I needed to enhance instructions.
My initial “idiot proof” instructions are no longer valid.

It seems a better idiot has been created

:rofl:

:joy: No denyng that, glad to help develop the next iteration of the instructions :rofl: