Server Version#: Raspbian GNU/Linux 10 (buster)
Player Version#: 1.41.4.9463-630c9f557
I have a Raspberry Pi 3 and Synology NAS mounted library. It’s been working great thanks to some troubleshooting from Chuck many years ago. My ISP changed last week, so I needed to updated the NAS IP address in my cmdline.txt file, and updated the mount info to /etc/fstab . Everything was working great.
Then I pressed my luck and decided to update to the latest PMS on my Pi. After successful install and quick reboot of the Pi, I lost my library connection. I tried updating the Raspberry Pi OS to see if it was a comparability issue. Nothing changed.
I can manually mount the NAS via terminal and see all my folders, but am unable to see or add my since deleted library when I visit Plex on the web or anywhere else.
Any ideas? My LInux experience is limited to what went into this setup and nothing else, so I am mostly at the “follow these directions” understanding of Linux troubleshooting. Any help is appreciated!
Here is some info Chuck asked for in the link above in case it is helpful:
Knowing you upgraded the OS immediate makes the mount point and override suspect.
Do the following:
Stop Plex
Unmount all the network shares from the syno
For each mount point, ls -la /path/to/mount-point
Confirm the permissions are 755
Next, we’ll look to see if you lost your override.conf (as part of the ugprade)
– Check for /etc/systemd/system/plexmediaserver.service.d/override.conf
– Recreate it if lost (root partition got reformatted ??)
Confirm override.conf is still configured to properly point to /home/plex
Now confirm /home/plex is the correct ownership & permissions
– If /home is a separate partition, login as root (set passwd first) and unmount /home – check the mount point permissions — should be 755 then mount it and check again.
Thanks, Chuck. This has quickly gotten over my head with my limited Linux experience. I’ll do my best to follow your steps this weekend and get back to you with what I find. Thanks for the help.
From there, do I download a zip or a tar file, and with what commands? My Linux experience is very limited and mostly at a level of “Copy and paste these commands”. I think I should be able to follow your README instructions once I have the tar or zip file downloaded.
I plugged my Pi into a monitor and navigated to usr/lib/plexmediaserver and can see the UserCredentialReset.sh file sitting in there. If I right click and choose Execute or Execute in Terminal, nothing happens.
If I jump back to my mac and ssh into the pi, and change directory to usr/lib/plexmediaserver , then try to execute with sudo chmod +x UserCredentialReset.sh, I get the same error:
Not sure if this has anything to do with it…but I downloaded your file (UserCredentialReset.tar.gz) while on the pi and tried extracting it to the directory above. I get an error that I don’t have the right permissions. If I try to change permissions on the plexmediaserver folder (change content from only owner to Anyone), I get another error: Operation not permitted.
Here is how it looks (including when you make mistakes )
[chuck@lizum ~.2007]$ git/chuck/UserCredentialReset/UserCredentialReset.sh
ERROR: This tool can only be run as the root/admin (or sudo root/admin) user
[chuck@lizum ~.2008]$ sudo !!
sudo git/chuck/UserCredentialReset/UserCredentialReset.sh
Plex Media Server user credential reset and reclaim tool (Ubuntu 22.04.5 LTS)
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
[chuck@lizum ~.2009]$ sudo systemctl stop plexmediaserver
[chuck@lizum ~.2010]$ sudo git/chuck/UserCredentialReset/UserCredentialReset.sh
Plex Media Server user credential reset and reclaim tool (Ubuntu 22.04.5 LTS)
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 :
Thank you for the step-by-step. Still getting hung up ./UserCredentialReset.sh. Below are my commands and the error, so the script doesn’t seem to start.
pi@raspberrypi:~ $ cd /usr/lib/plexmediaserver
pi@raspberrypi:/usr/lib/plexmediaserver $ sudo bash
root@raspberrypi:/usr/lib/plexmediaserver# systemctl stop plexmediaserver
root@raspberrypi:/usr/lib/plexmediaserver# pwd
/usr/lib/plexmediaserver
root@raspberrypi:/usr/lib/plexmediaserver# ./UserCredentialReset.sh
./UserCredentialReset.sh: line 7: syntax error near unexpected token `newline'
./UserCredentialReset.sh: line 7: `<!DOCTYPE html>'
root@raspberrypi:/usr/lib/plexmediaserver#
Sorry, when I saw the .sh file on my Pi I thought I had what I needed. How do I get your UserCredentialReset.tar.gz file over to where it needs to be on my Pi? I copied the url and tried the following, but get an error: Thank you so much for your patience here…
pi@raspberrypi:/usr/lib/plexmediaserver $ sudo wget https://forums.plex.tv/uploads/short-url/pZucBKMufoi8eOysU2W0LqPVC0L.gz
--2025-03-09 21:30:52-- https://forums.plex.tv/uploads/short-url/pZucBKMufoi8eOysU2W0LqPVC0L.gz
Resolving forums.plex.tv (forums.plex.tv)... 2602:fd3f:3:ff01::2b, 184.105.99.43
Connecting to forums.plex.tv (forums.plex.tv)|2602:fd3f:3:ff01::2b|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2025-03-09 21:30:53 ERROR 404: Not Found.
Wish I was able to make better progress here, but am not having any luck. I tried updating the command you provided with my username and IP, but see the following:
UserCredentialReset.tar.gz: No such file or directory
Not sure if this is the right thing to do, but tried this next:
pi@raspberrypi:~ $ sudo wget "https://forums.plex.tv/uploads/short-url/pZucBKMufoi8eOysU2W0LqPVC0L.gz"
--2025-03-12 21:08:06-- https://forums.plex.tv/uploads/short-url/pZucBKMufoi8eOysU2W0LqPVC0L.gz
Resolving forums.plex.tv (forums.plex.tv)... 2602:fd3f:3:ff01::2b, 184.105.99.43
Connecting to forums.plex.tv (forums.plex.tv)|2602:fd3f:3:ff01::2b|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2025-03-12 21:08:06 ERROR 404: Not Found.
If it’s time for me to fire up my Netflix account, just give the word