Server Version#: Version 1.16.1.1291
Player Version#: Web client Version 3.95.2
I have an Ubuntu 18.04.2 LTS system running Plex Media Server.
Quite frequently - once a week or so - I will find that plex player clients can’t connect to the server.
If I access the server on :32400 then the web client is there and works but also cannot connect to the local plex media server.
I stop and start the plexmediaserver service and the problem is solved.
I found it in this broken state and grabbed the logs in the hope that someone can assist to find the cause. I’ll upload them on request but they are in debug mode per a previous request.
Judging by this I seem to be getting many crashes (though I don’t know if its related):
root@plex-server:/tmp/Plex Media Server/Logs# ls -l Plex\ Crash\ Uploader.*
-rw-r–r-- 1 plex plex 796 Jul 2 17:07 ‘Plex Crash Uploader.10.log’
-rw-r–r-- 1 plex plex 3699 Jul 1 02:14 ‘Plex Crash Uploader.11.log’
-rw-r–r-- 1 plex plex 2825 Jun 30 02:14 ‘Plex Crash Uploader.12.log’
-rw-r–r-- 1 plex plex 4463 Jun 27 20:14 ‘Plex Crash Uploader.13.log’
-rw-r–r-- 1 plex plex 3611 Jun 22 02:04 ‘Plex Crash Uploader.14.log’
-rw-r–r-- 1 plex plex 358 Jun 18 16:28 ‘Plex Crash Uploader.15.log’
-rw-r–r-- 1 plex plex 1481 Jun 18 02:05 ‘Plex Crash Uploader.16.log’
-rw-r–r-- 1 plex plex 1077 Jun 17 02:15 ‘Plex Crash Uploader.17.log’
-rw-r–r-- 1 plex plex 2333 Jun 16 02:05 ‘Plex Crash Uploader.18.log’
-rw-r–r-- 1 plex plex 7599 Jun 14 02:11 ‘Plex Crash Uploader.19.log’
-rw-r–r-- 1 plex plex 3612 Jul 17 02:06 ‘Plex Crash Uploader.1.log’
-rw-r–r-- 1 plex plex 2825 Jun 11 02:15 ‘Plex Crash Uploader.20.log’
-rw-r–r-- 1 plex plex 1078 Jul 14 02:21 ‘Plex Crash Uploader.2.log’
-rw-r–r-- 1 plex plex 3612 Jul 13 02:05 ‘Plex Crash Uploader.3.log’
-rw-r–r-- 1 plex plex 2760 Jul 9 23:08 ‘Plex Crash Uploader.4.log’
-rw-r–r-- 1 plex plex 2826 Jul 9 02:13 ‘Plex Crash Uploader.5.log’
-rw-r–r-- 1 plex plex 359 Jul 6 09:12 ‘Plex Crash Uploader.6.log’
-rw-r–r-- 1 plex plex 4038 Jul 6 02:04 ‘Plex Crash Uploader.7.log’
-rw-r–r-- 1 plex plex 3700 Jul 5 02:15 ‘Plex Crash Uploader.8.log’
-rw-r–r-- 1 plex plex 2826 Jul 4 02:14 ‘Plex Crash Uploader.9.log’
-rw-r–r-- 1 plex plex 1078 Jul 18 02:18 ‘Plex Crash Uploader.log’
Here’s the contents of one of those (the latest):
Jul 18, 2019 02:18:37.741 [0x7f2b83a38700] INFO - Crash Uploader - Platform: Linux ServerUUID: 493d8c257df9b5fc0227a49d5961f9a78c87f16d UserId: xxxxx Version: 1.16.1.1291-158e5b199
Jul 18, 2019 02:18:37.741 [0x7f2b89662740] DEBUG - HTTP requesting POST https://sentry.io/api/1233455/minidump?sentry_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Jul 18, 2019 02:18:39.864 [0x7f2b89662740] DEBUG - HTTP 429 response from POST https://sentry.io/api/1233455/minidump?sentry_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Jul 18, 2019 02:18:39.865 [0x7f2b89662740] ERROR - Failed to upload crashdump 38973a44-0f84-6e35-6953c8f0-02e40214: 429
Jul 18, 2019 02:18:39.865 [0x7f2b89662740] DEBUG - HTTP requesting POST https://sentry.io/api/1233455/minidump?sentry_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Jul 18, 2019 02:18:41.865 [0x7f2b89662740] DEBUG - HTTP 429 response from POST https://sentry.io/api/1233455/minidump?sentry_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Jul 18, 2019 02:18:41.866 [0x7f2b89662740] ERROR - Failed to upload crashdump 6720b9fa-d3a4-aa91-093326bf-31c533d7: 429
It appears to be the Plex Media Scanner than is crashing with a SIGABORT:
Jul 18, 2019 02:18:38.455 [0x7f8b03e91700] DEBUG - Jobs: ‘/usr/lib/plexmediaserver/Plex Media Scanner’ exit code for process 22094 is -6 (signal: Aborted)
My Plex Media Scanner logs don’t go far back enough to see what that logged at 02:18.
In my logs I have one crash logged like this, and quite a few with “signal: Killed” for Plex Transcoder.
If I grep the logs for ERROR there are many many errors.
Here’s the 15 most common error types:
root@plex-server:/tmp/Plex Media Server/Logs# grep ERROR * | sed -e ‘s/^.*ERROR - /ERROR - /’ | sort | uniq -c | sort -nr
grep: PMS Plugin Logs: Is a directory
11388 ERROR - Analysis: Codec error ‘Invalid data found when processing input’.
3108 ERROR - downloadContainer: expected MediaContainer element, found html
2734 ERROR - [FFMPEG] - Reserved bit set.
2106 ERROR - [FFMPEG] - Inconsistent channel configuration.
2106 ERROR - [FFMPEG] - get_buffer() failed
2104 ERROR - Analysis: Codec error ‘Invalid argument’.
2048 ERROR - [FFMPEG] - Prediction is not allowed in AAC-LC.
648 ERROR - Analysis: Codec error ‘Not yet implemented in FFmpeg, patches welcome’.
393 ERROR - [FFMPEG] - invalid band type
328 ERROR - [FFMPEG] - SBR was found before the first channel element.
199 ERROR - [FFMPEG] - channel element 2.9 is not allocated
199 ERROR - [FFMPEG] - channel element 2.4 is not allocated
197 ERROR - [FFMPEG] - channel element 2.5 is not allocated
193 ERROR - [FFMPEG] - channel element 3.6 is not allocated
190 ERROR - Gracenote: Exception at line 1036, error -1870593912 (The connection was refused by the server.)
Its scary to see all these errors since my server appears to be working OK except for this problem where it goes “offline”.
I’ve probably overshared but I don’t really know what to look for…
Thanks,
Steve
