Server only runs for a few minutes

Server Version#: Version 1.24.5.5173
Player Version#: Doesn’t matter

When I updated my Synology to DSM 7, I got my Plex server running without a problem. When I recently updated to the above version, it won’t stay running for more than a couple of minutes.

Any help to keep it running would be appreciated. Thanks.

I have attached logs.
Plex Media Server Logs_2021-12-21_06-17-02.zip (3.1 MB)

The problem is with your photos. There are ~12000 such error messages:
Nov 15, 2021 06:52:43.989 [0x7f9b15e90b38] ERROR - [Notify] Failed to add watch for "/volume1/photo/default/default Previews.lrdata/C/C9BE" (28: No space left on device)

I do not have photos on my Synology, so will be of limited help. However, here are some things to check:

  1. Are you really out of space on /volume1?

  2. Do you have Synology Photos installed? Plex seems to have issues with it. See DSM 7 - Synology Photos shared folder issues with Plex - Please read

  3. You may have exceeded the number of folders that Plex can monitor. See FAQ 16: Increase the number of folders Plex can monitor for steps to increase the default value.

Thanks for the response. I’m not out of space and I don’t have Synology Photos installed. It was the photo library, though. For some reason, File Station reports that I have more than 19,000 folders in my shared photo folder. A quick scan showed me that I have 250 or so folders in it. Most of the folders there don’t have sub-folders so that number doesn’t seem reasonable.

Still, I increased the number of folders that Plex can monitor. I restarted it, but it still crashes after a few minutes. I changed the folder that Photos monitors to an empty one and now it stays running.

I think the Photos folder needs to be repaired. I’ll focus there. Thanks for your help.

So…I had more than 18000 folders in a Lightroom preview folder. I deleted it and wound up with a much more reasonable 1,300 or so folders. Plex server is still crashing unless I redirect the photos library somewhere else. Here is the latest logs. Can you see what the issue still is?
Plex Media Server Logs_2021-12-26_14-00-14.zip (7.1 MB)

There is no crash in the log files. The oldest entry is Dec 26, 2021 10:51:58.842, so the crash must have occurred before then.

After the next crash, restart Plex, wait ~5 minutes for Plex to fully start, then pull a new set of log files.

The log files are limited by size, not time, but the last set covered ~3 hours, 10:51 to 14:00.

Some other things to try:

  1. Check file permissions.

There were very few log entries covering /volume1/photo. A couple of them mentioned “failed to open file.” Make sure the system internal user PlexMediaServer has at least read only access to the files.

There were also errors trying to access /volume1/test, so check permissions for that directory as well.

See FAQ 19: Setting permissions to allow Plex access to media files

Set the permissions even if DSM shows they already exist. Be sure and check the box for “Apply to this folder, subfolders, and files.”

Dec 26, 2021 13:06:42.514 [0x7f38fbf8bb38] DEBUG - [ID 44673] Media part analysis: /volume1/photo/2012-02-25/2012-02-25/P1000036.JPG
Dec 26, 2021 13:06:42.529 [0x7f38fbf8bb38] ERROR - Format [JPEG] - FreeImage_Load: failed to open file /volume1/photo/2012-02-25/2012-02-25/P1000036.JPG
  1. Check for “Convert to Windows ACL”

This is mentioned in the DSM 7 - Synology Photos shared folder issues with Plex - Please read document.

See this post in the thread.

If it is not greyed out, choose the option to Convert to Windows ACL. Try it even though you do not have Synology Photos installed.

Thanks for sticking with me. I added my ‘volume1/photos’ back into the photo library. At some point it crashed again. I removed it, restarted Plex last night and it is still running this morning. I have determined beyond a doubt that Plex doesn’t like this folder and crashes when it’s added to the Photo library. I have attached logs again.

For a little background, Plex has been running on this NAS without an issue from before DSM 7.0. When I upgraded the NAS, I followed the procedure here to get it running again. It ran without issue until I ugraded Plex to this version.

When upgrading to this version of Plex, the only change made was with the new version. Unless installing Plex messes with folder permissions, it seems counter-intuitive to be focused on that. Again, everything worked until this version. Nothing was changed when I installed this version.

Does that offer any clues?
Plex Media Server Logs_2021-12-30_06-58-14.zip (5.6 MB)

Plex Crash Uploader.log shows a crash file was uploaded to Plex yesterday at 13:36:
Dec 29, 2021 13:36:46.584 [0x7f3637974848] INFO - Successfully reported 78aee20b-2eae-4515-73029395-c20748e9 (only Plex employees can view those uploads).

The info for that time period had already rolled out of the main Plex Media Server.log files when
the logs were pulled this morning (Dec 30, 2021 06:58:10.014). The last entry in Plex Media Server.5.log occurred Dec 29, 2021 20:19:31.928.

The log files show Plex running normally, scanning files.

One more suggestion: Instead of adding all the photos at once, take a “divide & conquer” approach.

  1. Remove /volume1/photo from Plex. If it is the only folder in the library, then delete the library. Then empty trash, clean bundles, & optimize the database. See the Plex Dance support document. You’re not “dancing” any files, but it shows the steps.

  2. Create a new “photos2” folder somewhere on the NAS, and make sure the user PlexMediaServer has read/write permissions for it and all its contents.

  3. Create a new photo library and add the new “photos2” folder.

  4. Copy (not move) files from /volume1/photo to photos2 in batches, keeping the same folder/file structure. This lets you do whatever you want with photos2 and not harm your original files in /volume1/photo.

  5. Wait for Plex to finish processing each batch before proceeding with the next one.

Adjust/tweak as needed. If a certain batch causes Plex to crash then try a different batch. That can help find out if the problem is with a certain file, file type, quantity of files, etc.

When the crash is reproducible, restart Plex, wait 5 minutes for Plex to fully start, then pull the log files. The log files will then cover the timeline of the crash and the Plex startup sequence (both are important).

Hopefully this will help diagnose why Plex is crashing when photos are added.

I just deleted the Photos library from Plex. I’ll continue to use the other libraries until they ‘upgrade’ to unusabilty, too.

Thanks for trying to help. Oh well…

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