Server Version#: 1.24.3.5033
Player Version#: 4.66.1
CentOS 7
Media libraries mounted via CIFS/Samba shares.
Ever since upgrading to the new Plex agents, my Sonarr and Radarr instances are triggering full library scan after full library scan. Previously when either of them would notify Plex using their “Update Library” option under “Connect” options, PMS would just add the new media and grab the metadata and be done. This happened in just a few seconds, no scan needed. It was so slick that I actually turned off Plex’s scheduled scans to reduce noise against my CIFS share.
Now when a new tv-show/movie is downloaded, all my libraries of that type go through a full scan which takes forever, and it seems Plex is always scanning.
I’m about to see if I can switch back to the legacy agents and disable my server auto updating script, because this is getting ridiculous.
I forgot to say that I have disabled the Update Library option in both son/radarr apps, and turned on the “partial scan” option in Plex, but I think since they are CIFS shares, PMS isn’t detecting the changes. So for now I have turned on the scheduled scans as a bandaid.
What you’re experiencing with scanning has nothing to do with the agents.
Automatic detection does not work across the LAN (CIFS or NFS).
The network protocols do not support notification which you would get if the file system were physically connected to the host.
There is one exception to this - If the files were written / modified on the PMS-host side THEN automatic notification would work because the local kernel does see that activity otherwise the PMS host is blind to anything you do on the LAN storage host.
Windows emulates notification by polling frequently.
Scheduled scan is how it’s always been for network shares.
I just assumed it was related to agents, because that is the biggest thing I recall changing recently. I do have the plexupdate script (mrworf) that automatically updates PMS, so it could just be a server version issue. (stopped following change logs after implementing auto updates)
One thing here is that I never relied on the network/filesystem notification to trigger a scan. My issue is that Sonarr and Radarr used some form of notification to let Plex know there was a new file without needing to scan anything. If watching the dashboard during import of a file, I never saw a scan of libraries happening, ever. The new movie or episode would just suddenly appear, and then after a few seconds the poster would update and it was done.
Something has changed recently and anytime one of these apps notify Plex, it does a full scan of all libraries. If Sonarr is importing one show after another it seems like the scans never stop. A single episode get’s added, then all my TV show libraries scan sequentially. Because of this, sometimes my main TV show library will have an entire season added over the course of 10 minutes and some of the episodes don’t even get discovered because the library was scanned and it’s onto another TV show library.
Whatever has recently changed in PMS is super frustrating. Now I find myself having to kick off manual scans periodically because I have disabled the integration within Sonarr/Radarr (and the network/CIFS filesystem notification has never worked as you mentioned). I’ve actually never even had “Scan my library automatically” option enabled because the integration from ARR apps was so slick.
Did you ever figure out what was going on or how to fix this? I’m having the exact same issue after upgrading to the PMS version which has the new agents (even though I chose NOT to upgrade the libraries to use the new agent).
As you described, my Plex would only ever do partial scans on newly added items but it now seems to trigger a scan for the entire library. My TV library is huge and over a network so it never finishes and I end up having missing recently added items. One thing I’m noticing in the logs is “part rename detected” which shows the file name being “changed” to the same file name (nothing changes).
If you have figured out the issue or have any advice please let me know.
It basically just uses an API in Plex to tell it to scan a certain folder. I turned off all scheduled/periodic/etc scanning in Plex, and removed the “Connect” integration in Sonarr/Radarr/Lidarr and then created a new webhook connection which queues Autoscan to tell Plex about folders to scan. Lots of configuration available, but I just setup some basic triggers and everything is working how I want. Things pop-up momentarily after the import/copy of files happens.