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.
@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.
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.
[~] # 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] #