Run a metadata refresh for those two episodes with the missing subs (only those two) and then grab and drop the logs here (the entire zip from Settings → Troubleshooting → Download Logs).
Plex Media Server Logs_2021-04-01_12-55-02.zip (5.9 MB)
Here you go 
Thanks.
It’s finding the subtitles but it’s unable to write to the Plex data folder where it’s eventually stored, which is a bit intriguing.
Apr 01, 2021 12:54:49.364 [0x7fa7448bb780] DEBUG - Scanner: found local sidecar subtitle “/PLEXDRIVE/HOTE/PLEX/Series LQ/The Bold Type/Season 4/The.Bold.Type.S04E04.Babes.in.Toyland.720p.WEBRip.HEVC.x265-RMTeam.fr.srt”
Apr 01, 2021 12:54:49.364 [0x7fa7448bb780] ERROR - Error creating directory “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/localhost/d/73b27811446fb9d47863d37ec8531e8732f7d48.bundle/Contents/Plex TV Series”: Permission denied
Apr 01, 2021 12:54:49.364 [0x7fa7448bb780] ERROR - Matcher: unable to create directories “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/localhost/d/73b27811446fb9d47863d37ec8531e8732f7d48.bundle/Contents/Plex TV Series/Subtitles.xml”
Could you check the permissions of the files inside of /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/localhost/d
And what user is PMS is running as, it should be the user plex and it should have read/write access to these paths.
Hmm, no you’d have to have installed the deb package using root/sudo and the correct user should be created for you. I can’t really see how else you could get it to start up as root unless you manually made changes to do this - maybe @ChuckPa would possibly know of a reason for this.
It’s odd that some are plex and some are root though.
Could you see what user plex is running under curently? ps aux | grep plex
And to retroactively fix those folders you can just fix the permissions:
- Navigate to
/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/ - Run
sudo chown -R plex:plex localhost/
This will take a little while but should fix it - you’ll need to make sure that PMS is running as the plex user though otherwise this will just keep happening.
Does the plex_autoscan script do anything? If that’s doing what I think it’s doing then this is what’s causing your problem.
If that script invokes Plex Media Scanner and you’re running it as root, then it’s probably executing everything as root too (I’m not familiar with that script though). If that script has a config for which user to use then it should be set to plex otherwise the script should be invoked with the plex user.
Plex_autoscan allow me to run partials scan of the libraries which is not managed by Plex since I’m using a GDrive mounted with rclone to store my media.
It shouldn’t be running as root.
Indeed, plex_user in the config of plex_autoscan is set to “root”. I’ll change it and see what happens
Edit : the script is still running as root but he knows plex is running with plex user
Ye, you may want to read this: GitHub - l3uddz/plex_autoscan: Script to assist sonarr/radarr with plex imports. Will only scan the folder that has been imported, instead of the whole library section.
I assume this is the script you’re using.
Indeed, btw PMS and the script are not running in a docker container.
use_sudo is set to true and plex_user is now set to “plex” instead of “root”. I guess this was the problem, I’ll see. Thanks a lot for your time & help 
Edit : after using sudo chown -R plex:plex localhost/subtitles are now properly detected, so that was, as expected the problem
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

