Plex Media doesn't detect automaticaly new media

Server Version#:1.18.7.2434

Hello,

I’ve got a little problem : Plex doesn’t detect automatically new medias in my library, but I’ve well checked the “scan library on change” in settings…
What could be wrong ? All others things work well, and when i made a manual scan, it find the new medias.

Thanks for your precious help.

It is likely you have more directories now than the default Linux table allows.
This is pretty easy to resolve.

Using File Manager,

  1. Go to a media share
  2. Right-click it → Properties
  3. Let it count the number of files and folders. We are interested in the number of folders.
  4. When you are all done counting all the folders in use, if that number is greater than 8192, then you have the answer.

Syno FAQ #16 will help you.

Hello @ChuckPa !

Thansk for your answer ! I’ve looked after the FAQ but it seems that I searched it not enough, sorry :/.
My directory “/volume2/media” (which is containing each of my libraries directories) has more than 8192 directories and files (8975 files and 1451 folders). But the libraries directories themself have less : for example “/volume2/media/TV Shows” has 1876 files and 794 folders. What is the one which matter for testing : the “root directory” “/volume2/media” or the “library directory” like “/volume2/media/TV Shows” ?

Thanks for your help !

You should total the number of folders from everything you use in Plex.

( Ignore what is in the Plex share which is the metadata only – No media there).

If you have movies, tv, music, and photos, then the totals of all types, across all volumes together and used in Plex, is what’s important.

If that number is greater than 8192, then we will increase.

@ChuckPa thanks again for your help.
To avoid any confusion : have I to count only folders, or folders AND files ? The FAQ (confront with our discussion) isn’t clear about that according to me :s.

I am sorry. We’re only concerned with the number of folders (directories)

In my how-to, I did state:

e. Write down the number of folders it finds.

We are only concerned about the directories because a directory can hold multiple files. We want to watch and see if anything in that folder/directory changes. We don’t care what does change but do want to know if something happens.

Hello @ChuckPa,

Don’t be sorry ^^ ! That’s clear now, thanks !
But still be a problem : I’ve 1451 folders, so far lesser than 8192… or is it the result of the calcul that I have to compare to 8192 (I think nop, it won’t be logical imo as the result of the calcul can’t be less than 32768) ?
I just wanna be really sure to not do something that isn’t needed…

If it could help, here is the calculation in my case :
1451 + 32768 = 34219
34219 / 32768 ~= 1.044281
So the integer part is “1”, so 1 + 1 = 2
2 * 32768 = 65536

So… what is the right thing to do in my case ? May I set the table size to this value ? Is it needed whereas I’ve got less than 8192 folders ? If not, what’s the problem so ?

Thansk again for your precious help.

If there are only 1451 folders then nothing need be done.

It is important that none of the media folders are INSIDE the Plex share.
This is a mistake some make. Proper scanning why there cannot be media in the Plex share.

What troubles me is that if you manually scan, they will be found where automatic will not.

I must ask again; All the media is local (on) the Synology or is any of it mounted from a remote location?

Hello @ChuckPa !

Sorry for the delay.
Yup, nothing in the Plex share. I’ve created a “media” shared directory as recommended by Plex (so “/volume2/media”).

All the media is local.

I am having trouble replicating the problem.

Here is from the DS418j

  1. PMS installed on volume1
  2. Some shares on volume1
  3. Animated share on volume2

Here, while still being copied, PMS has already detected the file coming in from the LAN.

Screenshot from 2020-02-24 14-24-27

Have you attempted to turn off the automatic (and saved the changes)
Then gone back and re-enabled them?

Nothing better sadly :'(.

Attached are my server’s library settings (in french, but place still remain I guess).

Was any part of the installation previously on a Windows machine?

It is behaving as if it was.

Nop. I’ve transfered it from my old Synology to the new one (following the tutorial about that on Plex support, without any problem).

Did you use a ZIP fie and let the Synology do the unzipping or did you use a Windows computer for anything more than being the “keyboard & mouse” ?

Nop, either :’(.
I’ve transfered it from server to server through LAN, not as an archive and using SSH.

One last clarification.

A Linux or Unix (macOS or BSD) host did the cp -r (or tar | tar) over LAN from one to the other?

Arf, sorry i didn’t remember… I think that i’ve used scp… but not sure.
What i’m sure about is that I didn’t use a third party : there were only my old synology and my new one involve in the process.

In the absence of knowing,

Let’s clear it all out anyway.

  1. Settings - Server - General - Show Advanced
  2. make certain DEBUG logging is enabled, VERBOSE is disabled
  3. Stop Plex
  4. Clear out anything which could be compromised
  5. Open the Plex share
  6. Navigate down into Library/Application Support/Plex Media Server/Plug-in Support
  7. Delete everything in “Data” (but not the Data directory)
  8. Delete everything in “Caches” (but not the Caches directory itself)
  9. Start Plex
  10. Wait 2 minutes for it to start (I want a nice list of “inotify” directories)
  11. Collect the ZIP logs
  12. Attach please.

Hello @ChuckPa !

Here we go ! Let me know if it’s OK.
I’ve just a doubt about the “4” : “Clear out anything which could be compromised”… dunno what I should “clear” here :s.

Plex Media Server Logs_2020-02-26_14-47-35.zip (3,2 Mo)

Hello,

Is there any news about that, please ?