DVR shows not visible if they exist in two libraries

So I have my DVR setup to dump shows into its own TV Show library, which I call “DVR Cache”. I also have my real tv show library which I call “TV Shows”. I separate them because I’d like to do a bunch of pre processing and verification of recorded shows before adding them to my actual “TV Shows” library. One thing I’ve noticed, however, is that if a tv show already exists in the “TV Shows” library and the DVR records a new episode to the “DVR cache” library it doesn’t show up anywhere in Plex! The TV show is clearly recorded to the DVR cache directory, but the media isn’t displayed in either library in Plex. I’ve tried rescanning both libraries but it still won’t show up in either library. In addition, this only appears to happen for shows that already exist in the “TV Shows” library. If it’s a new show that doesn’t exist there then it will be correctly displayed under ‘DVR Cache’.

Is this a new bug? Let me know if you need me to capture any info, logs, etc.

I’ve noticed this issue in both PMS 1.11.1.4753 and the latest 1.12.0.4829, although it could exist in other versions as well.

It sounds a bit like “how you’re using it” at first read.

The first to ask is if any of the directories, temporary or final, exist in both directories?

Would it be possible to give a walk-through example, including example directory/pathnames of the sequence?
If you would, and list what directories are scanned as part of which library sections, that would be a great help.

With that info, I can also recreate your sequence. If you’ve found a bug, it will give me what I need to submit a but report.

Hmm how I’m using it doesn’t seem too unreasonable to me. Forget the part where I mention the whole “pre-processing and verification before adding to my actual library” part… thats what I ultimately WANT to be doing, but I haven’t done it yet.

Here’s a walkthough of the process:
I have two libraries for TV shows.
“TV Shows” scanned from and located here: /volume1/share/Media/TV Shows/
“DVR Cache” scanned from and located here: /volume1/share/Media/DVR Cache/

In my “TV Shows” library I currently have the current season of The Flash from S04E01 to S04E13 (located here: /volume1/share/Media/TV Shows/The Flash (2014)/Season 4/). Last night the DVR recorded the latest episode (S04E14). The DVR entry for The Flash (and all my other shows) has it saving to the “DVR Cache” tv show library. This morning when I looked at the DVR cache library in Plex Web I don’t see the new episode of The Flash. When I look in the DVR Cache directory however I see the file saved here: /volume1/share/Media/TV Shows/DVR Cache/The Flash (2014)/Season 04/The Flash (2014) - S04E14 - Subject 9.ts. In addition, if I go to the Flash under the TV Shows library in Plex Web I see that it lists 14 episodes, even though only 13 are shown. Nowhere in Plex web does the Flash S04E14 episode show up, except under “Recording Schedule” where I can see a play button and play the episode.

So clearly something is wonky when the same show exists in both libraries even though the paths are different. These errors do NOT occur if I record a show to “DVR cache” that does NOT exist in “TV Shows”. Then it shows up properly in DVR Cache library. This seems to be the same with all the shows I’m recording.

Let me know if you need more info.

Mike

Mike,
What you’re asking, now that I understand, is not the least bit unreasonable. It’s mainstream enough that even I do it.

This as basis, I have a good idea what’s happening. I think what’s happening either a) permissions or b) the iNotify kernel table size is being exceeded. Those are the very first things to check.

Can you do the following things for me and then collect the log files (Settings - Server - Help - Download Logs) and attach that Zip file.

  1. Settings - Server - Library — Turn Update my library automatically off / save / on / save
  2. Rescan both library sections
  3. Collect the logs

Thanks! Logs attached.

Your logs are full of errors. Some easily correctable while others imply bad things with your media. These could be secondary failures

First and foremost, your database is in severe need of maintenance (Optimization)

Feb 28, 2018 18:07:27.862 [0x7f47a8fff700] WARN - Got a request to stop a transcode session without a session GUID (or with an invalid one).
Feb 28, 2018 18:07:27.976 [0x7f47aad11700] WARN - SLOW QUERY: It took 530.000000 ms to retrieve 68 items.
Feb 28, 2018 18:07:28.226 [0x7f47bfa23700] WARN - SLOW QUERY: It took 330.000000 ms to retrieve 39 items.
Feb 28, 2018 18:07:28.429 [0x7f47aaa23700] WARN - SLOW QUERY: It took 220.000000 ms to retrieve 39 items.
Feb 28, 2018 18:07:28.484 [0x7f47b9959700] WARN - SLOW QUERY: It took 1360.000000 ms to retrieve 50 items.
Feb 28, 2018 18:10:56.474 [0x7f47cfbb5800] WARN - Timed out waiting for server to finish.

You need top Optimize Database (from the Libraries) pane (Hover over Libraries, Expose the ellipsis, click it, click Optimize Database) and restart PMS .

Normally restart is not required. Your database is very bad and modules need to restart cleanly

After restarting. Setting - Server - Schedule Tasks: Make certain Scheduled optimization is enabled during a time when the server is on

It was already set up to perform all those maintenance tasks every week. Plex is running on my Synology which stays up 24/7 so scheduled tasks should always run… as long as it can wake the Synology if it has gone to sleep.

What would the issue with the media be? All the media I have uses pretty standard encoding. Generally I try to keep everything in mp4 containers (at least 99% of it anyway) and video encoded as x264/x265 with audio as AAC/AC3… formatted so that it can direct play on the Apple TV without transcoding.

Do you need me to collect more logs?

I have separate dvr-tv and TV libraries, and I have not noticed this type of behavior.

Tv episodes show up correctly and independently in both libraries according to how and when they are added to that particular library.

ie dvr episodes show up as expected when recorded, and post-processed/other episodes show up in the main tv library accordingly when added.

I have large library and plex database (~1gig .db file) and get plenty of those slow queries (last time I checked anyway). My plex currently runs on a netgear readynas 528x with 16gig ram, ~40tb raid-6 array.

Regarding the slow query, I’d imagine it is highly dependent on cpu and disk access response.

The inotify limit seems like the most logical place to start, if your library is also very large.

Mine are still screwed up. Stuff that was moved over to the “TV Shows” library is no longer showing up in either library. It’s counting the episodes (I can see the marker next to the season indicating the total number) but when I navigate to the season it only shows a subset. I’ve tried rescanning, analyzing, refreshing meta data, etc with no luck.

The next step.

This happens every once in a while because of the nature of TMDB and TVDB. The caches get junked up because those sites either are overloaded / fail to give complete data / and a multitude of other reasons.

Please do the following.

  1. If you haven’t given your username R/W permission to the Plex share, please do so now.
  2. Stop PMS in Package Center
  3. Open FileStation and drill down through Library until you see Caches
  4. Go into Caches and delete everything you see.
  5. Start PMS.
  6. Now recan one section at a time and do the following
  7. If any metadata (posters, etc) is missing, you can either force refresh for the whole library section or just those with missing data
  8. Optimize the database
  9. Repeat 5, 6, and 7 until all sections done.
  10. Survey your overall results and let me know

Thanks for the info. I went in and deleted the entire cache, restarted PMS, and tried rescanning/optimizing and my library is still messed up. I’ve attached images and the latest logs. Let me know if there’s something I’m doing wrong. Thanks!