Server Version#: Package plex · GitHub
Player Version#: for Windows Version 1.82.2.4024-64f483f6
unraid Version: 6.12.4
Plex and Unraid were working perfectly for years. This past year something seems to have happened. People outside my network can no longer access the server and even inside my network, many titles were showing as unavailable (Please check that the file exists and the necessary drive is mounted.). I deleted the library database file and added all of the shares back and that has seemed to begin working as of last night to rebuild the library and grab metadata. However, I cannot access the server outside of local. I can’t watch movies on the web, desktop, or Android apps. “Server is currently unavailable”
I successfully claimed my server and remote access was successfully enabled locally.
UPnP IGD
Original port 14337
TCP
forward to address 192.168.1.167 (my server)
forward to port 32400
Always
This is what I have in my Verizon router
So you’re using the LSIO plex package?
Do you have DEBUG log files ZIP which we can see that capture the problem.
( Best logs for this are captured about 4 minutes after restarting the server . This gives it time to setup and test Remote Access visibility )
Yes, LSIO.
I have debugging turned on (no verbose).
Plex Media Server.log (273.5 KB)
Settings → Troubleshooting.
Upload the ZIP file to the thread. Drag it into the message window. It will insert at the cursor location.
Log files:
Log files:
From what I see in your logs, It’s gotten itself unclaimed.
I have a script,
- Runs inside the container
-or- - Runs with the container off, specify full path to Preferences.xml on the command line (-p option)
This script, coupled with plex.tv/claim, will reset your credentials, get new credentials, and then update your Preferences.xml so the server will be claimed again to your account when you start it.
Thank you very much. I read the instructions over and over and can’t interpret what it means. I’ve downloaded the UserCredentialReset.sh file onto my mac, have located the Preferences.xml file, but am stuck on step #6. I can get to root@ on my unraid terminal but don’t know where to go from there since I can’t seem to identify what folder location will work (shows N/A for Linux in the instructions of location recommendations). My Preferences.xml file is here: appdata/plex/Library/Application Support/Plex Media Server/Preferences.xml
I don’t want to mess anything up, so I’m trying to be sure I’m doing this right.
Let me recap for you.
-
Download the utility
-
COPY that file to wherever you have
/config
mapped in the real filesystem -
Now open a terminal (command line) session. (Unraid - Upper right corner)
-
Start a docker command line session
-
Stop Plex (without stopping the container) –
/plex_service.sh -d
-
cd /config
-
./UserCredentialReset.sh
– It will make certain Plex is stopped (it will error if still running)
– It will identify its configuration and show(Docker)
in the opening header
– It’s now sitting and waiting for you to enter the claim token. Let’s get it -
In a new browser tab, open https://plex.tv/claim
-
COPY that
-
Come back to the docker terminal session window. Right-Click is PASTE
-
Hit Enter
-
It will clear the existing credentials from Preferences.xml
-
Next, it will, using the claim token, talk to Plex.tv for new credentials
-
These new credentials will be written into your Preferences.xml for you
(this is how it’s claimed) -
Lastly, as confirmation, it will show your username and email.
The whole sequence looks like this ( I am creating a new contrainer and then claiming it. I already copied UserCredentialReset.sh to where /config is):
[chuck@lizum docker.1995]$ sudo ./dockerplex
plex
plex
Error response from daemon: No such container: plex
Error response from daemon: No such container: plex
Error response from daemon: No such container: plex
Untagged: ghcr.io/hotio/plex:latest
Untagged: ghcr.io/hotio/plex@sha256:ef416fb424c8eef407a9673ed70ad1b2503b588c395e1b94112d40ccb000dd5a
Deleted: sha256:230b9541a6433988728dff04d1e8ca68c0ef7f6ce69581f59305a9e36d0ea329
Untagged: plexinc/pms-docker:plexpass
Untagged: plexinc/pms-docker@sha256:8aeb4a982ea564ad309861dd251cd9e218aac3f4e4d3da21375568341be1b16f
Deleted: sha256:bd2a705539fb8e5a051e7754a97e7345e542e6e1aa374bf6d7cff0c2601034bd
Deleted: sha256:cd9edf380b4fb57f6e1b0abfe6d7954e699075602a6668fa37ad9c842cff1efd
Deleted: sha256:f92d453744abb8c52af7fa92d2237cedf03677ef92f08588013437155633c3c0
Deleted: sha256:2f5655bc324df8f211364c70328e7f402cb4c631a272e188ba2483f1b469f360
Deleted: sha256:9de65d1e8b2782409b2420bf9347003a43e91bb65c1e4c8fbd7d098d6234f359
Deleted: sha256:e0f8e3acb2bf7fe9384463ae7009179d299b211e7cf17c2bf9d8e5e248cfe5b0
Deleted: sha256:0e64bafdc7ee828d0f3995bebfa388ced52a625ad2969eeb569f4a83db56d505
Unable to find image 'plexinc/pms-docker:plexpass' locally
plexpass: Pulling from plexinc/pms-docker
a70d879fa598: Pull complete
c4394a92d1f8: Pull complete
10e6159c56c0: Pull complete
d1042fe57e96: Pull complete
ac5317c7b384: Pull complete
47414e89d67b: Pull complete
Digest: sha256:8aeb4a982ea564ad309861dd251cd9e218aac3f4e4d3da21375568341be1b16f
Status: Downloaded newer image for plexinc/pms-docker:plexpass
2b3f6e259ea754b174b1bf62a92d3dfe91bd78fec2814c73bee91df50300654f
[chuck@lizum docker.1996]$
[chuck@lizum docker.1996]$
[chuck@lizum docker.1996]$
[chuck@lizum docker.1996]$ sudo docker exec -it plex bash
root@dockerplex:/# ls
bin data glock init lib32 libx32 opt proc sbin tmp var
boot dev healthcheck.sh installBinary.sh lib64 media plex-common.sh root srv transcode version.txt
config etc home lib libexec mnt plex_service.sh run sys usr
root@dockerplex:/# cd /config
root@dockerplex:~# ls
DBRepair.sh TunerService.symbols
DLNA.symbols UserCredentialReset.sh
Library plexmediaserver_1.29.2.6273-2b1f0cbcd_amd64.deb
PlexMediaServer-symbols-standard-1.31.3.6819-2ef591a4c-linux-x86_64.zip plexmediaserver_1.31.3.6819-2ef591a4c_amd64.deb
SQLiteStub.symbols server_props.json
Scanner.symbols tmp
Server.symbols transcode
root@dockerplex:~# ./UserCredentialReset.sh
Plex Media Server user credential reset and reclaim tool (Docker)
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
root@dockerplex:~# /plex_service.sh -d
root@dockerplex:~# ./UserCredentialReset.sh
Plex Media Server user credential reset and reclaim tool (Docker)
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 : claim-3_vMzHusS5Nx4bH9ZWtw
Clearing Preferences.xml
Getting new credentials from Plex.tv
Claim completed without errors.
Username: ChuckPA
Email: ChuckIsCrazy@loonies.org
Complete. You may now start PMS.
root@dockerplex:~#
Now exit and restart the container.
PMS will be claimed.
NOTE: the tool doesn’t care where it is as long as it can properly identify the Plex configuration.
If it cannot, there is a -p /path/to/Preferences.xml
option which invokes “manual mode”
Thanks, again, for the details and help. I don’t know where I have /config mapped. Is that a share I need to create? Sorry for the newb questions. Is that a subfolder of plex?
Do you know Linux command line well enough to use cat
??
-or-
you can really put it anywhere … It will find the Preferences.xml (it probes the container/host to figure out where it is – when launched from inside the container)
Sorry, I do not. I’m learning as I go. I try to remember what I’ve learned and build on it but have never used console or Linux command line. Gotta start somewhere. I’ve followed many tutorials to get to where I’m at and it’s worked for years but I’ve exhausted my current knowledge and will need guidance, unfortunately.
I’ve placed UserCredentialReset.sh here: /appdata/plex/Library/Application Support/Plex Media Server
I’ve opened a console under the plex docker (/logterminal/plex/) as well as unraid (/webterminal/ttyd/). I’m stuck here.
Ok, this is a little ‘hacky’ but gets the job done.
( I need to take some time and add more docker container support to the script. It’s been a while )
-
Open a terminal session at the Unraid console ( >_) button
-
In that window is where you’ll work
-
If you logged in as ‘root’ (‘#’ prompt) then you’re already good to go
– if not, type: ‘su’ (jump to super user mode) and enter the root password.
– You’ll get the ‘#’ prompt again -
Now we’ll
cd /mnt/user/appdata
( If I understand unraid ok, this will be where your container is )
chuck@Jemini:~$
chuck@Jemini:~$ su
Password:
root@Jemini:~# cd /mnt/user/appdata
root@Jemini:/mnt/user/appdata#
- Now list the contents of the directory to see if UserCredentialReset.sh is there
– as well as the Plex container name.
root@Jemini:/mnt/user/appdata# ls -la
total 12
drwxrwxrwx 1 nobody users 63 Dec 13 02:12 ./
drwxrwxrwx 1 nobody users 78 Nov 29 14:41 ../
lrwxrwxrwx 1 root root 32 Nov 28 20:37 192.168.0.20_media -> /mnt/remotes/192.168.0.20_media//
drwxr-xr-x 1 nobody users 42 Nov 14 12:08 Plex-Media-Server/
-rwxrwxrwx 1 chuck users 11814 Dec 13 02:12 UserCredentialReset.sh*
drwxrwxrwx 1 root root 37 Nov 13 19:13 plexinc/
drwxrwxrwx 1 nobody users 23 Dec 13 02:09 transcode/
root@Jemini:/mnt/user/appdata#
- Now, because my tool is a bit outdated, we’ll need to dive into it.
You can copy & paste my text into your command line.
(‘Plex-Media-Server’ is my container name. EDIT that part if yours is different)
cd "Plex-Media-Server/Library/Application Support/Plex Media Server"
- Let’s confirm everything is here (
ls -la
)
root@Jemini:/mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server# ls -la
total 32
drwxr-xr-x 1 nobody users 253 Dec 13 02:17 ./
drwxr-xr-x 1 nobody users 31 Nov 13 19:11 ../
-rw------- 1 nobody users 42 Dec 13 02:09 .LocalAdminToken
drwxr-xr-x 1 nobody users 4096 Dec 13 02:16 Cache/
drwxr-xr-x 1 nobody users 145 Dec 5 13:05 Codecs/
drwxr-xr-x 1 nobody users 87 Dec 13 02:09 Crash\ Reports/
drwxr-xr-x 1 nobody users 6 Nov 13 19:11 Diagnostics/
drwxr-xr-x 1 nobody users 90 Dec 5 13:02 Drivers/
drwxr-xr-x 1 nobody users 4096 Dec 13 02:16 Logs/
drwxr-xr-x 1 nobody users 23 Nov 13 19:50 Media/
drwxr-xr-x 1 nobody users 36 Nov 13 20:20 Metadata/
drwxr-xr-x 1 nobody users 96 Nov 13 19:12 Plug-in\ Support/
drwxr-xr-x 1 nobody users 6 Nov 13 19:11 Plug-ins/
-rw------- 1 nobody users 1183 Dec 13 02:09 Preferences.xml
-rw------- 1 nobody users 12330 Dec 13 02:09 Setup\ Plex.html
drwxr-xr-x 1 nobody users 6 Nov 13 19:11 Updates/
root@Jemini:/mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server#
-
There’s Preferences.xml right where we expect it.
-
Stop Plex in the Unraid GUI.
-
Invoke my tool with this command:
/mnt/user/appdata/UserCredentialReset.sh -p ./Preferences.xml
- It will look like this (and you’ll see the script respond then wait for input)
root@Jemini:/mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server# /mnt/user/appdata/UserCredentialReset.sh -p ./Preferences.xml
Plex Media Server user credential reset and reclaim tool (User-Defined)
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
Using given Preferences path: './Preferences.xml'
Please enter Plex Claim Token copied from http://plex.tv/claim :
-
In a new browser tab, open https://plex.tv/claim.
It will give you a newclaim-xxxxx
token -
COPY it and return to the command line window here.
-
Within the next 4 minutes, PASTE (right-click) the claim token into the window, and press enter.
-
It will respond quickly with your Username and Email.
-
The entire sequence looks like this:
root@Jemini:/mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server# /mnt/user/appdata/UserCredentialReset.sh -p ./Preferences.xml
Plex Media Server user credential reset and reclaim tool (User-Defined)
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
Using given Preferences path: './Preferences.xml'
Please enter Plex Claim Token copied from http://plex.tv/claim : claim-ZKc3d5KiVeJqaskCZNtM
Clearing Preferences.xml
Getting new credentials from Plex.tv
Claim completed without errors.
Username: ChuckPA
Email: Chuck@loonies.com
Complete. You may now start PMS.
root@Jemini:/mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server#
That’s it. Start Plex
GOT SO CLOSE!
root@AssPhaceServer:/mnt/user/appdata/plex/Library/Application Support/Plex Media Server# /mnt/user/appdata/UserCredentialReset.sh -p ./Preferences.xml
/mnt/user/appdata/UserCredentialReset.sh: line 7: syntax error near unexpected token `newline'
/mnt/user/appdata/UserCredentialReset.sh: line 7: `<!DOCTYPE html>'
root@AssPhaceServer:/mnt/user/appdata/plex/Library/Application Support/Plex Media Server# /mnt/user/appdata/UserCredentialReset.sh -p ./Preferences.xml
/mnt/user/appdata/UserCredentialReset.sh: line 7: syntax error near unexpected token `newline'
/mnt/user/appdata/UserCredentialReset.sh: line 7: `<!DOCTYPE html>'
root@AssPhaceServer:/mnt/user/appdata/plex/Library/Application Support/Plex Media Server#
HOLD UP… you somehow got the HTML web page into the SH file.
NOT good…
Here is the ‘TAR’ file.
COPY this into appdata
Next, tar xf UserCredentialReset.tar
It will extract the file UserCredentialReset.sh
and deposit it right there.
Let it overwrite the file you had put there.
It should be length 11,814 bytes
-rwxr-xr-x 1 chuck chuck 11814 Dec 10 13:17 UserCredentialReset.sh*
UserCredentialReset.tar (20 KB)
Use the same commands from above. You won’t get syntax errors
WORKED!! You, my friend are a wizard and I am so thankful for your help. I’ll thoroughly test tomorrow when I’m out of network. I greatly appreciate your patience. Now, I know just a little bit more about Linux, Plex, and unraid.
If it thinks the server is OFFLINE,
Get into Plex/web and tickle it.
Start PMS,
Remote Access OFF , wait 60 sec , Remote Access ON
Force terminate the mobile app.
Restart it
That may have done the trick! I’ll verify with other users on the server