Plex Media Server keeps crashing my MacMini running Catalina

Server Version#: Plex Media Server v1.20.4.3517-ab5e1197c
Player Version#: n/a
MacOSX version: 10.15.7,

It was working OK running High Sierra …then I upgraded to Catalina and all hell broke loose. The MacMini is a 2012 with the i5 processor, 16GB ram, and SSD HD, the libraries are located in a thunderbolt-connected 5TB RAID enclosure. It runs a few different things, but through process of elimination I’ve determined that the PMS is responsible for the crashes.

when I run the following cmd: 62 is hung application:

MacMini:~ admin$ log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h
Filtering the log data using "composedMessage CONTAINS "Previous shutdown cause""
Skipping info and debug messages, pass --info and/or --debug to include.
Timestamp                       Thread     Type        Activity             PID    TTL  
2020-12-01 02:02:37.930631-0500 0xab       Default     0x0                  0      0    kernel: (AppleSMC) Previous shutdown cause: -62
--------------------------------------------------------------------------------------------------------------------

this has been going on for a while now, and it’s always the same…seems to happen about 2am (which is when the Maintenance starts) . I downloaded my log bundle but Im not seeing any place where I can share it.

Is anyone else having this problem and if so, what did you do to fix it ?

Mod-Edit: added code tags to improve readability of the copied terminal output

1 Like

Really? Nobody else having this problem ?

1 Like

No such issues on my end.
However, 2 remarks…

  1. have you tried installing the latest version of PMS – I haven’t seen any specific fixes for Mac issues in the last releases… but you never know
  2. have you checked the logs from the Plex Media Server? Those might give you some actual insight into what is happening when the system is crashing.
    If running the PMS is causing a system crash or a kernel panic you can get the logs directly from your file system:
    ~/Library/Application Support/Logs/Plex Media Server/
1 Like

Try turning off one at a time.

1 Like

I was browsing through the logs in ~/Library/Logs/Plex Media Server
the crash reports are empty… I was thinking it may be related to the maintenance running and found this in the scanner logs
Does this look like something that would crash Mac OS ?

Nov 03, 2020 02:03:24.806 [0x70000755d000] INFO - Plex Media Scanner v1.20.1.3252-a78fef9a9 - Apple Mac x86_64 - build: darwin-x86_64 - GMT -05:00
Nov 03, 2020 02:03:24.807 [0x70000755d000] INFO - MacOSX version: 10.13.6, language: en-US
Nov 03, 2020 02:03:24.807 [0x70000755d000] INFO - Processor Intel(R) Core™ i5-3210M CPU @ 2.50GHz
Nov 03, 2020 02:03:24.807 [0x70000755d000] INFO - /Applications/Plex Media Server.app/Contents/MacOS/Plex Media Scanner --analyze --item 4733 --log-file-suffix Analysis
Nov 03, 2020 02:03:25.013 [0x7fffb2ab1380] ERROR - [FFMPEG] - moov atom not found
Nov 03, 2020 02:03:25.013 [0x7fffb2ab1380] ERROR - Exception analyzing media file ‘/Volumes/Mercury/Data/VV/Can-Am 125GP,2003 Mont Tremblant.mp4’ (Could not parse /Volumes/Mercury/Data/VV/Can-Am 125GP,2003 Mont Tremblant.mp4 (error=-1094995529): Invalid data found when processing input)
Nov 03, 2020 02:03:25.013 [0x7fffb2ab1380] ERROR - Failed to successfully analyze part 10547.
Nov 03, 2020 02:03:25.021 [0x7fffb2ab1380] ERROR - [FFMPEG] - moov atom not found
Nov 03, 2020 02:03:25.021 [0x7fffb2ab1380] ERROR - Exception analyzing media file ‘/Volumes/Mercury/Data/VV/Canamdvd-2.m4v’ (Could not parse /Volumes/Mercury/Data/VV/Canamdvd-2.m4v (error=-1094995529): Invalid data found when processing input)
Nov 03, 2020 02:03:25.021 [0x7fffb2ab1380] ERROR - Failed to successfully analyze part 17929.

I discovered the attachment button :slight_smile: and attached my logs … thanks in advance for any help

(File removed)

The more interesting parts are the “endings” of the Plex Media Server[.#].log files and the errors found there. However your logs are quite generic.

Can you go to Settings > [Server Name] > General and check Enable Plex Media Server debug logging (but keep Enable Plex Media Server verbose logging disabled!) and share the updated logs after experiencing the error/crash again?

2 Likes

Thanks Tom, I’ll give that a try.

I found that the two files mentioned in that log snippet were some sort of corrupted file segment from a handbrake rip or something . I deleted them .

I’m going to hold off on SE56’s recommendation for the time being as I’d really like to find the cause of this versus a workaround
thanks

well… that’s what you’ll get by disabling them 1-by-1 and then checking if the issue still appears. once pinned down you can look beyond a workaround.

1 Like

Same thing happened again early this morning at 2020-12-07 02:05:29.097962-0500
(this is 5 mins after scheduled tasks start )
I set my scheduled tasks like SE56 suggested
image
attached logs , having a look myself
thanks
(File removed)

1 Like

Had a look through the logs but I honestly don’t know what to look for , could use some expertise if someone has some time .

Remove the Movie Mont Tremblant.mp4, run it through MKVToolNix or delete it. The Year seems to be incorrect .

1 Like

Same here

I removed the Mont Tremblant.mp4 and it still crashed the Mac.

The next night I disabled all the scheduled tasks, and it still crashed the Mac

Very disappointed at this , Been running plex media server for years (I think my first install was v0.80) and never had a problem like this.

@Wesmosis , are you saying that PMS is crashing your MAC too?

Updated PMS to the latest version Monday and changed the scheduled tasks to start at 0100, it crashed the Mac again at 0102 on tuesday morning .

this morning I set the scheduled taks to begin at 11:00 am , and I opened up the system console to watch and see if there was anything logged that would explain the OS crashes … no joy there.
…at 11:04 the OS went down again , I pulled a log bundle to have a look and I don’t see anything that would explain what’s happening . I’m about the throw in the towel and say solong plex , but maybe someone can make some sense of what’s happening .
FYI, once the system rebooted and plex restarted upon login, it rebooted again (about 11:10 ) , not sure if the tasks restarted or what .
Thanks in advance for any help provided .

(File removed)

Sorry, I just realized the debug level logging wasn’t enabled. so I enabled that and set the schedule tasks to 3pm, and like clockwork it rebooted the Mac again .

debug logs are also attached
(File removed)

I’m wondering if this is what’s causing the crashing (from the deep analysis log) :
I ran the below cmd on the CLI and the mac rebooted (good times)

Dec 26, 2020 15:00:42.011 [0x700008e2b000] INFO - Plex Media Scanner v1.21.1.3830-6c22540d5 - Apple Mac x86_64 - build: darwin-x86_64 - GMT -05:00
Dec 26, 2020 15:00:42.011 [0x700008e2b000] INFO - MacOSX version: 10.15.7, language: en-US
Dec 26, 2020 15:00:42.011 [0x700008e2b000] INFO - Processor Intel® Core™ i5-3210M CPU @ 2.50GHz
Dec 26, 2020 15:00:42.011 [0x700008e2b000] INFO - /Applications/Plex Media Server.app/Contents/MacOS/Plex Media Scanner --analyze-loudness --force --item 2417 --log-file-suffix Deep Analysis
Dec 26, 2020 15:00:29.596 [0x700008f31000] ERROR - Analysis: Format error ‘Input/output error’.
Dec 26, 2020 15:00:29.596 [0x700008f31000] ERROR - Analysis: Format error ‘Input/output error’.
Dec 26, 2020 15:00:29.596 [0x700008f31000] ERROR - Analysis: Format error ‘Input/output error’.
Dec 26, 2020 15:00:29.596 [0x700008f31000] ERROR - Analysis: Format error ‘Input/output error’.
Dec 26, 2020 15:00:29.596 [0x700008f31000] ERROR - Analysis: Format error ‘Input/output error’.
Dec 2

How can I determine what item 2417 is …or better yet, stop the scanner altogether ?

Analysis Loudness is found in Library settings on your Server

1 Like

Copy that SE56. disabled now … fingers crossed .

Any wild ass guesses if the IO errors are related to the scan?

If I remember correctly a few years back that setting was added due to an issue with Music. It very intensive. Could remove that Library and try.

1 Like

In the settings, you can set loudness scans to “never” (which I did) … but it makes no difference , the Mac crashed again next time the scheduled tasks ran. wtf.