Good that you still had it. Thank You
I have referred the crash report and associated log to the development team
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
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.
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)
@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.
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
To add LogMemUse
to PMS -
-
Install the Synology Text Editor app
-
Stop Plex
-
Filestation ā Navigate
PlexMediaServer/AppData/Plex Media Server
-
Right-Click
Preferences.xml
ā Open in Text Editor -
Go to the last line, just before the closing
/>
-
Insert
LogMemUse="1"
-
It will look like
-
Save the file
-
Start PMS
-
Settings - Server - General - Show Advanced
-
Make certain āDebugā logging is checked.
-
Make certain āVerboseā logging is not checked
-
SAVE button if you make changes.
-
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
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
No joy after updating the s2s_watches_max
to 65536. Server is still crashing.
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
Thanks again
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)