I have a Plex Media Server running on a Mac mini, Catalina (10.15.7)
Server Version#: 1.21.1.3830-6c22540d5
PMS is scanning the library frequently when I’m playing content and even sometimes when I’m not – is there a way from the logs to find the trigger for the scan? I don’t want to turn off scanning on activity, because I want it to pick up new content without having to manually scan, but … I also don’t want it chewing up resources scanning when it doesn’t have to, so I’m trying to dig in a little deeper and find out why it’s scanning and what I can do about it.
What path(s) have you set for your library folders? You can find this by editing your libraries and checking the Add Folders tab. It sounds as though you may have specified a location that includes more than just your media, maybe the root of a volume or somewhere higher in the full path?
The path should be set just to the location of a particular category of media. For example, if all of your movies live on /Volumes/SomeDrive/Media/Movies, you’d add that path exactly. You wouldn’t add just /Volumes or /Volumes/SomeDrive. If you do, and you add files anywhere higher in the path hierarchy, Plex Media Server will pick up changes outside of your “Movies” folder and perform a scan.
The first is the original bucket in one DAS volume, the rest are subdivided buckets on the second DAS volume. And yet, these will be scanned a bit too frequently. I guess that’s why I was hoping that I could find the triggering event in one of the logs or something so I’d have a better idea of what was triggering all the scanning.
So now inside TV Animations you have Sub folders of Titles and inside Episodes.
TV Animations/
Tom and Jerry Tales (2006)
/Season 01
/Tom and Jerry Tales - S01E01 - Tiger Cat - Feeding Time - Polar Peril.ext
/Tom and Jerry Tales - S01E02 - Joy Riding Jokers - Cat got your luggage - City Dump Chumps.ext
/ and so on
The Simpsons (1989)/
/Season 01
/The Simpsons - S01E01 - Simpsons Roasting on the Open Fire.ext
If named this way the scanner will not try to refresh if there are no changes in the folders.
These children aren’t added to Plex, the scanner picks them up. And, again, I’m not having troubles with the scanner picking up the files, I’m just having trouble that the scanner seems to be running frequently when I haven’t changed anything. If I watch a TV episode on the mini, I’ll see Notification Center notifications several times during a single episode, which suggests that something is triggering the scanner either as a result of my watching the episode or, possibly, for an unrelated reason. I don’t recall seeing those notifications when I’m doing something else on the same machine, but I don’t spend a lot of time working on the mini when it’s not doing HTPC tasks.
Too deep how? It’s organized exactly how that guide suggests – I just have multiple top-level folders added to Plex, because a single top-level folder was starting to get unwieldy (I have lots of content in Plex):
Where do you have your transcoder temporary directory set to? You can check this here: Settings -> Transcoder (Show Advanced) -> Transcoder temporary directory
If it is set to a path which is included in any of your library paths, temporary files written there during playback will cause a scan to be initiated.
Other than that, your paths look mostly ok. Plex’s naming guidelines require that TV series season folder names just be the word “Season” a space and number. Your season naming probably isn’t causing this issue, but could cause problems with correct matching in the future.
The default directory is ~/Library/Caches/PlexMediaServer/Transcode on macOS.
If you’d like to provide debug logs from around the time problem occurs they may show the reason for the automatically triggered scans. If you do, please note the time you started playing media and when the scanning began.
If you’d like to provide debug logs from around the time problem occurs they may show the reason for the automatically triggered scans. If you do, please note the time you started playing media and when the scanning began.
I’ve done a little poking around in the logs without finding much – I can see the scanner is being triggered, but I haven’t found anything that suggests why.
Is it just the scanner logs, or are there other logs that might contain useful info?
I’d expect the interesting information to be in the Plex Media Server logs (the ones actually named Plex Media Server). I’m fairly certain the server actually monitors the folders and invokes scans when necessary.
Allright, so things got busy and I didn’t diagnose for a bit.
Turns out I do see those “will be updated because of a change” messages in Plex Media Server.log when I change files. But during playback if I see a scan notification and then pause and go look in the same log, I don’t see that message. On a quick scan, I don’t see anything obvious in the logs from that time period except playback, although I am no expert on Plex logs. I just saw another notification as I’m typing, “Library Scan Complete”. Whatever triggers the scanning during playback doesn’t show up in that log file.
Any ideas what else it come be other than FSEvents / Scan Automatically, and where I could find more information?