I updated the hard drive from a single 2tb hard drive to two 12tb hard drives (Raid 1). I copied and reinstalled synology configuration and hyper back up containing previous files. Plex server does not automatically update the library anymore, I have to manually re-scan the library for new files to show up on plex player. I have made sure that (Scan my library automatically) & (Run a partial scan when changes are detected) under Settings->Library are checked off. I have also made sure that permissions for my Plex shared folder have all been set to (Read/Write). Any Ideas what might be causing the issue. I attached zip file of server logs. not sure if I uploaded correct logs, this is my first time posting on this forum. Thanks!
Although not strictly required, suggest you follow Plex media naming guidelines. Plex does a better job of matching, downloading metadata, etc when you follow the guidelines. This is especially true for TV shows, with which Plex is very picky.
If I may request, per the warning files I place in the Plex share, Please do not put media IN the Plex share. The share exists solely for PMS use. It is visible solely for diagnostic purposes to avoid the need to use the command line (Putty / SSH)
Because you’ve placed your media in the Plex share, you’ve used up all of the default 8192 default directory monitoring slots. Plex creates thousands of directories (typically 50,000 for a medium sized library) which quickly overflows the table. “Permission denied” is reported by the Linux kernel when the table is full. User plex does not have permission to expand the table dynamically. The table can only be expanded by the root user.
I urge moving the media from the Plex share at the earliest convenience.
Jan 18, 2020 10:47:15.561 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Beverly.Hills.Ninja.1997.1080p.HDRip.x264.AAC2.0-FGT" (13: Permission denied)
Jan 18, 2020 10:47:15.562 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Blinded.by.the.Light.2019.1080p.NF.WEBRip.DDP5.1.x264-KHN" (13: Permission denied)
Jan 18, 2020 10:47:15.562 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Bloodsport (1988) [1080p]" (13: Permission denied)
Jan 18, 2020 10:47:15.562 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Bloodsport (1988) [1080p]/Other" (13: Permission denied)
Jan 18, 2020 10:47:15.562 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Bohemian.Rhapsody.2018.1080p.WEB-DL.DD5.1.H264-FGT" (13: Permission denied)
Jan 18, 2020 10:47:15.563 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Boy.Erased.2018.1080p.BluRay.x264-DRONES[rarbg]" (13: Permission denied)
Jan 18, 2020 10:47:15.563 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Boy.Erased.2018.1080p.BluRay.x264-DRONES[rarbg]/Subs" (13: Permission denied)
Jan 18, 2020 10:47:15.563 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Bram.Stokers.Dracula.1992.REMASTERED.1080p.BluRay.H264.AAC-RARBG" (13: Permission denied)
Jan 18, 2020 10:47:15.564 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Bram.Stokers.Dracula.1992.REMASTERED.1080p.BluRay.H264.AAC-RARBG/Subs" (13: Permission denied)
Jan 18, 2020 10:47:15.564 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Brightburn.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG" (13: Permission denied)
Jan 18, 2020 10:47:15.564 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Bumblebee.2018.1080p.WEB-DL.DD5.1.H264-FGT" (13: Permission denied)
Jan 18, 2020 10:47:15.565 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Burn.2019.1080p.WEB-DL.DD5.1.H264-FGT" (13: Permission denied)
Jan 18, 2020 10:47:15.565 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Casablanca (1942) [BluRay] [1080p] [YTS.AM]" (13: Permission denied)
Jan 18, 2020 10:47:15.566 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Casino.1995.1080p.BluRay.H264.AAC-RARBG" (13: Permission denied)
Jan 18, 2020 10:47:15.566 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Christmas.Vacation.1989.REMASTERED.1080p.BluRay.H264.AAC-RARBG" (13: Permission denied)
Jan 18, 2020 10:47:15.566 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Christmas.Vacation.1989.REMASTERED.1080p.BluRay.H264.AAC-RARBG/Subs" (13: Permission denied)
Jan 18, 2020 10:47:15.567 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Cinema Paradiso (1988) [BluRay] [1080p] [YTS.AM]" (13: Permission denied)
Jan 18, 2020 10:47:15.567 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Citizen Kane (1941) [1080p]" (13: Permission denied)
Jan 18, 2020 10:47:15.567 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Close.2019.1080p.NF.WEBRip.DDP5.1.x264-CM" (13: Permission denied)
Jan 18, 2020 10:47:15.567 [0x7f9d359e9700] ERROR - [Notify] Failed to add watch for "/volume1/Plex/Movies/Coco (2017) [1080p] [YTS.AG]" (13: Permission denied)
I did as you suggested and moved all content from the shared “Plex” folder and created independent share folders named "Movies & “TV Shows”. “Movie” folder is now updating automatically, but the “TV Shows” folder is not. I double check all permission settings and appear to be same as the “Movie” Folder. I am missing something? your help is greatly appreciated. Thanks!
If the movies are now automatically updating but episodes are not, we might now have the true situation where there are more than 8192 directories (folders) in use.
8192 is the Linux default.
I recommend this procedure now (to avoid using the Linux command line) to see what’s needed and customize DSM to suit your needs.
Follow instructions but still not working. “TV shows” folder is still not automatically updating. Attached is image of task I created. I counted a total of 1487 folders. Attached are logs as well.
We like to bump up to the next even multiple of 32768 (as I had written) to keep kernel memory nicely aligned and also room to grow in the future but that is ok for now. Next time, please consider increasing to 98304
Since having made the change, has PMS been restarted?
Looking at the logs is either indicative of it not having been restarted or a small math error and not allocating enough table space?
Jan 21, 2020 19:10:49.791 [0x7fbde3cdc700] DEBUG - [Notify] Now watching "/volume1/TV Shows"
Jan 21, 2020 19:10:49.791 [0x7fbde3cdc700] DEBUG - [Notify] Now watching "/volume1/TV Shows/#recycle"
Jan 21, 2020 19:10:49.791 [0x7fbde3cdc700] ERROR - [Notify] Failed to add watch for "/volume1/TV Shows/American Greed" (13: Permission denied)
Jan 21, 2020 19:10:49.792 [0x7fbde3cdc700] ERROR - [Notify] Failed to add watch for "/volume1/TV Shows/Counterpart" (13: Permission denied)
Actually just noticed that I placed the file in the root folder of “TV Shows” and not the subfolder for the tv series. It appears to only update library automatically when files are place in the root folder and not in subfolders. any idea what is causing this? Thanks!