I’m trying to figure out how to store the Plex Library (metadata) folder on a network share. I am running the last version of Plex on a Debian 10.7 machine. The network share successfully mounts at bootup and I’m able to read and write data to it with no issues.
I followed these instructions, but it’s not working and I’m not sure how to find out where the issue lies: Moving PMS 'Library'
Anyone know of a log file or something that I can check to see if Plex is reading the override.conf file and throwing an error somewhere?
Any help is much appreciated!
P.S. I’ve been running the Plex metadata from a network share in a Windows PMS build for years without any problems.
plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-12-08 10:54:39 CST; 54min ago
Main PID: 780 (Plex Media Serv)
Tasks: 45 (limit: 988)
Memory: 92.4M
CGroup: /system.slice/plexmediaserver.service
├─780 /usr/lib/plexmediaserver/Plex Media Server
├─803 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-b509cc236/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server
└─855 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.21.0.3711-b509cc236
Dec 08 10:54:39 JMD-Deb-Plex systemd[1]: Starting Plex Media Server…
Dec 08 10:54:39 JMD-Deb-Plex systemd[1]: Started Plex Media Server.
Dec 08 11:49:08 JMD-Deb-Plex systemd[1]: plexmediaserver.service: Current command vanished from the unit file, execution of the command list won’t be resumed.
I’m guessing it would show the override file next to “Loaded:”?
Still nothing. Even though I’m not using Gnome, I even tried changing the Library location to somewhere other than the /media folder, but that didn’t make a difference.
Could a permissions issue be causing the problem? Also, even if I don’t need to change permissions, do I still need the UMask=0002 line?
Rather than try to put a square peg (SMB) into a round hole (where NFS is needed),
I’ve decided to write this out.
You need NFS because most Linux hosts & NAS systems do not offer the needed SMB services PLUS you’re on a Linux host where SMB support is marginal and non-native.
This post is the combination of two existing server-linux-tips which I’ve authored for tasks such as this.
Your mileage will vary . This is not supported because we cannot guarantee the integrity of the NFS server.
It will work beautifully , albeit it a bit slower -or-
It will crash horribly and corrupt your data on the NFS server
So, it’s time to ride the wild software
This is not for the faint of heart.
Server must support NFS v4 - prefferably NFS v4.2
A share must be exported with R/W for the IP address of the PMS host where this runs from with no-squash
Use of SMB on a Linux host, which uses POSIX file locking for database operations, will fail every time.
Here’s how it works. This is a working example. You are free to use it as-is.
A. Stop Plex
sudo systemctl stop plexmediaserver
B. Make a directory anywhere which isn’t a pre-existing directory (this means no use of /media regardless the state of Gnome)
I was hoping there would be a log file somewhere that might give me indication that it was trying to read the override.conf file at all. I’ll give the NFS share a try, and I suppose if it works, then that will be good indication that it was the fact that it was pointing to an SMB share was the problem.
I tried using an NFS share and it still does not load the override.conf file. I also tried pointing the metadata location to just a different local folder on the boot drive to bypass anything to do with a network share and still no luck.
It seems like it’s not even trying to load the override.conf file. Could this be the result of a permissions issue? There are only two users on the server, plex and root.
#
# Customize Plex's config
[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/plexdata/Library/Application Support"
# This is needed to change the default umask
UMask=0002
That is the last one I tried to test without moving the metadata to a network share. Just a plain folder locally on the boot drive. I also tested without the UMask=0002 entry. I wasn’t sure if the UMask=0002 entry was only needed if you needed to change the permissions or not.
Changing UMask is only needed if Plex is writing DVR recordings directly into your media folders.
By setting default permissions of 664, you can then set Plex as the owner and use your username as the group (splits the ownership) and you have the ability to delete them external to Plex if you so choose.
In case anyone else comes across this post looking for an answer, here’s what my conclusion was:
The reason Plex wasn’t reading my override.conf file was because I never made an override.conf file. I made a plexmediaserver.service.d file. Oops.
Secondly, I could not get the metadata to work at all on an SMB share (which isn’t supported, anyways), and it never worked for me stable-y on an NFS share (which also isn’t supported).