Server Version#: 1.21.3.4021
No logs are needed for this. I suspect they are useless anyways.
I’ve been trying to figure out why Plex keeps recreating missing DB files with the “r-xr-xr-x” permission, thus rendering it unable to write to it’s own DBs and files. I thought I bunged up ACLs and my Umasks. Having checked them, no directory is under an ACL, and the umask Plex is using is 022.
Having run a ktrace I found an interesting entry when tracing exactly what the OS is being told to do when the missing DB file handle is created.
Here’s the output:
11902 Plex Media Server CALL openat(AT_FDCWD,0x81959c400,0xe01<O_WRONLY|O_CREAT|O_TRUNC|O_EXCL>,0100555<S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH|S_IFREG>)
11902 Plex Media Server CALL write(0x7,0x805289580,0x128)
11902 Plex Media Server CALL socket(PF_INET,0x1<SOCK_STREAM>,IPPROTO_TCP)
11902 Plex Media Server NAMI "/Plex Media Server/Plug-in Support/Databases/tv.plex.providers.epg.cloud-319568ff-dcf9-4816-afba-e3c4cb2611a4-loading.db"
To summarize, the latest version of the Plex Media Server for FreeBSD systems is creating files with 0555 permissions. This is a critical problem and renders Plex unusable when running on a clean install, and breaks other aspects of Plex when it needs to spawn a new DB file only for it to not be able to write to it. This results in PMS hang ups.
This SHOULD be a straightforward fix.
