Plex WRONGLY MERGING files across multiple folders (within the same library)

I have a library for courses. Some of them gets updated as the framework evolves. However I intend to keep them in separate folder per relevant version. Thus the same file can exist in multiple folders (they might have different naming because of numbering those files though).

Example:

  • Angular 4 - 100 files
  • Angular 5 - 100 files same files + 20 additional
  • Angular 6 - 100 files + 20 files + another 20 files..

So the end result plex produces is that when in folder view in certain course folder I have mixed files from different folders. This creates big confusion!

What’s on disk in the specific folder

What is Plex showing for the same specific folder

How come some files are even missing??

Did the library deletion and created it from scratch, seemed as expected for the short time, but a bit later it created the same mess again.

anyway the library settings is for the general video files.

Server Version#: 1.15.3.876
Player Version#: web

Appreciate, Michal

EDIT:
So basically I dont want PLEX to try to merge similar files together at ALL, just display them as they are on the disk.
When selecting Folder view I suppose this is the desired outcome.

At the moment folder looks like this:


Which is completely wrong and messed up (even missing files)!

1 Like

What type of library do you have those in?

Must be of type Other Videos

Sure they are, that’s what I meant by “general videos”…

Here’s a very similar issue here.

What Scanner and agent are you using for the library?

Should be: Scanner

Clearly this is bug and needs solving asap. Resulting with the statement users are naming files wrongly is so inappropriate… Especially if we are not in charge of the naming… Consider example of tons of files from the camera… If plex offers folder view then it should behave accordingly on every aspect not just semi-corrupt attempt which leads into such a mess.

sure, thats by default anyway:
image

can we please promote this to the developers? in that other thread are other aspects of this bug…
thanks

I don’t have devs on a leach :wink:

But what I can do, is create an incident when I can reproduce, and currently can’t

So I need logs in debug mode, as soon as this happens

True, but I have no way of knowing if you changed it :wink:

1 Like

So created library from the scratch called TESTBUG to point just to the “angular” courses folder. Right after it was done scanning I captured the debugging logs.

Before:

After:

And the LOGS:
Plex Media (5.1 MB)

In any case here to help :wink: appreciate, Michal

Sadly, too much is going on, so logs roll over!

When said, I did notice the following:

You are using some kind of nbz downloader, and added it’s download directory to a library, if I read the logs correctly.
That’s very bad, and should be avoided. Please keep that out of Plex library folders

Ref:
/usr/lib/plexmediaserver/Plex Media Scanner --scan --refresh --section 27 --directory /plex/media/.downloads

Above is also using the Plex Video Files Scanner ?

When above directory/library is removed from Plex, do the Plex Dance on your Angular training medias, and after that, upload fresh set of logs

Sorry for late response, weekend getaway…

Why? I don’t see any reason… If you are concerned of the downloading parts being constantly scanned it’s fine, they don’t have a valid media extension so they shouldn’t get into Plex library anyway. Those parts just gets into logs and in real they are ignored.

The valid use case for this is when you want to start watching something just being downloaded in sequential order - so by the end of a movie it will gets completely downloaded.

Correct:
image

Fresh logs - testing library is now called TESTBUG4: Plex Media (6.6 MB)

Bottom line, results is exactly the same as before.

Thanks

ALL files get scanned. Whether or not plex does anything with them afterwards is moot.
More importantly, any time the file changes will flag plex to re-scan. So, if you are downloaded a file and it’s being saved in chunks, plex will see this and re-scan the file all over again. Just fyi.

1 Like

PMS checks the timestamp of the directories, and since last updated is changed constantly, PMS, keeps adding it to inotify, as well as add it to the scanner queue.

As such, this is putting unneeded work to PMS workload, as well as your logs roll over with irrelevant entries.

And no idea about the impact on the agent/scanners here. (In theory, they should be fine, but…)

And no need to look at your logs then I guess :wink:

1 Like

Why? I removed that “download” library before as requested :wink:

to be more precise, I deleted that problematic library, restarted plex, added new library from scratch and once plex finished dance I captured the logs :slight_smile:

LOL, and sorry, but from your post, it did sound like you didn’t :wink:

When said, there’s still too much going on @ your server, so logs still roll over sadly.

As such, I need you to increase the amount of log files kept from 5 to 10

See: LogNumFiles in this article: https://support.plex.tv/articles/201105343-advanced-hidden-server-settings/

And after changing it, restart PMS for it to get picked up, and create TESTBUG5:wink:

will test it from scratch with only that single library in PMS… give me 20 minutes…

1 Like

Note though that I’m on GTM +1, so bed time very soon :wink:

1 Like

Same as I :smiley:

BTW completely fresh install and single TESTBUG5 library:


LOGS:
Plex Media (4.6 MB)

Thanks

Logs only go back to 5 items, so are you sure you increased the setting named LogNumFiles, and restarted PMS afterwards?

sorry, thought it won’t be the case when doing fresh setup… I’ll get back here shortly with new logs, thanks