Plex crashes Synology after an hour or so when scanning files

Server Version#: Version 1.16.6.1592
Hi Folks
I am having a major issue when Plex is scanning my audio files.
If I tell plex not to scan my music library (Around 48,000 tracks it works fine for weeks on end.
However if I ask it to scan my media files, after some variable time from an hour to three or four, the NAS becomes uncontactable, and I get an emails from Synology saying the connection to the NAS has been lost, and the only way to access it is by unplugging it and plugging it in again.

Any suggestions for a potential solution would be appreciated.

Do I post the whole Plex log zip, or just a small part for help ? (Yes I am a newby at NAS work!)

Would you mind helping us to help you by sharing some information?

  1. Which Synology model?
  2. Did you add extra memory to it?
  3. Do you have any other Packages running concurrently ?
  4. (important) How is your media organized? Is it in Artist / Album / [Disc n /] 01 - title.xxx structure ?
  5. Please further detail what you mean by unplugging? Pull the power cord or ???

When providing logs, It’s always best to give us as much as possible The ZIP is the best so we can cross compare with the other files contained there-in. We also ask to keep DEBUG logging enabled and VERBOSE logging disabled. VERBOSE is so extremely verbose that we only see 2 minutes of elapsed time.

I have 57000+ audio files and , because i’m extremely retentive about curating the names, it scans them very quickly and PMS is always stable in that regard. With a little investigating, we’ll figure out what’s happening here.

Many thanks for your offer of help.
Model is DS118

No extra memory added (I don’t think you can on on that model)
Here is the list of the installed applications:

Media is orgnised as: Artist/ Abum/ Track Artist - Title.mp3
Every tracks has correct MP3 tag information. (Artistname, album name, track name, track number, album artist. )

Physical unplugging it, counting to five and plugging it in again seems to be the only way to gain access to it again.

Plex Media Server Logs_2019-08-29_21-59-36.zip (5.0 MB)

Please clarify this: Unplug the power or the network adapters?

Unplug the electrical supply.
Not tried unplugging the network cable - will do that next time it crashes.

And I have just enabled the Debug options in the logs. So next time it crashes I will post the next set.
Additonal information, pressing the power button on the NAS does not turn it off. It just stays flashing blue and doesn’t power down.

Please stop Unplugging the power. This is the worst thing you can do.

Plex uses a database. Abrupt power off will totally scramble it.

Thanks for your logs,

This is a small, 1 GB memory NAS unit. Your logs show me what’s happening.
I see right away what the problem is: It’s overloaded in the extreme.

Aug 29, 2019 17:10:20.941 [0x7f5540d1d0] DEBUG - NAT: UPnP, found device <http://192.168.0.1:5431/dyndev/uuid:24a7dc2f-3218-1832-2fdc-a724a72f180000> with private address <192.168.0.38>
Aug 29, 2019 17:10:21.136 [0x7f9da591d0] WARN - SLOW QUERY: It took 290.000000 ms to retrieve 43 items.
Aug 29, 2019 17:10:21.136 [0x7f5540d1d0] DEBUG - NAT: UPnP, usable device <http://192.168.0.1:5431/dyndev/uuid:24a7dc2f-3218-1832-2fdc-a724a72f180000> with private address

DSM (the OS) is so backlogged, most likely due to lack of memory that it’s swapping applications (you have too much running in that limited 1GB of RAM). As the direct result, PMS needs almost 5 minutes to respond to a single request which should take milliseconds.

In order for DSM to shut down orderly (pressing the blue button), It will likely need some 15 minutes to terminate the applications because Linux (what DSM is based on) must bring them into memory so it can terminate them properly. Does this sound about right?

Under normal operation, with ample memory, and not overloaded, DSM will power off in about 3 minutes.

Running PMS, Video Station, Media Server, and all those other apps are consuming precious memory.

Does the disk drive constantly trash / blink / rattle when you are using it?

Ok to the hard reset. I had left it shutting down for ten minutes or so before pulling the plug,but will leave it longer next time.
It’s certainly accessing the drive a lot when it’s doing the scan, but not at other times.
Which of the applications would you recommend that I uninstall ?
Edit The resource monitor says that my CPU is around 50% and memory at around 80% utilised.

Stopping all the other prccesses and going to leave it running over night to see what happens. Thanks for your help :smiley:

Video station has fewer capabilities than Plex (it has minimal codecs and very very limited).
I would take it out. If you are using DLNA a great deal, use the Media Server for now. PMS DLNA has a memory leak which Engineering is trying to locate.

Well you were right on all counts! The NAS did shut down properly when I left it alone for a while.
I shut down all the other running processes and left the NAS alone while Plex was doing the media scan, and eventually the library was scanned perfectly.
Everything is now running perfectly.
Thank you for all your kind help.

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