Server Version#: 1.31.1.6733
Player Version#: 1.65.1.3596-7b1f6d97
Since the server update in late Jan-Early Feb (when scan credit was released), my Plex Server will scan my entire Television library every hour, seemingly exactly. This causes paused drives to spin up and waste time and power, and seems to not honor the settings I’ve placed in the Library settings section. Whenever I have “Scan my library automatically” checked, it will always scan the entire Television library even if I have “Scan my library periodically” unchecked, or set to “Daily” for the interval. “Run a partial scan” doesn’t take effect unless the “scan my library automatically” is checked. Is this a behavior change or something wrong with my configuration? I didn’t make other changes during that time, so I’m fairly confused regarding this. Happy to post any logs that would be helpful, but I’m not sure which ones to get and from where.
Ah! Yes, I do since I’m often writing to it from a Windows domain machine and I change the acls on any added directories to be owned by a media account/domain users group. Does that also trigger when the account sets permissions but hasn’t changed anything?
Coincidentally enough, the script runs exactly every hour… I’ll disable it now and see if the issues end. Was that change made around January/February?
I’d definitely like to know this code so I don’t have to re-create it. While I’d definitely prefer to get the correct permissions written the first time, setting group permission inheritance on a folder (the main thing I’m concerned about) doesn’t seem to work well in UnRAID when dealing with AD group mappings and creating subdirectories from a Windows machine, for some reason.
Thanks. I’ll see what I can do with that.
I don’t use any of the rr’s currently as most of my work is backing up DVD’s/BluRays from my personal collection. My largest concern is getting directories set up there for the rest of my family to be able to add to or read the files from shares to Windows machines. If I could get it to work when I create a directory on a share to have the proper group, I definitely would. Unfortunately I’m still learning some of the finer details of Linux ACL management and haven’t been very successful in getting proper setups from the Windows side of things just yet.
I have 5 members of my household accessing the media folders at arbitrary times, but not frequently. Part of this exercise to move to a Linux/container setup was for my own knowledge expansion into the Linux ecosystem coming from 25 years of experience in Windows and network security and administration.
Currently, when I create a new directory to transfer video files into the UnRAID share that holds my media collection, it’s created with the mapped AD user and higher access default group of my Windows account; this makes it inaccessible from other members of my household until the permissions on the directories and files are reset. While I can do that manually I’d prefer to have a script reset the permissions; I’d LOVE to have it just set properly when I write it at first, though.
Plex reads it fine as the container is running as an account with a higher permissions level, but that’s something I’d like to secure eventually in the future as well.
I hadn’t seen the Linux Tips you linked. I’ll peruse that when I get a bit of time.
Worst case, I can just use my cron job once a day (or less frequently even) rather than hourly, which should get the job done and not cause the constant library refreshes.
Thanks Chuck! I can see it being useful for larger libraries, especially when talking about the extended directories and files that music libraries can create. If it solves the problem of the “maximum number of directories watched” issue…
Perhaps there’s a way to do a partial scan only on those directories that actually changed permissions, instead of those that were just updated with the same information, but I’m not sure if it’s worth kludging together a solution if the linux inotify kernel service doesn’t return a separate result for that.