Plex server is scanning for new shows and films in a daily basis and for hours.
When I put new content, it doesn’t show up after many hours to the server. I guess it’s because it is scanning folder per folder, until it gets to the new content. It scans even if no new content is added.
I have seen this error after repairing the db, because it was corrupted.
It has always showed up immediately as Scan my library automatically is checked, as Run a partial scan when changes are detected is.
But now, as it is scanning folder per folder, it gets stuck between 10 seconds to several minutes per show to be scanned.
Should I try disabling Scan my library periodically? It has never been an issue, and you’re telling me that it only took 6 seconds to scan the library…
Every afternoon is scanning. Is there something I can do to avoid this?
Looking at the logs it looks like it is repeatedly re-scanning the same libraries. Can you try disabling Run a partial scan when changes are detected and Scan my library automatically ?
If I disable those two checks, it does not scan for hours but neither it does include the newly added content (as… expected if unchecked). If I re-check them, it starts scanning for hours again, on a daily basis.
Is there a way to solve this behaviour, without having to uncheck the scans?
This leads me to thinking you have some kind of scheduled task or automated process that is triggering constant drive scanning. You might check if you have something updating permissions, or doing something similar.
I use these settings: Scan my library automatically OFF Run a partial scan when changes are detected OFF Scan my library periodically Daily
It detects new media nightly during the scheduled maintenance windows. This should allow you to update your library and avoid the constant scanning.
Using the same settings as you do, Plex is not constantly scanning for hours my library. But that’s not what I want, I want to have it scanned every time I add some content, and to just scan that content. It worked before but stopped working at some point… is there a way to have it to work again?
None that I am aware of, and definitely none that could have happened 2 months ago (when it was working as expected)…
I am using linuxservers docker image in unraid, if that information is useful. I asked on the unraid forums, there is nothing seen on the logs for the OS.
Wild idea! What kernel are you running and did it update recently ? I ran into a problem like this in the past on ubuntu with extremely slow scans and it turned out to be a kernel issue related to smb mounts.
I am on the latest stable unraid version, I updated not long ago. Maybe it might be the issue, but probably a lot of other unraid users (or anyone on that kernel version) would have had the same issue.
How can I be sure of it?
May I wait for the next update of the Linux kernel to see if it gets solved?
I downgraded, and now a normal scan works fine, it is not stuck for hours. Will monitor it for some days to see if the scheduled scans work the same way.
Maybe the kernel bug related to nfs deadlocks & caching has cheeped its way into the kernel on your system. Regardless, hopefully someone somewhere is fixing the actual issue so look for an updated kernel and test when it comes out. At least for now you have a solid one which works.
Still having the same issue even after changing unraid’s version and the docker’s image version, so I did disable the Run a partial scan when changes are detected and Scan my library automatically options.
But now at random times, Plex uses an insane amount of RAM (40-50GB) and makes the whole server unresponsive.