As stated. Server indicates all is well with remote access, local access is good. However, neither app.plex.tv nor any remote clients can connect to the server. app.plex.tv reports “Unable to connect to “” securely.”
Everything was functional this AM(EDT) 01 Apr 2023
That’s from an issue I’ve been having with mergerfs. Occasionally, the mount will crash. Still working on it with the dev. When the mount is up the directory structure is sound.
I briefly tried to configure a custom cert when it was telling me that a secure connection could not be established. Initially I had configured it incorrectly by setting the file path as just the cert directory instead of the full path the the specific file. I gave up that approach soon after trying it and those fields are now blank.
Answers:
Yes the container is set to be 1000:1000 and the entire directory is set 1000:1000 with 755/644 permissions.
This is where this is probably all my fault. My cache dir was about to eat up every bit of my spare space on the partition hosting it. In rearching the issue I came across a suggestion to put the cache dir in a tmpfs. So I mounted a 4G tmpfs at Cache and have been running that way for the last couple weeks. The cache dir was owned root:root but was 777 for permissions. If that cert file is kept in Cache, then that definitely explains why I have been issued so many certs. In dealing with the mergerfs issue I mentioned, I have had quite a few reboots in the last couple weeks.
I have now removed the tmpfs mount. If that is indeed where the cert is stored, I would greatly appreciate a reset.
Now I just need to find a way to keep the cache from filling that partition. I run all my container configs off my SSD and have the Plex Media directory bind mounted off to my storage array to keep it from filling the SSD. Perhaps doing the same with cache is in order.
Thank you for your assistance! If you have any alternative suggestions please let me know.
So the Media dir is on the same system. I have the SSD that has the rootfs, my docker config files, home dir, etc etc. Then I have an 8 HDD array on the same system that I use mergerfs/snapraid on to appear as a single file system ~100TB. The Media dir is just bind mounted from the SSD to a directory on the mergerfs mount. Metadata and thumbnails for 3200+ movies and 14,000+ episodes was just eating up way too much of the 500GB SSD. Up until the mergerfs crashes started a couple weeks ago, the setup was great
Cache is now back on the SSD instead of tmpfs and I’ll definitely be setting up some type of cleanup job. As for the media dir, it’s grown beyond what I can store on the SSD. I’m a little reluctant to move the entire /config mapping to one of the storage pool drives.
Everything but that one directory, Media, is on the SSD. And yes, I have preview thumbnails enabled, that’s why I ended up going this route. I thought about symlinking the Media directory but the container can’t follow it as it points outside its volume mapping. The option I’m reluctant doing is mapping PMS’ entire docker /config to one of the individual drives from the array. I don’t know, maybe this pushes me to add a 2TB SSD to the system.
Rather than mergerfs, why not use a native ‘bind’ mount
if you do it by hand `mount -o bind /real/dir /mounted/on/dir’
Example:
# create location for it
mkdir /home/plex/Metadata
chown plex:plex -R plex:plex /home/plex
# Move the "Plex Media Server/Metadata" directory -> /home/plex/Metadata
cd "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server"
mv Metadata/* /home/plex/Metadata
# Now you can mount
mount -o bind /home/plex/Metadata "/var/lib/plexmediaserver/Application Support/Plex Media Server/Metadata"
This can be flattened by a system override and specifying a flatter “Application_Support_Dir” path
In /etc/fstab, it looks hokey but works. (octal spaces)
The other thing I want to mention is that having your Plex docker /config bind mount being within the realm of SnapRAID is not a good idea. You should exclude that location in the snapraid.conf file.
The /cofing is indeed not part of the snapraid sync. /config itself is on a separate SSD and the Media directory I redirect to the Snapraid covered disks is marked as exclude in the snapraid.conf
I think I may have been confusing this issue by my interchanging use of “bind mount”.
to clarify:
Linux bind mount:
This is the linux “bind mount” that @ChuckPa mentioned and that I am using to redirect the PMS ./Media directory to my storage array with a line in my fstab
Docker bind mount:
This is the Docker™ distinction between the two ways to mount a volume in a container.
##Docker volume mount
volumes:
docker_volume_name:/<container directory>
##Docker bind mount
volumes:
/docker_directory_on_filesystem/plex:/config
the first being effectively “hidden” within docker’s tooling, and the second showing up as just another user directory on the system,.
For me the decision was easy. I saw little value of preview thumbnails and abandoned them, and deleted them when they caused my Plex database to swell to more than a ridiculous 250GB.