Why isn’t my Plex library being updated?

For few months now by library is not being updated automatically upon media file detections. I am having to manually scan my library folders. What is the issue?

Can you verify the library scan behavior in your server settings (Settings > [Server Name] > Library) – specifically:

  • Scan my library automatically
  • Scan my library periodically

Keep in mind there’s limits to the automatic detection of folder changes, e.g. when it comes to internal vs. external drives and the number of folders your server’s host OS has to monitor.

Both of these settings are ticked and these contents are on an internal hdd on my synology device

Is the PMS running on that Syno itself or is that just where your media is stored?

That’s a bit redundant btw… will Plex scan your media if you wait for approx. an hour after adding new files?

PMS Is running 24/7 off the synology
And no Plex doesn’t scan the files even after an hour

Just tried adding something to my media directory and still not refreshing on Plex. Waited few hours as well. Anyone with a solution?

So what does that mean? I don’t understand what you mean

Flow‘s link is a guide to review/change the maximum number of directories DSM can monitor (which is the trigger for automatic scans).
This might not be the issue if even scheduled scans don’t seem to work as expected… still worth to have a look.

No that doesn’t do anything. Surely there must be a fix? I’ve had this synology for over 5 years and never had any issues. What has happened lately to cause this?

May I be of assistance ?

Please provide DEBUG Logs ZIP file which are downloaded about 3 minutes after restarting PMS.

Sorry could you tell me how I do that?

  1. Restart PMS (Package Center)
  2. Wait 3 minutes
  3. Now open Settings - Server - Troubleshooting (lower left corner)
  4. Download Logs
  5. It will give you a ZIP file
  6. Attach that ZIP file here.

Plex Media Server Logs_2023-08-16_19-04-45.zip (2.7 MB)
please see plex log attached

Any updates

@Jubz26

Sorry, I was busy

  1. More media folders than DSM allows by default
  2. Your logs show the error (notify)
Aug 16, 2023 19:04:02.901 [140350302632760] DEBUG - [Notify] Now watching "/volume4/Movies/Films/# Sci Fi && Fantasy/The.Tomorrow.War.2021.1080p.WEBRip.x264-RARBG/Subs"
Aug 16, 2023 19:04:02.902 [140350302632760] ERROR - [Notify] Failed to add watch for "/volume4/Movies/Films/# Sci Fi && Fantasy/The.Thing.1982.ARROW.REMASTER.1080p.BluRay.H264.AAC-RARBG" (28: No space left on device)
Aug 16, 2023 19:04:02.902 [140350302632760] ERROR - [Notify] Failed to add watch for "/volume4/Movies/Films/# Sci Fi

You need to count the number of folders involved, add a buffer amount for growth
then update DSM

Here’s the How-To

I tried to follow that guide but I am struggling to remotely understand it.
Is there a noobs step by step guide to do this?

Yes, NOOB STYLE :rofl:

  1. For each of the shared folders which hold media
    – Right-click it → Properties
    – Now wait and watch DSM count the number of files and folders in that shared folder
    – When it finishes, write down the total
    – Repeat for each shared folder containing media until done

  2. When all done with the shared folders, ADD up the folder counts and get a grand total.

  3. Take the total you got. add 32,768 hit equal (=)

  4. Now divide by 32768

  5. You’ll get a number with stuff behind the decimal.

  6. If your calculator has a INT (integer) key, hit it. You’ll see the fraction fall off
    (we’re only interested in the integer)

  7. Add 1 to the integer you got

  8. Lastly, multiply by 32768

  9. This is the new max_folder count

You’ll get a number which is bigger than what you started with and now has enough room for your media library to grow without fussing with this again for a while.

You literally follow my screenshots with what you see from your Syno.

Before we go to that step, what final total (new max folder count) did you get ?

Ok so I have in total 8357 folders
Once added the 32768 and hit equal I get 41125
But there is no decimal points after?

Sorry updated:
8357+32768=41143
41143/32768=1.255584716796875

Bizarre thing is, my tv shows get updated automatically but not the movie folders.

I have 3027 folders for movies
And 5127 folders for TV

OK… there there we are:

8192 is the Synology default limit
Whichever library section gets defined first will work without issue.
The other library section will come up short.

From your logs, it looks like TV was defined first and then movies.

The solution here is simple:

  1. Create the Scheduled Task - User script
    – which runs as user ‘root’ (shown in the how-to pics)

  2. The text (script commands) you want to copy from here and paste in there are:

  3. – ( This is a 32768 folder config. You can make it 65536 if you want. Your choice )

# Remove any previous s2s_watches_max entries (avoid clutter)
sed -i 's/^s2s_watches_max=.*$//' /etc/synoinfo.conf
sed -i 's/^s2s_watches_max=.*$//' /etc.defaults/synoinfo.conf

# This is an example only.   Use your actual result below to add the new value
echo 's2s_watches_max=32768' >> /etc/synoinfo.conf
echo 's2s_watches_max=32768' >> /etc.defaults/synoinfo.conf

Screenshot from 2023-08-17 10-49-13

Make sure it sends you the output (email)
SAVE the task
Don’t “enable” it (you don’t want it running on a schedule)

to run one time: Highlight the task , Click RUN button, Confirm you want to run it.

You’ll get email confirmation in a few moments

If it ran OK… Restart DSM