Plex Media Scanner Crashing every night

When plex rolled out the new agent/scanner I went and re done all my file naming to match 100% their standards & recommendations. I went 1 step beyond that and added external matching ids from tmdb to every movie and show. Took a while as I have a mid sized library but once done I now NEVER ever need to worry about matching and the scanner runs like a dream.

I am however on linux. Windows is just about as evil as IOS so I am most likely getting performance benifits by running on linux :supervillain:

Is it always during scheduled maintenance or also at other times?

If at other times, can you create it on demand, such as manually scanning a library, adding media, etc?

So far we can line up the Windows error with Plex Media Server invoking the scanner at the beginning of scheduled tasks.

If we can align the Windows error entries with other Plex tasks it might provide additional insight into what is happening.

The last Plex log files cover Aug 8, 05:57 to Aug 9, 10:21. Any additional Windows error entries during that time period?

It’s only during scheduled maintenance. I’ve been renaming, adding movies, etc back into the server all day and not one error. If I run a library scan manually it works just fine.

It’s why I’m so puzzled about it. I just now had an instance where I couldn’t get to my account, but after refreshing the web interface a couple of times it let me in. No errors in event viewer when I ran the Scan, either.

Woke up this morning and had a look at Relibility Monitor and saw this.

Four times, 2:11 and 4:38AM, two each.

I’ve been working on renaming mythbusters,. I started on that yesterday and only got part of the way through. I’m kind of wondering if there’s a way to scan for corrupt video files? I suspect that I might have some.

Would be happy to look into specific crashes if you can get a crash dump (from current public or beta release) plus debug server logs covering the time of the scanner crash

Would of course need to identify the file (files) that are getting the scanner to crash and would need these files as well

You may need to increase the number of log files - see LogNumFiles in this article Advanced, Hidden Server Settings | Plex Support

Here is what I have as of now. Hopefully something turns up. As to identifying the files, I honestly don’t know how to go about that. If you have pointers, I’ll work through them.

I’ve gone ahead and increased the maximum log files to 10, but those won’t be a factor until tomorrow. In the meantime, here’s the files I’ve assembled.

Thanks for taking a look.

Plex Media Server Logs_2022-08-12_09-44-07.zip (5.5 MB)

Thank you. The scanner crashes are happening during Music Loudness Analysis. I have responded to you in PM to locate the 2 tracks that are causing the crashes and reproduce in a test library with the album(s) so we can get logs to go with the dumps. The increased number of logs did not help and only covered the last 10 loudness analysis scanner jobs

1 Like

Yup, we’re getting somewhere, now. :slight_smile:

Thanks for the media files - I have reproduced the crashes and now referred it to the development team

Meanwhile - keep these 2 albums out of the library

2 Likes

I really appreciate that you guys are running down fixes for the crashes, even with corrupted files.

3 Likes

Oh yeah, some naturally borked files throw Plex’s Scanner for a loop. Just hope that having those will help them make the scanner more robust.

From a serviceability standpoint, could logging also be improved here ? As a suggestion to development, if bad files are detected a message with what file it was be output to the plex logs. Would really help in the situations where bad files are getting processed and would save having to examine dumps.

2 Likes

They do show up in the logs, but if you have a big library they can just roll through and be missed. A Dashboard notification would probably be a good idea.

Plus, from a security standpoint, a crash could be refined into an exploit if someone could figure out exactly what was causing it, and find a way to make the Scanner do what they want it to. I have no idea if if that would’ve been the case, here, but I do certainly appreciate the lengths sa2000 went to to help me narrow it down.

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Today’s Plex Media Server Beta release 1.40.2.8273 fixes a number of crashes relating to the Plex Media Scanner loudness analysis

  • (Loudness Analysis) Some files could cause errors when preforming Loudness Analysis. (PM-627)

Hey, it’s awesome that my two corrupt Dio tracks helped find a problem. :smiley:

Yes thanks for the files - also had other albums from other users. There were a number of different bugs that were giving crashes. The beta has the fixes for all the ones we identified

Thanks