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

I am getting that blue messaging, not red. As for that specific screencap, I don’t remember what happened around 8 hours/30+installs/reinstalls ago. I definitely did not do an Erase function, but Repair might’ve been in the mix.

EDIT: Back at my computer. It seems it created a new PlexMediaServer folder in the few hours I’d been away under the old Plex directory. I can’t seem to get Plex to run and not manually stop/crash immediately though.

@mhilferty108

Did you upgrade to DSM 7 without removing the Plex app first ?

(then maybe it Repair) ?

Nothing new will be created in the old “Plex” share.
As of DSM 7, it’s completely abandoned (DSM 7 forced changes) and is free for your use or removal as you wish).

Sounds vaguely familiar.

Which package version do you have now? 1.24.2.4973 or .5000 ?

4973 from the [PlexMediaServer-1.24.2.4973-2b1b51db9-aarch64_DSM7.spk] installer.

You’re running the same as me (same ARMv8 CPU).

What exists in the Plex share (if anything) ?

Plex is completely empty.

Good

That means it migrated.

Do you have “PlexMediaServer/AppData/Plex Media Server” with a whole bunch of directories and stuff below them (all your metadta) ?

Yes, thankfully. Wasn’t there when I originally wrote this four hours ago.

Migration (from DSM 6 → DSM 7) can take a long time. We had one user (480GB of metadata) require 2 weeks of constant running to get it done. That’s the one-time pain of this whole process. (DSM 7 changed that much)

That Blue message, which will soon says “Installation Successful!” as well :slight_smile:
is just that. Success.

The message itself is for those who are new to DSM 7 - as a reminder how to make their media accessible to PMS on DSM 7.

After a while, I’ll remove it.

So the 31.4 GB needle hasn’t moved on the PlexMediaServer folder, so I’m assuming it’s done…but I’m still getting the Manually Stopped crash happening when I try to run PMS.

Let me see those logs please ?

( PlexMediaServer/AppData/Plex Media Server)
Right-click LogsCompress to Logs.zip

download and attach please.

Logs.zip (85.3 KB)

Your database got whacked.

Sep 08, 2021 20:27:47.544 [0x7f891cdd90] INFO - SQLITE3:0x7f8a13c228, 283, recovered 7776 frames from WAL file /var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-wal
Sep 08, 2021 20:27:47.694 [0x7f891cdd90] DEBUG - Running migrations. (EPG 0)
Sep 08, 2021 20:27:47.800 [0x7f891cdd90] DEBUG - ChangestampAllocator: initialized to 3814216
Sep 08, 2021 20:27:47.810 [0x7f891cdd90] ERROR - SQLITE3:0x7f8a13c228, 11, database corruption at line 67183 of [1b256d97b5]
Sep 08, 2021 20:27:47.810 [0x7f891cdd90] ERROR - SQLITE3:0x7f8a13c228, 11, statement aborts at 21: [update activities set finished_at=started_at where finished_at is null] database disk image is malformed
Sep 08, 2021 20:27:47.811 [0x7f891cdd90] ERROR - Database corruption: sqlite3_statement_backend::loadOne: database disk image is malformed
Sep 08, 2021 20:27:47.811 [0x7f891cdd90] ERROR - Error: Unable to set up server: sqlite3_statement_backend::loadOne: database disk image is malformed (N4soci10soci_errorE)

Now is when we can take advantage of having the PlexMediaServer shared folder to it’s maximum. (glad we have it)

  1. Open the shared folder

  2. PlexMediaServer → AppData → Plex Media Server → Plug-in Support → Databases

  3. Take a screenshot of what you have and I’ll show you how you can recover

Glad to hear some optimism, because my PMS has been deteriorating since updating to the new Plex Movie Agent, but that’s a whole other issue.

Here we go. Ride the wild software :slight_smile:

  1. Delete com.plexapp.plugins.library.db-shm

  2. Delete com.plexapp.plugins.library.db-wal

  3. Right-click com.plexapp.plug-ins.library.db → Rename → add -broken on the end.

  4. Right-click com.plexapp.plugins.library.db-2021-08-31 (which looks the safest given its size but you be final judge please)

  5. Select COPY

  6. Now , in open space there, Right-click Paste → Rename

  7. Give it the new name com.plexapp.plugins.library.db (to replace the broken one)

  8. After it does that, Right-Click Properties.

  9. Verify owner is still PlexMediaServer

  10. When complete. you should have what looks to be a normal com.plexapp.plugins.library.db file which just happens to be the same size as one of your backup copies.

  11. The db -wal and -shm should no longer exist.

  12. Start the server

  13. Go into each Library section & refresh all metadata to get the db back in sync with changes since last week.

Does this make sense?

Ok…so I just updated PMS to version 1.24.2.4973-7000 just now. I had already upgraded to DSM 7 going through this process and all was fine. Only small issue is I had the “Plex Media Server” folder nested within the Plex folder. Not a big deal because all was working so I left is alone.

Now…after this update there is a new “PlexMediaServer” folder and a new share of “PlexMediaServer”. Given this am I OK to delete the “Plex” folder and all the contents within it? Both folders have a good amount of data in them. See screenshots below.

image

image

@Duke_Duchy_of_DB

Check what’s in the old Plex shared folder.

Where is that data located (which subfolder(s)) ?

I grab the entire Plex Media Server directory so there is no reason for it to be there at all.

Being on 1.24.2.4973 means you ARE in PlexMediaServer and will be here from now on.

It won’t let me select PlexMediaServer as an Owner, even after assigning PMS full control of the PMS directory.

Are you signed in as admin ?