Auto update Libs not work anymore

Dear plex-community,

i know there are already some threads about this, but none of them are helpful.

I used a combination of local directories and mounted directories. The combination worked great and plex detected all changes on the local directories immediately. (i know that mounted folders shouldn’t work)
Since ~ last week, it doesn’t detect changes anymore on local folders. Neither if i create a new lib only with local folders.

I’ve tried following:

  • create new lib with only local folders
  • uncheck option, reboot pms, ckeck option back again
  • touch file/folder to update timestamp
  • clean packages/trash, optimize libs
  • checked logs

Any Idea? Maybe some changes since the last update?

OS: Linux 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux
pms: plexmediaserver_1.14.0.5465-425e4ac90_amd64.deb

Unfortunately the manual search is not an option.

let’s start with a more exotic scenario… could it be you’ve exceeded the amount of directories your OS is allowed to monitor?

1 Like

Hey @tom80H,

awesome hint!

actually:
local directories: 4756
remote mounted: 10510
fs.inotify.max_user_watches = 8192

testing changes (temporary):

sudo sysctl fs.inotify.max_user_watches=20480 #max: 524288
sudo sysctl -p

==> Works great!

what i’ve done:
check all folders:

find dir1 dir2 dir3 -type d -print | wc -l

check Sample/Subs - nice to know:

find dir1 dir2 dir3 -type d -print | grep -iE ‘Sample|Subs’ | wc -l

change max_user_watches (permanent):

echo fs.inotify.max_user_watches=20480 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Nice facts about the Ram-usage:
askubuntu.com/a/155426

some interesting feature request:

  • ignore directories to not watch
  • max depth of directory watch
  • skip mounted or “unknown” directories
  • skip subfolders like “Sample” or “Subs”

Thanks and regards
Zack

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