Plex Media Server is crashing every 24-48 hours

Server Version#: Version 1.16.3.1402
Player Version#: N/A
Linux OS: Debian / Linux 4.19.36 #1 SMP Sat May 4 12:07:18 EDT 2019 x86_64 GNU/Linux

Hardware specs:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI (rev 31)
00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA controller [AHCI mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

I have noticed that the Plex Media Server is crashing and restarting every 24-48 hours.
The two most recent examples are:

08/10/19 18:15
08/12/19 17:13

Logs Attached.
Plex Media Server Logs_2019-08-13_10-05-52.zip (10.5 MB)

I’m not liking this in your logs.

Aug 12, 2019 17:10:13.367 [0x7f9d684b9700] DEBUG - HTTP requesting GET http://192.168.2.133:80/dri/device.xml
Aug 12, 2019 17:10:13.367 [0x7f9d1b732700] DEBUG - HTTP requesting GET http://192.168.2.133:80/discover.json
Aug 12, 2019 17:10:13.367 [0x7f9d18553700] WARN - SLOW QUERY: It took 310.000000 ms to retrieve 0 items.
Aug 12, 2019 17:10:15.412 [0x7f9d6a290700] WARN - SLOW QUERY: It took 370.000000 ms to retrieve 0 items.
Aug 12, 2019 17:10:18.672 [0x7f9d684b9700] DEBUG - HTTP 200 response from GET http://192.168.2.133:80/dri/device.xml
Aug 12, 2019 17:10:18.671 [0x7f9d1b732700] DEBUG - HTTP 200 response from GET http://192.168.2.133:80/discover.json
Aug 12, 2019 17:10:24.339 [0x7f9d1b732700] DEBUG - HTTP requesting GET http://192.168.2.133:80/lineup_status.json
Aug 12, 2019 17:10:27.599 [0x7f9d6a290700] WARN - SLOW QUERY: It took 3770.000000 ms to retrieve 1 items.
Aug 12, 2019 17:10:31.177 [0x7f9d1b732700] DEBUG - HTTP 200 response from GET http://192.168.2.133:80/lineup_status.json
Aug 12, 2019 17:10:35.288 [0x7f9d684b9700] DEBUG - NetworkServiceBrowser: found 4 SSDP devices via http://192.168.2.133:80/dri/device.xml
Aug 12, 2019 17:10:37.040 [0x7f9d6a290700] WARN - SLOW QUERY: It took 390.000000 ms to retrieve 0 items.
Aug 12, 2019 17:10:40.500 [0x7f9d684b9700] DEBUG - NetworkServiceBrowser: SSDP arrived: 192.168.2.133 (HDHomeRun DRI Tuner 131995C9)

SLOW QUERY to retrieve 0 items.

What is happening to the machine? PMS isn’t transcoding at this time.

Are you referring to the Plex Media Server machine of the HDHomeRun tuner?

Just after 5 PM at night, I don’t think the server running PMS is doing much. I don’t think anyone is even home at that time.

Would you:

  1. Hover over the library section (left pane) and “Optimize Database”
  2. Go to Settings - Servers - Scheduled Tasks.
  3. Verify it is set to optimize the database and backup.
  4. Verify the maintenance time is at a time when the server is one to guarantee this is done.

Upgraded to 1.16.4.1469 before running these tasks. Also performed a manual guide refresh since automatic guide refreshes are not working at this time.

Couldn’t find the “Optimize Database” button where you directed. Instead found it under the “Troubleshooting” section. Optimization task completed in under 10 seconds.

Server is on 24/7/365.

Server Log Bundle attached.
Plex Media Server Logs_2019-08-15_09-57-09.zip (10.6 MB)

This is Kodi with the Plex for Kodi UI on top?

I am not understanding this:

Aug 15, 2019 07:26:38.964 [0x7f8a94e82700] DEBUG - [com.plexapp.system] HTTP reply status 200, with 9036 bytes of content.
Aug 15, 2019 07:26:38.966 [0x7f8a94e82700] DEBUG - The system knows about 13 agents.
Aug 15, 2019 07:26:38.966 [0x7f8a7d6ed700] DEBUG - Starting plug-in /storage/.kodi/addons/service.multimedia.plexmediaserver/lib/Resources/Plug-ins-6d5612c2f/TheTVDB.bundle.
Aug 15, 2019 07:26:38.966 [0x7f8a7d3fe700] DEBUG - Starting plug-in /storage/.kodi/addons/service.multimedia.plexmediaserver/lib/Resources/Plug-ins-6d5612c2f/LyricFind.bundle.
Aug 15, 2019 07:26:38.966 [0x7f8a7d9dc700] DEBUG - Starting plug-in /storage/.kodi/addons/service.multimedia.plexmediaserver/lib/Resources/Plug-ins-6d5612c2f/LocalMedia.bundle.
Aug 15, 2019 07:26:38.966 [0x7f8a9736e700] DEBUG - Completed: [127.0.0.1:48752] 200 GET /:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_ (12 live) GZIP 3280ms 19463 bytes
Aug 15, 2019 07:26:38.966 [0x7f8a94e82700] DEBUG - Waiting for 19 plug-ins to finish starting.
Aug 15, 2019 07:26:38.966 [0x7f8a7d6ed700] DEBUG - Starting file watcher for com.plexapp.agents.thetvdb
Aug 15, 2019 07:26:38.966 [0x7f8a7d9dc700] DEBUG - Starting file watcher for com.plexapp.agents.localmedi

It is a Linux server that is running KODI as the graphical user interface and is running Plex Media Server in the background.

These info lines are not good.

Aug 15, 2019 07:26:32.733 [0x7f8a97f3b700] INFO - Plex Media Server v1.16.4.1469-6d5612c2f - unknown PC unknown - build: linux-x86_64 debian - GMT -04:00
Aug 15, 2019 07:26:32.734 [0x7f8a97f3b700] INFO - Linux version: 4.19.36 (#1 SMP Sat May 4 12:07:18 EDT 2019), language: en-GB
Aug 15, 2019 07:26:32.734 [0x7f8a97f3b700] INFO - Processor Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz
Aug 15, 2019 07:26:32.734 [0x7f8a97f3b700] INFO - /storage/.kodi/addons/service.multimedia.plexmediaserver/lib/Plex Media Server

All I can tell is you’re using the debian build of PMS.
Your database is full of locking errors.

I need more info because, to me, this looks like you’re running PMS on LibreElec or an unsupported distro, which isn’t supported. All the major distributions show their name in the kernel uname -a output. This system reports unknown which immediately means it’s non-standard in some way.

Sounds good. It is LibreELEC, so I guess I am on my own.

BTW, this issue was the server stop and restarting on its own. The other ticket that was closed was that the service would not start at all. Different issue in my opinion, but its a moot point now.

LibreElec, for as GOOD as it is (and I really applaud what they do), is perfect for Kodi.
It doesn’t have enough kernel support to run the Plex server.

It can only run the Plex UI (Plex For Koki) plug-in.

Sorry.

Understood. I completely understand needing proper platform support. I am just saddened as I was able to run PMS on OpenELEC, and then LIBREELEC, for the past 5 years (maybe more… I’ve lost track) without any issues. It’s just hard to now have to go about architecting a new solution.

…sigh…

OK. Enough self pity. Time to get to work.

Thanks for all the support you’ve given. It’s been greatly appreciated.

The change to the new CI (PMS 1.15.0 and above) changed a lot of things.

glibc 2.14.1 is required now as a minimum. This cuts off Ubuntu 14 and Centos 6.

Good to know. Thanks for the background. That gives me a better understanding of the reasons for which platforms to support. I am unfamiliar with CI acronym. What does it stand for? Is it Continuous Integration?

Continuous or Continuing or Configuration depending on the application.

In our application, I use it more as Configuration because it is were all the binaries are compiled and distribution packages built. Each package is different whether it be the binary and packaging (NAS devices) or just the distributions of Linux (Debian vs Redhat)

Thanks for all this great information. Is there a full list of required libraries that is needed to support the PMS application?

I know the PMS Requirements page list the full Linux distributions, but I was wondering if there was a more detailed list. I see that LibreELEC has just updated to glibc 2.30, so the requirement you listed above should at least be met. I am just curious as to what other requirements LibreELEC is currently lacking to support PMS.

The issue isn’t so much publishing a list as which kernel services are supported and how they behave.

As I have understood LibreElec, it falls into the micro-kernel category and is properly named “Just enough OS for Kodi”. This as its purpose, I doubt all the required glibc calls are fully per standard Linux spec.

Do you have more info on this? I have it installed in LibreELEC (I MUCH prefer the Plex interface, but only LibreELEC will play 3D-MVC) and I can start the plugin without issue. I can start a new thread, but saw you mention it here so I’m hoping you can point me in the correct direction to find a resolution. It may be a simple setting or something.

I also already have a thread in the LibreELEC forum that’s a couple weeks old with not a single reply…

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