DSM 7, Daily Plex server crashes

Good that you still had it. Thank You
I have referred the crash report and associated log to the development team

1 Like

Hello, same issue as people above. I am experiencing daily crashes of Plex Media Server on DSM 7. Here are my logs. Thanks for your help

Plex Media Server Logs_2021-10-19_14-23-30.zip (5.2 MB)

Thanks. I can see Plex Media Server being relaunched at 14:22 on Oct 19
The previous log stops at Oct 18, 2021 02:34:25 - so about 36 hours earlier

Do you know if the Plex Media Server process was actually running when you relaunched it on the 19th ? There is no indication of crash reporting triggering

There is a tmp folder where we copy crash reports to after attempting to upload them
Could you see if you spot any there - Crash report files would have filenames like this - this is just an example showing the syntax
cd60b28e-fc6c-4d4d-1a787397-f545e1a5

On DSM 7, the tmp folder I think is here
/var/packages/PlexMediaServer/shares/PlexMediaServer/tmp

I would like to see more examples of logs for your server crashes and if possible to find related crash report files in the tmp folder

If you can edit Preferences.xml, I would like to enable memory usage logging - see this support article https://support.plex.tv/articles/201105343-advanced-hidden-server-settings/ and the preference to add is LogMemoryUse and setting it to 1
The Preferences.xml to be edited I believe is here for DSM 7

/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex Media Server

Please make sure Plex Media Server is shutdown when editing it

My seerver hasen’t crashed the past whole week, instead of daily/twice a day.

Anyone else ? or is it just random :p.

PS: Server crashes literally an hour after posting this …

No I’m still seeing crashes, although these seem to occur after using the relay (app.plex.tv) to access the server on version 1.24.5.5173. Just manually started the Plex Media Server again and grabbed logs. I haven’t upgraded to DSM 7.0.1-42218 (currently 7.0-41890) on my DS-1520+ but will now.

Plex Media Server Logs_2021-11-06_04-33-40.zip (3.1 MB)

@terfex

You have a few other issues, namely the maximum number of directories DSM can monitor (by default).

If you look at my FAQ, Step ā€œcā€ where I show the value to use for s2s_watches_max, you should be able to use 65536 comfortably and have room for growth. 32768 is also a good number if you wish to save that extra little bit of memory (if your system has less than 8GB)

1 Like

@ChuckPa Thanks, I’ve updated those values as suggested. I’ll see how it goes now. I do find it strange Synology has this value so low though. What were the other issues you observed?

I’d prefer to see if everything else I’m seeing is a cascaded issue or self-standing.

Synology’s kernel is

  • Behind latest and greatest 5.x kernels. Probably for stratgic reasons. ( Think about how catastrophic a kernel panic would be on a NAS RAID volume )

  • They roll their own.

  • They did not opt to update to the new Linux default of 65536 - likely because many of their products only have 1-2 GB of RAM and NAS boxes rarely need it (only ā€œappliance boxesā€ do)

I’m so keen for a fix on this. Every day when i log in (or one of my shares logs in) the server has stopped. It’s still showing as ā€˜running’ in package center. I have to stop and restart manually and it’s a PITA.

@petergraczer

Do you have the LogMemUse debugging option in your Plex Preferences.xml file for debugging this? We are getting closer to confirming we’ve got it resolved.

unsure where to find that but i can download my logs if that helps

@petergraczer

To add LogMemUse to PMS -

  1. Install the Synology Text Editor app

  2. Stop Plex

  3. Filestation → Navigate PlexMediaServer/AppData/Plex Media Server

  4. Right-Click Preferences.xml → Open in Text Editor

  5. Go to the last line, just before the closing />

  6. Insert LogMemUse="1"

  7. It will look like

  8. Save the file

  9. Start PMS

  10. Settings - Server - General - Show Advanced

  11. Make certain ā€œDebugā€ logging is checked.

  12. Make certain ā€œVerboseā€ logging is not checked

  13. SAVE button if you make changes.

  14. Now, when it crashes, if because of memory, we will see it in the logs and know what caused it. (We are trying to isolate a problem but need to be 100% certain)

All done, thank you and best of luck!

I’m having a similar problem with the Plex server on my Synology DS920+.

I have been using PMS on a dedicated PC for a few years but decided to try an install on my NAS. Everything installed painlessly and worked fine for a few weeks. I then added my FLAC music to the server and found that it had just stopped running a few days later. For the past few days I’ve been ripping CDs and adding them to the library at the end of each day. I’ve found that PMS has stopped running every time new content is added - maybe after doing the sonic analysis of the tracks? I’ve had to restart the server each day but then it seems to work fine until new content is added.

The fix for the specific crash your server was encountering has now been released in the latest beta - version 1.25.0.5220

The specific crash fix is not mentioned in the release note but the fix is in that release

See Release Notice

1 Like

Thanks a lot sa2000 for quoting/answering late or not.

Weird that update didn’t pop up trought plex web (prolly cuz beta).

Downloading it right now ! Have a great day :wink:

No joy after updating the s2s_watches_max to 65536. Server is still crashing.

Plex Media Server Logs_2021-11-20_07-28-30.zip (3.2 MB)

Well that specific issue is now resolved
Your previous log shows 8192 directories watched and then failure to add after that

Nov 06, 2021 04:33:22.148 [0x7f800f97fb38] DEBUG - [Notify] Now watching "/volume1/Music/iTunes/Album Artwork/Download/E8688774DCD1C2F3/07/07/06"
Nov 06, 2021 04:33:22.148 [0x7f800f97fb38] ERROR - [Notify] Failed to add watch for "/volume1/Music/iTunes/Album Artwork/Download/E8688774DCD1C2F3/07/07/15" (28: No space left on device)

Now it is succeeding to add the directory watched

Nov 20, 2021 07:28:14.786 [0x7f5d2c550b38] DEBUG - [Notify] Now watching "/volume1/Music/iTunes/Album Artwork/Download/E8688774DCD1C2F3/07/07/06"
Nov 20, 2021 07:28:14.786 [0x7f5d2c550b38] DEBUG - [Notify] Now watching "/volume1/Music/iTunes/Album Artwork/Download/E8688774DCD1C2F3/07/07/15"

and no failures - over 12000 added ok

So the crash that you have is not related to s2s_watches_max

I cannot see an uploaded a crash report for the crash that occurred at Nov 17, 2021 04:38:31

Could you look for a file with this name
b3abb84f-52e6-429c-1ca9fea0-a7bdf605
in directory
/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/tmp/

If you find it please zip and attach

If it is sonic analysis related - then it may be the one fixed in beta 1.25.0.5220
The latest beta is 1.25.0.5246-cb2507e4d

Not a single crash since the beta update :ok_hand:

Thanks again :wink:

The fix for this specific crash was released in today’s beta release 1.25.1.5286

  • (HTTP) The server could quit unexpectedly when certain types of requests were canceled prematurely (#13135)