I had Plex up and running previously and could stream without issue on my Roku, iphone and laptop to my raspi3/Synology NAS. Then I screwed up royally and deleted the wrong user on my NAS, which wiped out my library. Fortunately I had a backup of all my movies, but now I can’t get Plex to load any of them into a library. I decided to start from scratch and reinstalled Raspbian on the pi and reset all of the settings on my NAS. Here’s how it went:
My Plex server is running on a Rasberry pi 3. I followed these steps to get everything in place: removed link to broken pi io guide by mod
While on the pi, I can see the shared folder and all of the files within it. When I try to add this same shared folder to Plex, I can see the shared folder, but nothing in it. If I select the shared folder and add it to my library, Plex says there are no items in the library.
Any (dumbed down) help is greatly appreciated. My understanding of Linux is limited to my ability to copy and paste.
Whichever username you are running Plex as (ether pi or plex) must also be added and given permission to read those shares on the Syno unless you give read permission to everyone on the Synology.
I think I’m running it as pi. I set Plex to run under the Pi user (PLEX_MEDIA_SERVER_USER=pi). Would I create a new user on my NAS to reflect this user? Do the passwords need to coincide? I never set up this user, so I’m not sure what the password would be.
If it returns init then you’re ok. Add user pi to the Syno and give it permission to read the shares
if it returns systemd, it’s still running as plex. we obsoleted /etc/defaults/plexmediaserver when systemd became the default in 2016
You mounted the Plex media from the Syno inside the Pi home directory but Plex is running as user plex on your system still.
I would like to suggest a slight change to how you do things… It will make life a bit easier
Here are the commands. The # after each are my comments to you
Setup the mount point for the NAS to graft in
sudo sh # open a root command shell in this terminal window
mkdir /home/plex # make a directory for the media from the Syno to mount to
chmod 755 /home/plex # give it permissions so everything can read it
umount /home/pi/plex
Add the actual mount info to /etc/fstab so Linux will do this at boot
In the editor of your choice (gedit works great because it’s entirely graphical) add this line
Damn. You are the man ChuckPA. So if I understand correctly, the NAS will mount on boot, right? If you’re ever in the Putnam County NY area, lemme know and I’ll buy you a beer!
I’ve been doing Unix/Linux since the 80’s. Learned a few tricks in that time.
How those options work:
default - assign all default NFS mount options (which are timing/permission related)
rw - give it read/write permission
auto - mount automatically at boot
nofail - don’t fail-out the startup if the remote share is unavailable
bg - put the failed mount in the background for retry
0 0 - No backup nor filesystem checks here. (done on the Syno side)
You all up and running?
I live in south-central PA - Lancaster County now. I used to live update NY. (Skaneateles)
I can see all the media now. I did a restart of the pi and lost my connection. I needed to remount home/pex for it to work again. Were you expecting that to happen automatically on boot?
Yes, I had you type umount /home/pi/plex This removes the connection. PMS will start turning red that the media is unavailable. This is normal and expected
Please show me your final version of /etc/fstab now?
Having mounted /home/plex, with user plex having been created on the Syno and given access, it can now traverse the mount and see what you (user pi) see.
Everything should be automatic from here. Do you have the default automounter daemon running?