Plex Media Server on Synology DS118 Constantly Crashing and Halting the Device

Server Version#: ANY
Player Version#: N/A
<If providing server logs please do NOT turn on verbose logging, only debug logging should be enabled>
Plex Media Server Logs_2023-04-01_09-28-03.zip (136.0 KB)

At come point recently (in the past four weeks) I’ve upgraded the Plex Media Server to the latest version and within a few days my Synology would lock up to the point I would have to power cycle it. Diagnosing, I eventually discovered that it’s the Plex Media Server software. If I remove the software the server doesn’t lock up any more.

I’ve completely removed the software and deleted all directories and tried reinstalling and the same occurs. Now though I cannot roll back to a previously working version, I don’t even have to
setup any libraries before it fails. Now it has started saying upon install that there is an issue and I should post my logs here. So here I am. Please help.

Thanks

D

My Issue appears to be very similar to

I have also seen this error message, hence me posting this issue:

I’m going to try and only setup the TV Show side of my setup and see if the issue returns.

Please could someone look into this, there is clearly an issue with the server software which is unrelated to the exact model it’s installed on.

Please don’t delete the past logs.

  1. By deleting them , we can’t see what happened.
  2. They manage themselves (space usage)
  3. They only take up less than 100 MB total (all components)

The PMS log provided doesn’t give any clues.
Please recapture and submit logs again.

Thanks for coming back @ChuckPa!
I removed everything to try and rule out corruption issues in either the DB or any supporting configuration. I’ve been running various tests recently and determined that it’s definitely something associated with the Movie Libraries.
The issue appears to occur on maintenance, but if I don’t have any Movie Libraries setup, then the issues don’t occur at all.

I’ve just setup a new Movie Library after three days of running with just one TV Library setup and no crashing issues.

Also the crashes on my system leave the Synology Box completely unresponsive. It will respond to a ping, but not to SSH, so could be infinite loop, in code or associated data handling.

I’ll leave the system in this state for a few days to see if I get the error once more and if I do, will post the logs here again.

Thanks

D

On these smaller boxes, especially those with 1GB of memory (DS118 or a DS418j), when PMS starts processing credit detection, it is going to be hard on it.

I updated my DS418j to 1.32.0 yesterday. There have been no issues with it.

There are 167,039 items indexed in the DB (movies and episodes)

chuck@ds418:~$ sudo bash
bash-4.4# cd /var/packages/PlexMediaServer/target
bash-4.4# ./Plex\ SQLite /volume1/PlexMediaServer/AppData/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db
SQLite version 3.39.4 2022-09-29 15:55:41
Enter ".help" for usage hints.
sqlite> select count(*) from media_items;
167039
sqlite> 
bash-4.4# free -m
              total        used        free      shared  buff/cache   available
Mem:            988         220         111           3         656         518
Swap:          2047         169        1878
bash-4.4# 

What else are you running on it?

I’m not denying there’s a problem somewhere but I’ve not found the common element. (I have reports for multiple Intel machines but I can’t create it on my ARMv8 machine .. which is really odd given it’s the same code)

Users who’ve reported this for desktop Linux can’t seem to be clear about “non-responsive”. That’s a vague term.

Showing the machine won’t respond to SSH open requests - is definitive.

I need to find that ‘dangling thread’ so I can start pulling on it to find where it’s coming from. (I need to make it crash; then repeat it with the debugger running)

OK, so when I removed everything and then put it all back together, I setup a TV Show library with a single tv series in it. I left it a few days and it was fine. Then I added two Movie libraries with a single movie in each and by the morning the system had halted once more. I’m not 100% sure, but the movie handling, indexing, etc. seems to be where the issue lies.

I was thinking of rolling back the PMS version until the issue didn’t occur, would that help you at all in finding perhaps where the issue first raised it’s head?

At least it’s consistently failing on my machine, which is always useful for troubleshooting eh?

I’m currently running Version 1.29.2.6364, but have already tried 1.32.xxx and that was the same result.

Just parroting what you did in case it helps you get a better picture of what’s going on:

SQLite version 3.35.5 2021-04-19 18:32:05
Enter ".help" for usage hints.
sqlite> select count(*) from media_items;
793
free -m
total        used        free      shared  buff/cache   available
Mem:            642         169         131           2         341         231
Swap:          2047         320        1727

I know this is a low spec machine, but I haven’t had any issues with until now. Primarily used as file storage and Plex, nothing else on the machine. I’ve been using fine for many years.

I haven’t had it crash since I’ve recreated the Libraries and only just added a Movie library this evening (UK time), so I’ll leave everything as is and see whether it crashes again over the next few days.

If you have anything you want me to try, let me know.

Thanks for your help

D

  1. Falling back won’t help.
  2. Steps to reproduce – helps immensely . Thank you.

I’ll create a new server instance on the machine, with all default library settings,
and see what happens with 1.32.0

Just FYI, I’ve been running 1.29.2.6364 for the past 5 days and slowly adding Libraries back in and it hasn’t crashed as of yet.
I’ve just upgraded to 1.32.0.6918 will leave for a few days and see if anything occurs and report back.

1 Like

OK, so I’ve been adding items back into the four libraries that I’ve setup and it has finally fallen over. As said on last post, I’m now running 1.32.0.6918 with 2 x TV Show libraries and 2 x Movie Libraries.

Here are the logs, hope you can see something interesting in them @ChuckPa.

Plex Media Server Logs_2023-04-13_19-21-27.zip (3.3 MB)

Running 1.32.0 – you crash
Running 1.29.2 – you’re fine.

Changes from one to the other.
– Credit detection (chews up a LOT of CPU … buries the ARMv8)
– A lot more memory used.

I must amend my comments about 1.32.0 on the ARMv8 — It crashed

There’s nothing in the logs either.

Debugging ARMv8 is impossible on Synology (no debuggers)

I recommend going back to 1.29.2.6364 and staying there (you’re also on DSM 6)

I’m very suspicious of the 1 GB memory limit in these boxes and PMS not staying lean. (I’ve seen it hit 1.3 GB – swapping)

What is the URL for PMS 1.29.2.6364 for ARMv8/DSM 6?
Thank you.

Check Synology Package Center. Not sure about DSM 6, but on DSM 7 it has PMS 1.29.2.6364.

I will, er, proceed with what I found under my hat.

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