Server Version#: 1.41.5.9522-a96edc606-ls259 (Unraid Docker)
Player Version#: Web browser
Dear Plex community
I have a weird issue since two days. Suddenly Plex stopped adding new episodes to my TV Show library. I tried the Plex Dance, but realised that it does also not remove any files.
If I remove files it will just say unavailable but not play it.
If I create a new library and add the same folders everything appears.
It seems that one library is bugged.
File naming and permissions are the same and since adding them in a new library seems to work.
Its the second time in a year it has corrupted. It is weird. I have duplicity (backup) running daily, so worst case I can also recover it another way, but I need to check if I can setup an alert, when the backups are not being created anymore, or run your utility every few months.
Would that cause any issues?
Part of that corruption detection (and fixing) is why I wrote the script.
It can run daily (cron job with command line arguments).
The exit status will tell you if it’s failed and couldn’t recover successfully
That would be the trigger to send yourself notification.
Otherwise, you have a daily/weekly/monthly automatic check & optimize of the DBs
Consider:
./DBRepair.sh stop auto start exit
Result=$?
[ $Result -ne 0 ] && Do Something Here passing $Result.
You might want to look at the README.md file. I’ve got some documentation there (yes, I should write more. haha)