# Library not scanning automatically

**URL:** <https://forums.plex.tv/t/library-not-scanning-automatically/700246>\
**Category:** Metadata & Adding Files\
**Tags:** scanner-agent-dev\
**Created:** [March 14, 2021, 10:56am UTC](https://forums.plex.tv/t/library-not-scanning-automatically/700246 "2021-03-14T10:56:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fumi88](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/fumi88/32/231892_2.png) [@Fumi88](https://forums.plex.tv/u/Fumi88)\
**Post date:** [March 14, 2021, 10:56am UTC](https://forums.plex.tv/t/library-not-scanning-automatically/700246/1 "2021-03-14T10:56:28Z")

</div>

Server Version#:1.22.0  
Player Version#:

Hello,

My Plex media Server is working okay. If I set the Library scan interval to 15 mins, it works okay.

I’m using a DS1520+ so it should be plenty powerful for this task.

However, if I set it to scan automatically when a new folder is added, nothing ever happens.

I thought this might be a problem with permissions but surely, the 15 minute interval would not work either in that instance.

Any help appreciated.

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [March 14, 2021, 6:03pm UTC](https://forums.plex.tv/t/library-not-scanning-automatically/700246/2 "2021-03-14T18:03:37Z")

</div>

Is this about a Plex Media Server running on this Synology Disk Station or a Plex Media Server on a different platform (Linux, Windows, Mac), using the Synology NAS as its storage.

If you’re not seeing automatic scans for the Syno Server detecting changes on the NAS itself, you might have exceeded the number of folders the DSM is monitoring.

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/9):
>
> Increase the number of directories Linux can monitor (inotify) for PMS The default size of the Linux inotify table is 8192 directories (\*1). When PMS is configured to update automatically when media is added, with properly organized media, especially music, this table rapidly fills and exceeds the default allocation requiring you to increase it. The solution to this is straight forward. Increasing the table size is easy. The first step is to determine how many directories to alloca…

---

<div class="post-metadata">

**Author:** ![Fumi88](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/fumi88/32/231892_2.png) [@Fumi88](https://forums.plex.tv/u/Fumi88)\
**Post date:** [March 14, 2021, 6:41pm UTC](https://forums.plex.tv/t/library-not-scanning-automatically/700246/3 "2021-03-14T18:41:24Z")

</div>

Hi there,

This is Plex Media on a NAS. Is there a folder limit? How can I tell if the DSM has exceeded a limit?

Kind Regards

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [March 14, 2021, 6:59pm UTC](https://forums.plex.tv/t/library-not-scanning-automatically/700246/4 "2021-03-14T18:59:29Z")

</div>

I believe there’s no user interface for this.  
You’ll need to log into your NAS via SSH and execute some Linux commands.

- you can run `cat /proc/sys/fs/inotify/max_user_watches` to get the current limit
- you can change it following the procedure linked above

# 

The support article also describes a way to get an accurate # of folders in your system.  
For a finger-in-the-air estimate you can also take a look at the properties of your shares (via Synology File Station) and check the “Size” information (e.g. “3.31 GB (3,551,570,571 Bytes). Contain 184 file(s), 33 folder(s)”)

---

<div class="post-metadata">

**Author:** ![Fumi88](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/fumi88/32/231892_2.png) [@Fumi88](https://forums.plex.tv/u/Fumi88)\
**Post date:** [March 14, 2021, 7:10pm UTC](https://forums.plex.tv/t/library-not-scanning-automatically/700246/5 "2021-03-14T19:10:35Z")

</div>

Ok, great. will try that out.  
Thanks for the tip.

---

<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:** [June 12, 2021, 7:11pm UTC](https://forums.plex.tv/t/library-not-scanning-automatically/700246/6 "2021-06-12T19:11:31Z")

</div>

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