Metadata Scanning stops working after sometime (only reboot) resolves

If I may add, I am working on the entire PMS-on-Linux infrastructure to make it completely stateless and free of the current location & username requirements.

I think it will go a long way for everyone.

Oh I believe there is a lot of stuff coming down the pipeline with the way Plex has grown. So im pretty excited to see what you guys do over the next couple years, and this is the first problem I have had I havent been able to resolve since I started my PLEX hobby many years ago.

And this is my very first post on the forum so I would love to get an assist here lol

I’m doing my best to help.

I’ve been going through the rest of your logs.
While this isn’t a reason for it to stop, there are some things you might want to look into.

  • Damaged media file ā€˜Halloween Edition’
Nov 02, 2019 00:26:28.387 [0x7fc1c3fff700] ERROR - [Transcoder] [mp4 @ 0x7c4800] Application provided duration: -32 / timestamp: 80615416 is out of range for mov/mp4 format
Nov 02, 2019 00:26:29.926 [0x7fc2a8dde700] DEBUG - Auth: authenticated user 1 as plex.cnahome
  • Remote Roku playback & transcoding looks good.

  • I see a lot of music being matched. Music is a lot slower now than it used to be. It does seem to take a long time without actually reporting anything. If it’s busy doing music, it won’t find videos. Restarting will make it go back to the beginning of the video libraries and come through again. Might this be happening?

Im glad you saw that. Thats exactly what I thought it was. That the music scanner was super busy or that it was getting stuck on some poorly named file and crashing for some reason. So I turned off music updating in the library pane. Then I was going to use the binary myself to scan music during maintenance windows since I dont really need to see new music that quickly… But still even with out music ever scanning it was doing it.

And actually now that you said that I do have a way of triggering the problem which I thought would help me narrow it down, but no luck so far. All I have to do is manually scan library files for my movie library, and it breaks the scanner.

unfortunately plex currently will rescan/attempt to update music metadata any time a full server scan starts.

your best bet is to simply leave it until it is done doing what it is doing.

you can run a tail -f on the plexmediaserver log file and watch progress.

This will prevent that from happening.

I would recommend tail -F "Plex Media Server.log" (make it watch out for the rollover)

yea sorry -F was just going by memory :slight_smile:

One of the reasons matching takes so long now is:

  1. Fingerprint the first song of the album
  2. Fingerprint the last song of the album
  3. Attempt to match, using names given.
  4. If successful match, we’re done. accept the match
  5. This failing, fingerprint all files then attempt to match.

unfortunately it will not (at least currently).

I never include my music, but now when you do a server rescan, it includes music and rematching unmatched tracks

Hey ChuckPA i used this post and i am up and running again. Thank you.

Thats a shame.

Alrighty well im gonna go try and track this down some more. Maybe Ill give up and let my metadata reload, and not include music in plex for now…

On a sidenote @ChuckPa Getchannels.com is doing some very interesting things with TVE providers. Your DVR platform would work great together.

I avoid most of the heartache now, by setting

  • scan automatically
  • run partial (important)
  • uncheck music in auto updates (always has been for me)
  • uncheck scan periodically

start up plex, let it finish scanning as long as it takes, monitor the log with tail as above.

after the initial scan is complete, new content will show up and plex will continue to do partial rescan only on libraries where content is added/changed/removed.

I don’t know if this will include music (shouldn’t), my music library is pretty static (not actively adding any new music).

do note though, none of this related to any errors about permissions/replacing metadata files.

Thanks @TeknoJunky

I’ll give that a shot and see if that helps with how quickly it fails, and if not maybe Ill remove my music library from plex, let plex redownload metadata for movies and tv shows, new database… and if I want music ill spin up another plex instance for it only, and call it the baby making music server. :wink: night guys

oh, one other tip…

you can avoid the music scan entirely by temporarily renaming your main music folder (so plex can’t see it).

just make sure you have automatically empty trash DISABLED, and that you don’t empty trash manually

I would rename the music folder after stopping plex.

Ah good tip I always leave the empty trash auto off because I run off of a gdrive rclone mount. Thatll do the trick for me to make it stop scanning to see if thats it.

Great troubleshooting tip for people with large libraries. After making the change to my music library to trick PLEX into not scanning it and letting PLEX sit all night I was able to match and download metadata for a new item in my movie library with no issue this afternoon without restart.

So now to figure out what to do with my music. I don’t want my music messing up my movies and tv library since its way less important, but its also nice being able to access my music library anywhere…

So I have three options I guess. Spin up an instance of plex just for it… Use a different app for my music library, or figure a way out to disable the music scanner in plex…

Just as a point of reference, how large is your music library (# albums, #tracks)?

And if you were to simply bite the bullet and let a full scan of the music library run to completion, would that also solve the problem? I know the first scan after the recent changes Plex made took a long time, but in my case it was sure worth it given all the metadata it picked up, changed the entire appearance of my library.