Myriad of problems in past month: Mac restarting, plex crashing, database corruption...
I've been using Plex since the beginning, but the past month has me pulling out my gray hair.
It started last month when my mini appeared to be randomly restarting several times a day. After purchasing a new mac and migrating Plex, the problem remained. It also remaining after a fresh Plex install (after media loaded). I finally traced (what I thought was) the problem down to a corrupt movie file that a remote user kept trying to play. When this file was played (including played locally on the server Mac), it caused the entire system to restart. I deleted the file and thought all was well.
Now I'm getting similar problems but not traceable to any particular file. My mini still restarts or turns off completely randomly throughout the day (same after PMU and PRAM resetting and repairing startup drive in safe mode). And/or Plex home screen won't load, but the TV/Movies libraries are still accessible. Typically, at some point during the scanning of the files, the system will crash. Or, it may just corrupt the database, and I have to repair it to get plex to load again. Etracheck finds nothing wrong with the Mac. And this is AFTER completely deleting all traces of Plex and re-setting up my libraries.
Yesterday morning, I woke up to plex media server being closed, but Mac still on. I tried opening and it just quits immediately. After repairing the database, PMS stays open, but the web interface isn't reachable ("You must be lost"). So, I restored from the one database backup I had created at 2AM, now it's open again. The TV library works, but the Movies library is blank (it should have hundreds of movies inside). I removed and re-added a few sources from the Movies library and that seems to have got it back online.
Last night more and more problems (plex crashing/restarting entire computer, or just powering off completely). It would restart or turn off my Mac about 1 minute after starting PMS. I left mini running last night with PMS closed, and the computer has been fine. This morning, trying to get PMS back up and it just quits immediately after opening. I'm restoring from database backup I made 2 days ago (which is also corrupt, but repair works).
So, back up for right now, but I know it will become corrupt and cause Mac to restart or turn off again soon. I'm really at a loss now and have no idea why PMS is having so many problems.
Any/all ideas/suggestions welcome.
PMS Version 18.104.22.16835
Mac 10.12.5 / Mac Mini Late 2014