# Library stopped updating

**URL:** <https://forums.plex.tv/t/library-stopped-updating/861276>\
**Category:** Plex Media Server\
**Tags:** server-synology\
**Created:** [November 30, 2023, 3:59pm UTC](https://forums.plex.tv/t/library-stopped-updating/861276 "2023-11-30T15:59:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![joesoes](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/joesoes/32/1658_2.png) [@joesoes](https://forums.plex.tv/u/joesoes)\
**Post date:** [November 30, 2023, 3:59pm UTC](https://forums.plex.tv/t/library-stopped-updating/861276/1 "2023-11-30T15:59:36Z")

</div>

Server Version#: 1.32.8.7639  
Player Version#: Not relevant  
\<If providing [server logs](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) please do NOT turn on verbose logging, only [debug logging](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/#toc-1) should be enabled\>

It suddenly stopped for no reason. I have restarted the container and the server, still the same issue. It updates when I do it manually. I’ve tried to optimize the library.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [November 30, 2023, 5:29pm UTC](https://forums.plex.tv/t/library-stopped-updating/861276/2 "2023-11-30T17:29:55Z")

</div>

Sounds like you hit the max directory threshold.

The easy verification of this:

1. With DEBUG [server logging](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) enabled,
2. Restart PMS
3. Wait 3 minutes (no activity)
4. Download the logs ZIP file
5. Open it and look at “Plex Media Server.log”
6. Search for “No space left on device” as it attempts to setup the inotify service

If you don’t find anything, please share your logs ZIP file and we’ll look.

Otherwise –

What’s happening here -

1. Linux has a table in the kernel for the file notification service (inode notify - inotify)
2. When that table fills, New content additions won’t notify PMS to scan and add the new media files

The solution is simple – Increase the size of the table from its default to accommodate what you need (with a bit extra for growth)

On Synology, we have to increase the table size indirectly.

Here’s the How-To which will let you figure out what you need, round up to add room for growth, then update the kernel table.

> [@Synology FAQ - Questions, Answers, and How-To's](https://forums.plex.tv/t/490215/22):
>
> FAQ 16: Increase the number of folders Plex can monitor Applicable to all supported versions of DSM. When the Linux ‘inotify’ table fills up, this will cause when Plex to stop automatically detecting new media you add to the server. It will also manifest when there are transcoder problems with Dolby audio codecs. Linux has a default table size which is static. We can increase this at will. On some versions it’s 8192. On newer kernels, the default is 65536 folders. This is easy to incr…

You do this to DSM itself. PMS in the container uses that same table.

---

<div class="post-metadata">

**Author:** ![joesoes](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/joesoes/32/1658_2.png) [@joesoes](https://forums.plex.tv/u/joesoes)\
**Post date:** [November 30, 2023, 5:56pm UTC](https://forums.plex.tv/t/library-stopped-updating/861276/3 "2023-11-30T17:56:04Z")

</div>

[Plex Media Server Logs\_2023-11-30\_18-52-59.zip](https://forums.plex.tv/uploads/short-url/fANcQZqZbffae9chzONk9UZoVd.zip) (2.7 MB)  
Thanks for the support. Didn’t find any log with “No space left on device” though.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [November 30, 2023, 6:18pm UTC](https://forums.plex.tv/t/library-stopped-updating/861276/4 "2023-11-30T18:18:00Z")

</div>

Thank you for the logs.

They confirm you haven’t overflowed the table.

```auto
Nov 30, 2023 18:51:52.213 [140584389086008] DEBUG - [Notify] Now watching "/data/media/tv/All the Light We Cannot See/Season 1"
Nov 30, 2023 18:51:52.213 [140584389086008] DEBUG - [Notify] Now watching "/data/media/tv/Wayne"
Nov 30, 2023 18:51:52.213 [140584389086008] DEBUG - [Notify] Now watching "/data/media/tv/Wayne/Season 1"
Nov 30, 2023 18:51:52.213 [140584452819768] DEBUG - Completed: [192.168.1.156:51333] 200 GET /activities (7 live) #38 TLS GZIP 0ms 621 bytes (pipelined: 4)
Nov 30, 2023 18:51:52.218 [140584436996920] DEBUG - Request: [127.0.0.1:44544 (Loopback)] GET /:/plugins/com.plexapp.system/resourceHashes (8 live) #3a GZIP Signed-in Token (joesoes)
Nov 30, 2023 18:51:52.218 [140584436996920] DEBUG - [Req#3a] [com.plexapp.system] Sending command over HTTP (GET): /:/plugins/com.plexapp.system/resourceHashes
Nov 30, 2023 18:51:52.218 [140584436996920] DEBUG - [Req#3a/HCl#1e] HTTP requesting GET http://127.0.0.1:36322/:/plugins/com.plexapp.system/resourceHashes
Nov 30, 2023 18:51:52.262 [140584418794296] DEBUG - [HttpClient/HCl#1d] HTTP/2.0 (0.1s) 200 response from GET https://plex.tv/updater/products/5/check.xml?build

```

The very next thing to check on Synology are file permissions (Synology is very strict).

A common issue with permissions is the scenario:

1. You set permissions for the shared folder(s) containing media
2. You “Apply to this folder , sub folders, and files” to propagate and set everything.
3. You later come in with SMB to upload more media.

Those media files don’t inherit the parent permissions.  
They retain the permissions of your SMB user.

If your SMB permissions don’t include Plex, these files will get skipped.

Might that be the case here ?

Next, being in a container, is the mapping (logical → physical) confirmed ?

---

<div class="post-metadata">

**Author:** ![joesoes](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/joesoes/32/1658_2.png) [@joesoes](https://forums.plex.tv/u/joesoes)\
**Post date:** [November 30, 2023, 6:55pm UTC](https://forums.plex.tv/t/library-stopped-updating/861276/5 "2023-11-30T18:55:45Z")

</div>

Thank you for checking. As a non techy person, I’m not sure I’m following.

When I set up Plex, I was following this guide: [Step 2: Setting up a restricted Docker user and group then obtaining IDs](https://drfrankenstein.co.uk/step-2-setting-up-a-restricted-docker-user-and-obtaining-ids/) and when checking the permissions on the media folder, my docker user seems to have the correct permissions.

 ![image](https://global.discourse-cdn.com/plex/original/4X/b/7/b/b7b14e8a1d2d37b63492e088ac8c29f7d035cbc2.png)

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [November 30, 2023, 7:09pm UTC](https://forums.plex.tv/t/library-stopped-updating/861276/6 "2023-11-30T19:09:55Z")

</div>

Click the “Apply to this folder, sub-folders and files” again and then click SAVE.

This will apply the permissions again recursively.

If this doesn’t work then we have to check the naming / matching.

---

<div class="post-metadata">

**Author:** ![joesoes](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/joesoes/32/1658_2.png) [@joesoes](https://forums.plex.tv/u/joesoes)\
**Post date:** [November 30, 2023, 8:00pm UTC](https://forums.plex.tv/t/library-stopped-updating/861276/7 "2023-11-30T20:00:55Z")

</div>

Thanks! That seems to have solved the issue. By pulling and dragging downwards in the tv section in the iOS app, I might have triggered an update, not sure. But I’ll just wait and see if it’s resolved.

Edit: Yeah, that did the trick. My library had updated when I checked this morning 😀

---

<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:** [February 28, 2024, 8:01pm UTC](https://forums.plex.tv/t/library-stopped-updating/861276/8 "2024-02-28T20:01:29Z")

</div>

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