Plex Scanner not adding Media, Server becomes unresponsive

Server Version#:
Player Version#: 4.51.3
Plex Media Server Logs_2021-03-02_06-45-34.zip (2.1 MB)

About 2 weeks ago, my Linux Server/Buffalo NAS Plex build stopped working. I was unable to track down the problem with help on the forum. I would start a scan for media in Plex, Plex would continuously scan for hours without adding any media. Eventually Plex would crash and would have to be restarted. I thought I had tracked the problem down to the NAS itself, which was being accessed via SMB/CIFS. Original thread link below.

Plex Scanner freezing during scan, server unresponsive until reboot - Plex Media Server / Desktops & Laptops - Plex Forum

I decided it was time to upgrade, and moved everything over to a gaming PC I had sitting around. I installed UnRaid, and have Plex Server running via a Docker Container. All drives are in the machine, so no more remote accessing.

Things seemed OK yesterday. I’m slowly moving my data over to the UnRaid array. This morning after hours of transfers, I decide to scan for movies again. Now I’m seeing the same problem as before. Totally new build, cleaned drives that are slowly being restored. In Docker. Plex Docker becomes unresponsive and crashes.

Can anyone scan these logs and find the problem? Or give me some advice on scanning the logs myself? I’m not sure if logs are up to date when you download them.

Looking in Plex Media Scanner Analysis.log I can see this…

Mar 01, 2021 20:24:30.932 [0x1462169ed700] INFO - /usr/lib/plexmediaserver/Plex Media Scanner --analyze --log-file-suffix  Analysis --no-thumbs --item 5897
Mar 01, 2021 20:24:30.933 [0x146216c2abc0] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.26.0, threadsafe=1
Mar 01, 2021 20:24:31.038 [0x146216c2abc0] DEBUG - Analyzing media parts for item 5897 (Turbo: A Power Rangers Movie): 13950
Mar 01, 2021 20:24:31.039 [0x146216c2abc0] DEBUG - [ID 13950] Media part analysis: /data/Movies/Turbo A Power Rangers Movie (1997).mkv
Mar 01, 2021 20:24:31.040 [0x146216c2abc0] DEBUG - [MI] Opening input file: "/data/Movies/Turbo A Power Rangers Movie (1997).mkv"
Mar 01, 2021 20:24:31.040 [0x146216c2abc0] DEBUG - [FFMPEG] - Opening '/data/Movies/Turbo A Power Rangers Movie (1997).mkv' for reading
Mar 01, 2021 20:24:31.040 [0x146216c2abc0] DEBUG - [FFMPEG] - Setting default whitelist 'file,crypto'
Mar 01, 2021 20:24:31.089 [0x146216c2abc0] WARN - [FFMPEG] - Format matroska,webm detected only with low score of 1, misdetection possible!
Mar 01, 2021 20:24:31.089 [0x146216c2abc0] ERROR - [FFMPEG] - Read error at pos. 1 (0x1)
Mar 01, 2021 20:24:31.089 [0x146216c2abc0] ERROR - [FFMPEG] - EBML header parsing failed
Mar 01, 2021 20:24:31.090 [0x146216c2abc0] ERROR - Exception analyzing media file '/data/Movies/Turbo A Power Rangers Movie (1997).mkv' (Could not parse /data/Movies/Turbo A Power Rangers Movie (1997).mkv (error=-1094995529): Invalid data found when processing input)
Mar 01, 2021 20:24:31.090 [0x146216c2abc0] ERROR - Failed to successfully analyze part 13950.

I wonder if Turbo A Power Rangers Movie (1997).mkv is bad/corrupt and then causing problems.

I thought the same thing. I even removed it from my Movies folder and tried rescanning. I’ve tried doing this a few ways. I’ve removed the file manually from the folder. It doesn’t disappear during the scan. I’ve restored the file, then deleted it using the Plex WebGUI. It deletes the file from the folder and browser, but as soon as I initiate a scan, it pops back up and tried downloading metadata.

The thing is, all of my folders were doing this on my last build. I kept thinking it would be a specific file, but every folder did this to me. It’s why I completely rebuilt from the ground up.

I’m starting over on my docker container.

When you removed the file did you also scan, empty trash, clean bundles and optimise ?

If so is there anything new in the logs after you done this with adding the file back ? Maybe it just chokes on another file after that one.

Yes, I did try emptying, cleaning and optimizing before starting again. Same issue.

So I’ve been monitoring the logs, and watching the scanner for problem files. I deleted a few, and was able to get through my current movies library. Hopefully I don’t have the same issue with other libraries, as I’ve had to completely nuke my Docker Setup and start from scratch.

I guess the only concerning thing is that the files that were choking up the scanner are fairly old, a few years old. I’m not sure if they were corrupted in some way, but it’s concerning that they stop Plex in it’s tracks. I’ll update as I move through libraries.

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