Server Version#: 1.15.4.993
Player Version#: Web 3.97.1
I need help. My Synology Plex server keeps crashing. It happens a few times a day and I can’t figure it out. I will upload the verbose and non verbose logging from my server. The verbose logging is the first time I captured my server crashing and the non verbose logging is the following time I captured the server crash.
Just repaired my database even though the “Check Corrupt Database” results came back ok. I will run the server for a while and see if it crashes. Thanks!
We had a problem with crash reporting where crash dumps were not being uploaded to our back end system for analysis. This has just been resolved and a server restart should result in upload of all crash reports that are in /volume1/Plex/Library/Application Support/Plex Media Server/Crash Reports/1.15.6.1079-78232c603/PLEX MEDIA SERVER . The server logs captured 5 minutes after the restart would confirm the upload. - Of course internet needs to be available
With regards to the system limit being reached on number of monitored directories, you appear to be having a separate directory for each TV Show episode. Normally one would have a separate directory for each season and have all the episodes within that directory.
The limit for iNotify on your system appears to be 8192 and you have 10,042 directories to be monitored - with 1850 failures on attempting to add the directories to the watched list. The watched list is used for automatic detection of changes for scanning and also needed for EAE Audio Encoder
You have 1850 errors like this
ERROR - [Notify] Failed to add watch for "path to a directory" (28: No space left on device)
The solution to this is either reducing number of directories or increasing the system limit in Linux on the NAS.
As advised by @trumpy81 his Q19 on the Synology FAQ has info on this
As we know what the count is from the logs, the process can be simplified.
go to this directory /proc/sys/fs/inotify
cd /proc/sys/fs/inotify
and see if you have a file there named max_user_watches
If not you need to create that file and have the maximum number in it - I suggest 16384