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

Ok so was it because I made the directory in bash instead of through the DSM?

Yes. you need DSM to sanction the shared folder for me to query against.

Sounds good. Just made it in the DSM and moving the Library file to it through Bash. Hope that will work…

This worked like a charm, thanks you’re a lifesaver! What an amazing Plex Support God. Lol

1 Like

Ok how can I verify it worked? I kjnow have a PlexMediaServer shared folder. But when I open Plex I still don’t see any indication that the old metadata or history is in there.

Which package did you install?
Did your installation take an appreciable amount of time?

I don’t think it took a terribly long time…

image

I picked the second file.

If there is still data in the Plex share then it did not migrate.

You must have forgotten to Uninstall + Erase the errant DSM 7 installation perhaps?

I am assuming i did something wrong…

How can I make sure everything is properly erased?

Yep. majorly something wrong.

  1. verify case of the shared folder name on the file system? Plex ?
  2. verify you did Uninstall + ERASE option of the initial DSM 7 package ?

Please also confirm with me which package we’re using here.

Plex.tv/downloads is the old structure.
Forum Preview is the new.
The two are not compatible EXCEPT the new scripting can move from the old location automatically.

Please attach the Migration.log (if it exists – but I don’t think it does) in a ZIP file

Yes I believe when I uninstalled the DSM verson of Plex I chose to erase everything with it. Plex folder does have a capital P

I got the package from DSM 7 - Packaging 2.0 (PMS 1.24.2.4973) - Release information - #2

there is no migrations log.

If you have no Migration.log then it didn’t migrate.
This is confirmed by the data still being there.

This established, It will not overwrite an existing installation which is why I require the operator intervention to ā€œEraseā€ the old data when uninstalling (safeguard)

Therefore, did you remember to delete the PlexMediaServer shared folder through DSM ?

yes and it came back with the new install.

The one which came back with the new installation is that which was DSM 7 created. It belongs and has proper ownership.

You, as administrator (only) should see there is an AppData directory` along with a ton of Warning files :slight_smile:

If you want to migrate this manually, the process is as it seems:

  1. Stop PMS
  2. Perform a manual migration
sudo bash
cd /volume*/PlexMediaServer/AppData
rm -rf "Plex Media Server"        <-- this is the errant / empty one
mv "/volume1/Plex/Library/Application Support/Plex Media Server"  .  
chown -R PlexMediaServer:PlexMediaServer ./Plex\ Media\ Server
  1. don’t miss the dot in the mv command :wink:

  2. from this point on, you can’t use the Plex server on Ubuntu without creating a new Preferences.xml file (new server ID number set)

  3. Go to each of the shared folders containing media. Make certain System Internal User PlexMediaServer has permission to read the shared folder(s)

  4. Start the NAS PMS in Package Center.

  5. Open the NAS by LAN IP address http://ip.addr.of.syno:32400/web

  6. Stop the scanner if it’s running.

  7. Settings - Server - Library

  8. Turn off ALL automatic library functions (you need to change the media locations)

  9. For each of your library sections
    a. EDIT the library section
    b. ADD the new Synology location – DO NOT delete yet
    c. OK
    d. Observe as PMS scans each section and refreshes the location. You will likely see a ā€œ2ā€ indicator on the poster.
    e. When done, EDIT the section again.
    f. REMOVE the old Linux location
    g. OK that
    h… Observe another scan as the dupes are removed
    i. When complete – Empty Trash, Clean Bundles, Optimize Database
    j. Repeat the above for the next library section to update.
    k. When all are done, re-enable the automatic library settings as you had them.

Welp… I have totally hosed this. I got it installed, logged into my account but it doesn’t recognize the server. I uninstalled and created a new Library name to maybe start from scratch but can’t get that to recognize it either. It’s a 1520 and just updated to DSM 7.

@mbrichter

All is not lost.

First step. let’s get it recognized.

  1. Uninstall the Plex app – KEEP option
  2. Download from Plex.tv
  3. Manual install WITH ā€œUse Plex Claim Tokenā€
    a. Click the ā€˜Get Plex Claim Token’ hyperlink
    b. Plex.tv will open in a new tab
    c. Click ā€œCOPYā€
    d. Switch back to the Syno window
    e. PASTE the claim-xxxxx string into the window
    f. click NEXT
  4. Click through taking the defaults and let it install
  5. It will spin 15-30 seconds while the installer talks to Plex.tv and PMS.
  6. It will then finish install and tell you the server has been claimed to your Plex username.

Now you can open and find it :slight_smile:

Thanks. That’s exactly what I just did using : PlexMediaServer-1.24.2.4955-d26a2afaa-x86_64_DSM7.spk. When it got to step 6 it was looking for me to start adding folders.
I will uninstall and try again. Thx

Follow the steps here, don’t overlook any of them. It’s a permissions issue.

@ryan_revlogical_com

ALL:

I am going to comment on that How-To.

I would NOT give PlexMediaServer FULL CONTROL of my media and I’m the engineer! :slight_smile:

  1. Give READ ONLY unless you intend to write
  2. Give READ/WRITE for those places you want to save DVR files

IF you give Full Control

-and-

You leave ā€œAllow Media Deletionā€ enabled in your Library settings (which is default)

-then-

ANYONE can click ā€œDeleteā€ after watching your content.

Is this what you want?

This is Linux, and DSM 7 is restrictive. We all need to take some time to adapt to it before resorting to a ā€œNo Holds Barredā€ posture.

Wouldn’t you agree?

It is your machine and you can always do what you want but I think this is a reactionary step to not understanding what happened in DSM 7.

The same reactions occurred in PMS 1.15.4.994 (DSM 6) when PMS was no longer an Administrator on the box.

1 Like

Apologies, I’ve been at this hours trying different things I’ve seen online and in these forums. Just trying to get a fresh install of PMS on DSM 7. Can’t get it to run. Log file below. Any help is MUCH appreciated. I have followed all the instructions I’ve seen to start fresh and nothing has worked. Thanks.

Aug 28, 2021 21:42:24.116 [0x2e83fd48] INFO - Plex Media Server v1.24.2.4955-d26a2afaa - Synology DS215j armv7l - build: linux-armv7neon synology-dsm7 - GMT -04:00
Aug 28, 2021 21:42:24.117 [0x2e83fd48] INFO - Linux version: DSM 7.0.41890-0, language: en-US
Aug 28, 2021 21:42:24.117 [0x2e83fd48] INFO - Processor Arm
Aug 28, 2021 21:42:24.117 [0x2e83fd48] INFO - Compiler is - Clang 11.0.1 (https://plex.tv e0c29d5827bc4eaaa2ceb882cbeed224b0960173)
Aug 28, 2021 21:42:24.118 [0x2e83fd48] INFO - /volume1/@appstore/PlexMediaServer/Plex Media Server
Aug 28, 2021 21:42:24.122 [0x2b5ade90] DEBUG - BPQ: [Idle] -> [Starting]
Aug 28, 2021 21:42:24.127 [0x2b5ade90] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Aug 28, 2021 21:42:24.128 [0x2b5ade90] DEBUG - Installing Library Database from ["/volume1/@appstore/PlexMediaServer/Resources/com.plexapp.plugins.library.db"] to ["/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db"]
Aug 28, 2021 21:42:24.128 [0x2b5ade90] ERROR - Couldn't copy file "/volume1/@appstore/PlexMediaServer/Resources/com.plexapp.plugins.library.db" to "/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db": Invalid argument
Aug 28, 2021 21:42:24.402 [0x2b5ade90] DEBUG - Running migrations. (EPG 0)
Aug 28, 2021 21:42:24.402 [0x2b5ade90] ERROR - SQLITE3:(nil), 1, no such table: schema_migrations in "select version from schema_migrations order by version"
Aug 28, 2021 21:42:24.405 [0x2b5ade90] ERROR - Database corruption: sqlite3_statement_backend::prepare: no such table: schema_migrations for SQL: select version from schema_migrations order by version
Aug 28, 2021 21:42:24.405 [0x2b5ade90] ERROR - Error: Unable to set up server: sqlite3_statement_backend::prepare: no such table: schema_migrations for SQL: select version from schema_migrations order by version (N4soci10soci_errorE)