# Plex full scan daily and for hours

**URL:** https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470
**Category:** Plex Media Server
**Tags:** server-unraid
**Created:** [August 27, 2024, 6:53pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470 "2024-08-27T18:53:25Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![josopu](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@josopu](https://forums.plex.tv/u/josopu)
#### Post date: [August 27, 2024, 6:53pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/1 "2024-08-27T18:53:25Z")

</div>

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.

Server Version#: 1.40.5.8897  
[Plex Media Server Logs\_2024-08-27\_20-51-28.zip](https://forums.plex.tv/uploads/short-url/bbNJT4RbL9SJ4zrcgtTTCdW8BKO.zip) (5.7 MB)

---

<div class="post-metadata">

### Author: ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)
#### Post date: [August 28, 2024, 12:54am UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/2 "2024-08-28T00:54:48Z")

</div>

looking at the logs scans are taking a couple seconds to perform:

```auto
Aug 27, 2024 20:40:09.425 [22579547171640] DEBUG - Activity: updated activity dbc01336-8da9-405b-9efe-49cc3043739d - completed 0.0% - Scanning TV Shows
Aug 27, 2024 20:40:15.693 [22579547171640] DEBUG - Activity: updated activity dbc01336-8da9-405b-9efe-49cc3043739d - completed 100.0% - Scanning TV Shows

```

If you `Scan Library Files` after adding something does it show up immediately?

---

<div class="post-metadata">

### Author: ![josopu](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@josopu](https://forums.plex.tv/u/josopu)
#### Post date: [August 28, 2024, 5:59pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/3 "2024-08-28T17:59:07Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)
#### Post date: [August 29, 2024, 12:05am UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/4 "2024-08-29T00:05:03Z")

</div>

> [@josopu](#):
>
> Is there something I can do to avoid this?

Can you post your logs from shortly after this event? and let us know what time it happened locally?

---

<div class="post-metadata">

### Author: ![josopu](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@josopu](https://forums.plex.tv/u/josopu)
#### Post date: [August 31, 2024, 8:26pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/5 "2024-08-31T20:26:10Z")

</div>

Today I think it started to scan at 18:00. Tt goes from `Axxx` to the last one. Now (22:25) it’s still scanning, going for the `Pxxx` shows.

[Plex Media Server Logs\_2024-08-31\_18-05-53.zip](https://forums.plex.tv/uploads/short-url/rwbgvJW0MHZ1zGr9tEbnnjf0TBX.zip) (5.9 MB)

---

<div class="post-metadata">

### Author: ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)
#### Post date: [September 1, 2024, 4:00am UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/6 "2024-09-01T04:00:14Z")

</div>

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` ?

---

<div class="post-metadata">

### Author: ![josopu](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@josopu](https://forums.plex.tv/u/josopu)
#### Post date: [September 5, 2024, 7:23pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/7 "2024-09-05T19:23:08Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)
#### Post date: [September 5, 2024, 11:29pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/8 "2024-09-05T23:29:09Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![josopu](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@josopu](https://forums.plex.tv/u/josopu)
#### Post date: [September 23, 2024, 5:45am UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/9 "2024-09-23T05:45:03Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)
#### Post date: [September 23, 2024, 11:36am UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/10 "2024-09-23T11:36:09Z")

</div>

Do you have any kind of cron job or scheduled task that affects these folders (IE changes permissions)?

---

<div class="post-metadata">

### Author: ![josopu](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@josopu](https://forums.plex.tv/u/josopu)
#### Post date: [September 23, 2024, 9:22pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/11 "2024-09-23T21:22:36Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)
#### Post date: [September 23, 2024, 11:24pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/12 "2024-09-23T23:24:01Z")

</div>

@ChuckPa any idea what might be causing this?

---

<div class="post-metadata">

### Author: ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)
#### Post date: [September 24, 2024, 6:46am UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/13 "2024-09-24T06:46:05Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![josopu](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@josopu](https://forums.plex.tv/u/josopu)
#### Post date: [September 25, 2024, 4:07pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/14 "2024-09-25T16:07:19Z")

</div>

> [@anon5074910](#):
>
> What kernel are you running and did it update recently ?

Linux kernel version 6.1.106

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?

---

<div class="post-metadata">

### Author: ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)
#### Post date: [September 25, 2024, 4:17pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/15 "2024-09-25T16:17:36Z")

</div>

Could you boot into the previous kernel and run a scan and see if things improve? If not then the kernel version is not a factor for your issue.

---

<div class="post-metadata">

### Author: ![josopu](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@josopu](https://forums.plex.tv/u/josopu)
#### Post date: [September 28, 2024, 3:19pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/16 "2024-09-28T15:19:53Z")

</div>

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.

Thanks for the tip!

---

<div class="post-metadata">

### Author: ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)
#### Post date: [September 28, 2024, 3:39pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/17 "2024-09-28T15:39:15Z")

</div>

Cool. For reference here is a thread I had for a similar issue [Ubuntu 22.04 - Slow scanning of libraries](https://forums.plex.tv/t/ubuntu-22-04-slow-scanning-of-libraries/833677).

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.

---

<div class="post-metadata">

### Author: ![josopu](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@josopu](https://forums.plex.tv/u/josopu)
#### Post date: [October 27, 2024, 10:55pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/18 "2024-10-27T22:55:29Z")

</div>

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.

 ![Image 1](https://global.discourse-cdn.com/plex/original/4X/b/3/d/b3dd6209a725cde90d0347ed6d39671b68c0c16e.png)  
 ![Image 2](https://global.discourse-cdn.com/plex/original/4X/4/b/8/4b8a715ba3ee57c1e4867008fbe59dd15011a3ee.png)  
[Plex Media Server Logs\_2024-10-27\_23-44-15.zip](https://forums.plex.tv/uploads/short-url/6Wr1YEjWwzkStHikh3VRpq3Sg60.zip) (868.8 KB)

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [January 25, 2025, 10:55pm UTC](https://forums.plex.tv/t/plex-full-scan-daily-and-for-hours/886470/19 "2025-01-25T22:55:57Z")

</div>

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