Crash in Mac OSX Server App when attempting to access from external device

Plex Server App starts up fine, but as soon as I attempt to access my library (for example from iPhone or iPad app) it crashes.

It recently was fully shutting down my tower, but I updated the Server App, ran my disk utlity permissions repair and purged my caches and now it only crashes the server app thankfully.

I couldn’t attach my Log Crash file so here it is via DropBox:

I now realize I could post like this. Sorry about that.

For crashes it is always best to provide both the crash dump report file and the corresponding server log files. If it is the server process that is crashing - as in this case - the log file would be one of these files
Plex Media Server.log
Plex Media Server.1.log
Plex Media Server.2.log
Plex Media Server.3.log
Plex Media Server.4.log
Plex Media Server.5.log

These log files get rotated when 5Mb size reached or when restarting the server.
See if you can find a log file that is for period up to 2016-07-26 15:14

It may be due to some database issue - so would like to see the log as well
https://support.plex.tv/hc/en-us/articles/200250417-Plex-Media-Server-Log-Files

Hi sa2000, thank you for the help. Please see attached. I hope this is what you were referring to.

@michaelaris

Thanks for the log.
It does show database corruption

Jul 26, 2016 15:14:56.098 [0x10bf21000] ERROR - SQLITE3:0x10b6c1250, 11, database corruption at line 54520 of [8a8ffc862e]
Jul 26, 2016 15:14:56.098 [0x10bf21000] ERROR - SQLITE3:0x10b6c1250, 11, database corruption at line 54561 of [8a8ffc862e]
Jul 26, 2016 15:14:56.098 [0x10bf21000] ERROR - SQLITE3:0x10b6c1250, 11, statement aborts at 7: [select statistics_bandwidth.id as 'statistics_bandwidth_id', statistics_bandwidth.account_id as 'statistics_bandwidth_account_id', statistics_bandwidth.device_id as 'statistics_bandwidt
Jul 26, 2016 15:14:56.117 [0x10bf21000] ERROR - Uncaught exception running threadpool task: sqlite3_statement_backend::loadOne: database disk image is malformed

Options to fix the database corruption

@sa2000 I think the repair did it! :smiley: thank you so much.

@sa2000 so the repair seemed okay. I tested it from a remote location and everything seemed fine. But when I came home the entire computer had shutdown. I’m going to try a fresh db.

I would not expect computer shutdown to be triggered by Plex Media Server

Right? Me too! haha so, I did the fresh install and had it streaming A-Okay this afternoon, but yet again when I came home from work the computer had crashed and turned off. The computer does not experience these symptoms when Plex Media Server is not running.

According to the Mac OS X Console log the last processes that took place before the system shut down was:

2016-07-28 6:06:26.711 PM Plex Media Server[594]: objc[594]: Object 0x7faa3ba39f40 of class __NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug

2016-07-28 6:06:26.712 PM Plex Media Server[594]: objc[594]: Object 0x7faa3ba3d170 of class __NSCFData autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug

However the Plex Server Log files go until 6:10pm. See Attached.

@michaelaris said:
Right? Me too! haha so, I did the fresh install and had it streaming A-Okay this afternoon, but yet again when I came home from work the computer had crashed and turned off. The computer does not experience these symptoms when Plex Media Server is not running.

According to the Mac OS X Console log the last processes that took place before the system shut down was:

2016-07-28 6:06:26.711 PM Plex Media Server[594]: objc[594]: Object 0x7faa3ba39f40 of class __NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug

2016-07-28 6:06:26.712 PM Plex Media Server[594]: objc[594]: Object 0x7faa3ba3d170 of class __NSCFData autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug

However the Plex Server Log files go until 6:10pm. See Attached.

The console exceptions relating to Plex Media Server were about 4 minutes earlier. The logs show Plex Media Server was still running after that. The last activities in the logs were relating to remote connections to the server from IP 99.230.xx.xx a Safari Plex Web session on a Mac with your user ID streaming TV Show S01E03 from Sailor Moon (1992) TV Show. The server was transcoding the avi file. What time did you discover the server shut down ? and I presume Plex Media Server.log was for the period after you restarted the Mac ?

I will flag the exceptions in the Mac Console to the Devs but probably they had no bearing on the crash. I would pursue the Mac crash on Mac forums to try and establish why it is crashing

The logs go up 18:10 pm and the last activity shows remote connections from 99.230.xx.xx which I mentioned and also 99.229.xx.xx for user 63776/Level44.
Are there any crash reports ?

I only noticed the server/machine was down when I came home around 9:30pm yesterday. I restarted the Mac at around 10pm, but did not attach the server log that shows the restart. I only attached the logs that show from 11am yesterday until the crash at 6:10pm

The vague explanation I’m finding about the those ‘just leaking’ system log entries is that they are related to memory leaks. Which is wild because the machine I have has 20GB of RAM.

Plex did not generate any crash reports. Which I’m lead to assume that the entire computer crashed/shutdown rather than Plex crashing before the system shutdown.

So, I tested the mac pro in an isolated environment outside my home network, and no problems. It was streaming 4 streams uninterrupted. Now my Plex library is located in two directories - on a local raid in the Mac Pro AND on a QNAP NAS. So the environment I brought it to test in also had a QNAP so I hosted some files on there and still no crashing, even over AFP. I’m going to try and see what it’s like to have PMS look at the directory over SMB instead of AFP and see if that does anything.