joesoes
November 30, 2023, 3:59pm
1
Server Version#: 1.32.8.7639
Player Version#: Not relevant
<If providing server logs please do NOT turn on verbose logging, only debug logging 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.
ChuckPa
November 30, 2023, 5:29pm
2
Sounds like you hit the max directory threshold.
The easy verification of this:
With DEBUG server logging enabled,
Restart PMS
Wait 3 minutes (no activity)
Download the logs ZIP file
Open it and look at “Plex Media Server.log”
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 -
Linux has a table in the kernel for the file notification service (inode notify - inotify)
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.
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 in…
You do this to DSM itself. PMS in the container uses that same table.
joesoes
November 30, 2023, 5:56pm
3
Plex Media Server Logs_2023-11-30_18-52-59.zip (2.7 MB)
Thanks for the support. Didn’t find any log with “No space left on device” though.
ChuckPa
November 30, 2023, 6:18pm
4
Thank you for the logs.
They confirm you haven’t overflowed the table.
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:
You set permissions for the shared folder(s) containing media
You “Apply to this folder , sub folders, and files” to propagate and set everything.
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 ?
joesoes
November 30, 2023, 6:55pm
5
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 and when checking the permissions on the media folder, my docker user seems to have the correct permissions.
ChuckPa
November 30, 2023, 7:09pm
6
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.
joesoes
November 30, 2023, 8:00pm
7
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
1 Like
system
Closed
February 28, 2024, 8:01pm
8
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.