Plex Media Server - Synology DSM 7 Preview - Issues ( Archive )

Hey ChuckPa. First, thank you for all you’re doing here. It is MUCH appreciated. I migrated using your instructions last night. Everything went well. Everything was running great with users watching content. But I woke up this morning to an offline Plex Media Server. Looking at the Synology Package it said “Manually Stopped”. I checked the logs and it seems that it crashed about 4 minutes after the 2:00a maintenance window. I hit run on the package and every started up fine and is running again. Maybe a one time fluke. I’ll keep an eye on it and see if it happens again tonight. I’ve attached the system log from that period. It abruptly ends at 2:04a.

com.plexapp.system.log.zip (17.6 KB)

@Parity

Would you do me a favor please?

  1. SSH / Putty into the box
  2. as ‘root’ (not admin)
  3. cd /volume*/Plex (get into the shared folder)
  4. find ./Library/Application\ Support/Plex\ Media\ Server/Meta* -print | wc -l

@Scurrah

Thank you for the report.

That singular agent log is insufficient.
I need the full ZIP file you are given after it restarts.

The full zip will show me , in the rollover log, what it was doing at time of failure.

:man_facepalming:

You turned off DEBUG logging , thinking you were saving space ?

Logs are fixed size. (5 files - 10 MB each)

With exception of this – which is a VERY good indicator, there’s nothing else I can debug.

Jun 29, 2021 20:03:39.009 [0x7f26a2362b38] WARN - JobManager: Could not find job for handle 16786
Jun 29, 2021 20:03:41.174 [0x7f26a2362b38] WARN - JobManager: Could not find job for handle 16864
Jun 29, 2021 20:03:43.225 [0x7f26a08f9b38] INFO - Refreshing paths watched by LibraryUpdateManager
Jun 29, 2021 20:03:43.229 [0x7f26a0a6ab38] ERROR - [Notify] Failed to add watch for "/volume1/Movies/#recycle" (13: Permission denied)
Jun 29, 2021 20:03:43.229 [0x7f26a0a6ab38] ERROR - [Notify] Failed to add watch for "/volume1/Movies - Other/#recycle" (13: Permission denied)
Jun 29, 2021 20:03:43.229 [0x7f26a0a6ab38] ERROR - [Notify] Failed to add watch for "/volume1/TV Shows/#recycle" (13: Permission denied)
Jun 29, 2021 20:03:43.953 [0x7f26a2362b38] WARN - JobManager: Could not find job for handle 16333
Jun 29, 2021 20:04:10.033 [0x7f26a017cb38] WARN - SLOW QUERY: It took 400.000000 ms to retrieve 30 items.

Problems shown here:

  1. More than 8192 directories being watched – NOT a problem; easily remedied
  2. The database / something needs cleaning up (400ms for 30 items is excessive). The DB should provide 500-1000 items in 15-20 ms.

Solutions:

  1. Cleaning up the DB – Optimize the DB after you Empty Trash and Clean Bundles. Also make certain these run during Scheduled Maintenance times.

  2. We have a How-To to adjust that 8192 folder limit (it’s a linux limit).

Let me now if anything isn’t clear.

Thanks!

@Parity

Thank you. #ThatsaLottaSchtuff LOL

I will count what I have when music library loading is complete.

I just read through this whole thread and I still don’t know what direction to follow. I just upgraded my DSM to 7. I logged back in, I was told by the UX to upgrade PLEX. Fine, did that, was told permissions needed to be granted. Fine, did that. Now it says “Failed to repair ‘Plex Media Server’ blah blah blah see the forums”.

Reading all of this just confused me more – what am I supposed to do, now that I’ve gotten this far, to enable my plex server once again?

It’s in the “Plex Media Server - Install” screen inside of DSM where the upgrade took place. It put up an alert box giving me a System error 0 for settings.

After I had done the DSM6->7 upgrade, at the top of my installed packages was an “Attention Required” message telling me to upgrade my plex, and that’s how I got here.

Hi, sorry if this is the wrong place (newbie) I installed dsm 7 plex, and now do not have a plex share user in my ftp settings or control panel permsiions?

The dificulty is that I was using cif shares to my vuplus enigma box to connect to my hard drive where all my programmes and movies are located on the enigma box.

Now one of two plea’s. Either I’m doing a connection wrong to the enigma box (on same network (example please)) or is there a full guide on installing the plex server (beginners) on dsm 7, allowing access to another network share on an enigma box. Any help would be really, really grateful. Many thanks!

@rickeames

System error 0 means that there was a permission problem somewhere down deep in the metadata and it could not complete cleanly.

On a few very rare occasions, I’ve seen the error 0 ( 0 means success) show as an error with a proper migration.

Is your Plex shared folder mostly empty ?
( Does Plex / Library / Application Support / Plex Media Server still exist ?

It does still exist.

@rickeames

OK.

  1. Uninstall the Plex DSM 7 package.
  2. Restart DSM
  3. Now install.

In most cases… the UPGRADE (looking at the top blue indicator on the GUI) is the root of this problem.

A clean install of the SOFTWARE (having kept your data safe)

Please advise progress.

PLEASE BE MINDFUL

  1. in the light blue margin at the top.
  2. INSTALL… not upgrade

This is critical.

If it does not start migrating, then we will tell the package to clear out the DSM 7 area and migrate again.

Uninstalled, Rebooted, “Joined Beta”, Installed, same error.

(edit) I chose “uninstall only”

Joined Beta? What’s that?

After deleting PLEX, I got to the packages section and search for PLEX. I get a UI that says “join beta” where the “install” would be. clicking that does an install.

Oh … that’s the problem!!!

The package Synology has is not compatible with DSM 7 release.
They have not updated it yet.

Please do the following.

Uninstall KEEP
Download from Plex
Manual Install that one.

@parity.

I added 12956 songs (219000 metadata files for all media).
Migrate time was 40 minutes on the ARMv8 (DS418j)

You’re between a rock and a hard place now.

I can help you through this – but no guarantees.

Best case – it’s one bad metadata file – which SHOULD have blown up hours ago with ERR_MAXPATH…

Worst case – the file system is corrupt

Middle ground – you never cleaned out before and are paying for it now.

I can force it. You will then need inspect everything. If you find a section is bad – you must delete that library section and perform a proper cleanup before re-creating.

You up for it?

DSM v7.0-41882
Plex v1.23.4.4712-7000

Once I implemented the security change, the upgrade/install of DSM 7 and Plex went fine.

Moving past the install issues reported here, these are the Plex functionality problems I found so far. Never had these problems with DSM 6.

When fast forward or rewind video more than 30 seconds or so, video hangs and circle spins. Sometimes it freezes completely and I have to reboot.

Some videos go to black at random times. Sometimes they come back, sometimes I have to go to home and back to restart the video.

Resuming a video fails about 50% of the time.

Loading some videos that loaded fine with DSM 6 no longer load. Circle spins.

Plex Functionality Issues are Out of Scope for this thread. This thread is about the physical OS & PMS installation on that OS.

Please create a new general issue thread.

@ChuckPa - I’m up for it! I’m not sure that I have too many other options, haha! :slight_smile:
I’m about 18 hours into the migration, so it must be some bad metadata. The file system should be okay, as I ran a check on that not too long ago (I have various checks scheduled to run at a set schedule).

I’m all ears for the next steps! :ear::ear: :grin: