Library stopped adding files

Server Version#:1.16.5.1488 upgraded to 1.19.1.2645 to try and fix

For some reason after a server shutdown for moving, the library works just fine for playing, however when my external systems indicate that there are new media files, the server is not adding them. I have verified their names, rescanned and refreshed the library, but no new files are showing for any TV shows being added. Drive space isnt an issue. Updated to the latest version, applied patches, could not find an issue. I have attached the log files I downloaded Plex Media Server Logs_2020-04-16_11-46-15.zip (2.2 MB) . For example we are trying to watch Family Matters Season 02 but the will not show in the library. I cannot find any errors in the logs to indicate why it fails to add the folder to the library. Any and all help is appreciated.

Permissions are an issue.
The lost+found directory (which should only exist in the root of the filesystem) has been copied (?) into the new location? Might want to address this too.

Apr 16, 2020 11:41:26.237 [0x7fd3e7fff700] DEBUG - [Notify] Now watching "/data/Videos/Movies"
Apr 16, 2020 11:41:26.237 [0x7fd3cf7fe700] DEBUG - PluginRepository::setStartState: 3, complete
Apr 16, 2020 11:41:26.237 [0x7fd3e7fff700] DEBUG - [Notify] Now watching "/data/Videos/Movies/Movies2"
Apr 16, 2020 11:41:26.237 [0x7fd3737fe700] DEBUG - HTTP requesting GET http://127.0.0.1:56188/:/plugins/com.plexapp.agents.imdb/prefs
Apr 16, 2020 11:41:26.238 [0x7fd3e7fff700] ERROR - [Notify] Failed to add watch for "/data/Videos/Movies/Movies2/lost+found" (13: Permission denied)
Apr 16, 2020 11:41:26.238 [0x7fd3e7fff700] DEBUG - [Notify] Caught exception on directory.
Apr 16, 2020 11:41:26.238 [0x7fd3e7fff700] ERROR - [Notify] Failed to add watch for "/data/Videos/Movies/lost+found" (13: Permission denied)
Apr 16, 2020 11:41:26.238 [0x7fd3e7fff700] DEBUG - [Notify] Caught exception on directory.

Thanks! I removed those folders and rescanned just in case it was causing the problem but it wasnt.

Well it looks like something changed in my system when it rebooted for the move. Turns out everything new being added was with the wrong permissions. It was adding it with 600 instead of 644. Setting permissions and rescanning added to the library. Now I just have to figure out why its suddenly adding with incorrect permissions…

If I may recommend?

find /DirName -type d -exec chmod 755 {} \;
find /DirName -type f -exec chmod 644 {} \;

You can also add the setuid and setgid bits to enforce permissions on the directories and files created from this point forward.

This is what I did to fix it earlier. I have the setuid and gid bits and thats why im not sure how it decided to reset that. Thanks for your fast replies! Was pulling my hair out for a few hours on this one.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.