Server Version#:4.159.0
Player Version#:
<If providing server logs please do NOT turn on verbose logging, only debug logging should be enabled>
I noticed historically added shows/seasons started disapering so i backed up the db and restored an older version. No luck. Same shows missing.
Tried to fix DB eith repair script: https://github.com/ChuckPa/DBRepair
Main DB Ok.
Blobs Db Ok.
FTS DB Corrupted.
Tried the most aggresive opions. Still no luck.
Tried removing all libary root directory so plex deletes all shows/movies. Still no luck
I tried a complete reinstall of plex, and manually re-adding all libary folders. Exactly Same shows missing. FTS DB corrupted again.
This might be caued by several issues. Most likley the use of the apostraphy in filenames/metadata eg:
$string1 = ‘Pan’s labrynth’
I dont think using double quotes is a sane soluion because " treats the string as code instead of text. This might open up shellcode injection. eg:
$string2 = “Pan’s labrynth $(insert shellcode)”
cant show example using backtick due to bbcode
The only solution im aware of is url encoding asap, or at the very least just before it hits the DB. Also the last step before the string is displayed
https://en.wikipedia.org/wiki/Percent-encoding
this will encode it like:
Pan%27s%20labrynth
Recoding plex to use url encoding will break plex pretty hard and a lot of work to fix. Dont expect admins to fix this any time soon. While this issue wont break everything using a ’ it willl eventually rot away at the DB untill it eventually corrupts. Its more a volumetric issue.
The other issue is Plex does not play nice with sshfs path/mount when adding libary directories. Instead of Plex transpently traversing the mountpoint it duplicates the mounpoint and does not open/traverse past mount point eg
/home/user/done/ ← sshfs mount point
/data/home/user/done ← unknown duplicate
Sub-folders can be added manually by typing the sub-dir path
Plex DB’s are 99÷ scraped from the net. Having an option to do Nucklear option under troubleshooting options is to:
A: Backup the DB
B: Export friends list/tags/root libary folders, into a human readable format text file.
C: Create new DB and reimport the text file when selected, Then repopulate the db with online media sources.
I think Plex backes up and bindes to the account holder but 90÷ of my friends are missing and the even this appears to have been corrupted. (plz take a look when u have time) oerhaps an a-zo-9 filter to prevent corruption in external friends bound to plex account.
ty for the help
Edit: Thinking about it you could as a tempoary bandaid solution filter out ’ and ` and $ or all invalid charecters but some shows/movies rarley use invalid charecters as in their name. This will be vastly simpler to implement.
Edit2: added screenshots

