Synology: DSM 7 Installation Archive -- Archived from main thread

A few points then we’ll get into solving your server

  1. Please don’t use the Package Center app (which tells you it’s Beta) but is about to be updated by Synology to 1.24.5 (production to match DSM 7.0.1 final release)

  2. When you state you were able to migrate, do you have a “Migration.log” in the old “Plex” shared folder AND now have PlexMediaServer/AppData/Plex Media Server ?

  3. How are you trying to open the server? You state http://:32400/web which isn’t specific. Are you using your LAN address (which is 100% safe to post) or are you attempting to use the WAN IP ?

  4. If you don’t have a “Migration.log” Please confirm you still have “Library/Application Support/Plex Media Server” ? (I think you did but want to make 100% certain.

  5. Lastly, The 1.25.0 release of PMS contains a Database upgrade , which is quite substantial, and does take anywhere from 5-20 minutes to complete (it’s in the Release Notes)

@ChuckPa My NAS is DS1019+. This morning, per instructions in the migration thread, I uninstalled Plex from my DSM 6, verified “Plex” share, and updated to DSM 7. Then changed the logout timeout and restarted DSM 7 again. After restart, I manually installed the downloaded “PlexMediaServer-1.24.5.5173-8dcc73a59-x86_64_DSM7.spk” package. Step 2 of the migration thread says that the install will fail on the first try. Mine did not fail. Within a matter of a few seconds it was done with the installation successful message. The PlexMediaServer user and share are there. The permissions look right to me. Nothing was migrated from my old “Plex” share. There is still 65 GB in there, and in the new “PlexMediaServer” share there is only 4 MB. Accessing the server at http://:32400/web/index.html presents a screen as if the server is being set up as brand new with nothing present in it as of yet.

There is no “Migration.log” file in the old Plex share at all. Please advise.

EDIT: I applied the Full Control permissions to the Plex share as in step 3 of the migration page. Uninstalled/reinstalled the package listed above, but same result - successful after a few seconds and no migration or log for it.

EDIT 2: I did an uninstall of PlexMediaServer using the erase option. Now changed both the Plex an the PlexMediaServer shares to have Full Control for the PlexMediaServer user (which was still there even after the erase). Manual install of the package again, and it appears to have removed Full Control but left read/write intact on the PlexMediaServer share. That’s probably expected. Now it is showing the spinning “Installing” screen for a long time. So, I assume it is doing something, but I still do not see a Migration.log file anywhere. Using ssh to the NAS, I see these processes on it:

root@ds1019:/volume1# ps -eaf | grep -i plex
root     15378 19753  0 09:54 pts/0    00:00:00 grep --color=auto -i plex
PlexMed+ 21180 20993  0 09:46 ?        00:00:00 /bin/sh /var/packages/PlexMediaServer/scripts/postinst
PlexMed+ 21183 21180  0 09:46 ?        00:00:00 /bin/sh /var/packages/PlexMediaServer/scripts/dsm7-file-moving
PlexMed+ 21202 21183  0 09:46 ?        00:00:00 find /volume1/Plex/Library/Application Support -maxdepth 5 -type d
PlexMed+ 21203 21183  7 09:46 ?        00:00:34 /bin/sh /var/packages/PlexMediaServer/scripts/dsm7-file-moving

but they don’t appear to be doing anything.

EDIT 3: Took a long time, but the Migration.log file has shown up in the Plex share. I am doing a Linux “tail -f” on it to monitor. So, will update this post with more info as necessary later.

EDIT 4: Except for the two “No such file” messages, it looks like I have a successful migration.

Plex Media Server migration to DSM 7 started:  Wed Nov 24 11:17:28 CST 2021
=== Wed Nov 24 11:17:28 CST 2021 === Start: Change ownership
chown: cannot dereference '/volume1/Plex/Library/Application Support/Plex Media Server/Metadata/Albums/5/d668d0ccd7f533966ce640eaf5bc4c888fa69ab.bundle/Contents/_combined/tracks/57dfeba6ab6837edb3ae5d3cd13d377966dec08c/lyrics/com.plexapp.agents.lyricfind_b32c8922c53192b83bf8327dda9788904dcb88bf': No such file or directory
=== Wed Nov 24 11:20:02 CST 2021 === Completed: Change ownership
=== Wed Nov 24 11:20:02 CST 2021 === Start: Convert symbolic links
ln: failed to create symbolic link '/volume1/Plex/Library/Application Support/Plex Media Server/Metadata/Albums/5/d668d0ccd7f533966ce640eaf5bc4c888fa69ab.bundle/Contents/_combined/tracks/57dfeba6ab6837edb3ae5d3cd13d377966dec08c/lyrics/com.plexapp.agents.lyricfind_b32c8922c53192b83bf8327dda9788904dcb88bf' -> '': No such file or directory
=== Wed Nov 24 12:14:11 CST 2021 === Completed:  Convert symbolic links
=== Wed Nov 24 12:14:11 CST 2021 === Start: Migrate Plex Media Server
=== Wed Nov 24 12:37:11 CST 2021 === Completed:  Migrate Plex Media Server
=== Wed Nov 24 12:37:11 CST 2021 === Completed:  Migrate Plex Media Server
=== Wed Nov 24 12:37:11 CST 2021 === Start: Clean /volume1/Plex
=== Wed Nov 24 12:37:21 CST 2021 === Completed: Clean /volume1/Plex

The server is up and running. I assume I can remove the Plex share and user now.

@SilvrDrgn

Step 2 , telling you it will fail, is if/only if you don’t have a previously failed “Repair” or DSM 7 Beta installation.

How it works:

  1. Install looks for PlexMediasServer/AppData/Plex Media Server
  • If this exists, do nothing , just update the software
  1. Install next looks for /volume*/@apphome/PlexMediaServer/Plex Media Server (which should be a successful & viable server) to move to PlexMediaServer/AppData
  • If this exists , move the data to PlexMediaServer/AppData and finish software install
  1. Lastly, neither of the above two conditions being true.
  • Look at the Plex shared folder for Plex/Library/Application Support/Plex Media Server
  • If it finds one, Engage “Migration”.
    –Check for Full Control permission granted to PlexMediaServer for the “Plex” share
    –ERROR if not (this is the typical error everyone sees at first installation)
    –Check the remainder of permissions (nested folders, etc) before beginning the migration work
    –Migration work - change ownership, Find and remove legacy hard links from really old plug-ins in favor of path-relative links for the somewhat newer agents which prepares them for final update by the new Scanner and Agents (which use text files)

It’s this “migration work” which will take about 2-3 minutes for each 1000 items you have indexed (based on an ARMv8 CPU). Items = Movies, episodes, songs, and photos.

With that in mind,

  1. Confirm you still have metadata in the Plex shared folder you need migrated
  2. IF SO, Uninstall + ERASE to remove the rogue DSM 7 caused by Repair (you need to push it around until finally removed)
  3. Actual Migration will sit there “Installing” AND create Migration.log
  1. This is what I am using for the PMS install: PlexMediaServer-1.25.0.5246-cb2507e4d-x86_64_DSM7.spk

  2. I did have a migration log but in the last attempt it is not in there any more. I downloaded it to view though:
    Migration.log (1.0 KB)

  3. Sorry about the missing address. I used a MD code and it erased it in the post. I am using http://navi:34200 and 192.168.150.58:32400. Both give same failed result.

  4. I still have Plex/Library/Application Support/Plex Media Server

  5. The install did take awhile.

I have tried several times in different ways, so I fear I may have mixed things up. I’m willing to do a “start over” clean install, but want to know the best way to do that if necessary. I will leave it as is until I get more information

Thank you

Thanks for the log.

Migration did not complete.

chown: changing ownership of '/volume1/Plex/Library/Application Support/Plex Media Server/Cache/fontconfig': Operation not permitted
=== Mon Nov 22 22:28:25 MST 2021 === Completed: Change ownership
=== Mon Nov 22 22:28:26 MST 2021 === Start: Convert symbolic links
=== Mon Nov 22 22:35:52 MST 2021 === Completed:  Convert symbolic links
=== Mon Nov 22 22:35:52 MST 2021 === Start: Migrate Plex Media Server

Did you interrupt or otherwise restart DSM ?

It should look like this

Plex Media Server migration to DSM 7 started:  Sat Oct 30 15:26:16 EDT 2021
=== Sat Oct 30 15:26:16 EDT 2021 === Start: Change ownership
=== Sat Oct 30 15:29:45 EDT 2021 === Completed: Change ownership
=== Sat Oct 30 15:29:45 EDT 2021 === Start: Convert symbolic links
=== Sat Oct 30 15:34:41 EDT 2021 === Completed:  Convert symbolic links
=== Sat Oct 30 15:34:41 EDT 2021 === Start: Migrate Plex Media Server
=== Sat Oct 30 15:34:41 EDT 2021 === Completed:  Migrate Plex Media Server
=== Sat Oct 30 15:34:41 EDT 2021 === Completed:  Migrate Plex Media Server
=== Sat Oct 30 15:34:41 EDT 2021 === Start: Clean /volume1/Plex
=== Sat Oct 30 15:34:41 EDT 2021 === Completed: Clean /volume1/Plex

If you interrupted, All we need to do is Uninstall + ERASE to clear out the failed migration ( KNOWING everything still exists in the “Plex” shared folder )

Supplemental

chown: changing ownership of '/volume1/Plex/Library/Application Support/Plex Media Server/Cache/fontconfig': Operation not permitted

This error confirms you missed a step in the Permissions changes to allow “Full Control”

After Uninstall + Erase, With all your metadata still in the Plex shared folder
Perform these steps.

@Tyrios

We might have to do a custom migration depending on how badly it is broken – in order to bring the two pieces back together,

@ChuckPa
As you stated. I DID incorrectly assign permissions. This time I used the Checkbox instead of just looking at the setting within the Permissions edit box. I was able to see the permissions cascading down the folder hierarchy. Yay!

Migration (1).log (693 Bytes)

But still same error. Or Failed to load. ERR_CONNECTION_REFUSED when attempting to go to the navi:32400/web

Curiously I am able to access the server from my Plex Web app and I see all my media! Which is the most important part! I will retry my TV app connections and verify them.

Not sure what to think of the above error or if it is worth pursuing since I manage PMS from the web app. thoughts?

And as always, A heartfelt thanks for your response and assistance!

Thank you for that Migration log – Success there! :slight_smile:

Please grab the PMS logs ZIP file and attach it. Let’s find out why it’s arguing.

Plex Media Server Logs_2021-11-24_11-39-46.zip (115.5 KB)

My TV apps and phone did not connect to PMS.

UPDATE: Turned on Remote Access and can now access it remotely…who knew? LOL :upside_down_face:

That MIGHT help a little bit

:rofl:

@Tyrios

You have both adapters connected to the same LAN subnet.
Unless you bond them or disconnect one, leaving ONE IP address, this will be a problem. DSM will interchange the two adapters at will and confuse Plex.

Proper TCP/IP practice is ‘one adapter per subnet’. There’s nothing preventing you from creating the bonded adapter which satisfies the requirement and gives you the added availability.

Nov 24, 2021 10:54:06.656 [0x7f924a4ca6e8] DEBUG -  * 3 eth0 (192.168.150.57) (loopback: 0)
Nov 24, 2021 10:54:06.656 [0x7f924a4ca6e8] DEBUG -  * 4 eth1 (192.168.150.58) (loopback: 0)

When in the configuration you have here, it’s common for LAN players to have connection problems AND remote access problems.

That makes too much sense! I will resolve that. Thanks

@ChuckPa
Still struggling, even after bonding the interfaces. I attached latest logs. I see a couple things that may be related to issue?

Nov 24, 2021 14:15:41.409 [0x7fd51add0b38] DEBUG - HTTP requesting GET https://plex.tv/api/v2/user?includeSubscriptions=1&includeProviders=1
Nov 24, 2021 14:15:41.466 [0x7fd52066b6e8] DEBUG - Detected primary interface: 192.168.150.57
Nov 24, 2021 14:15:41.466 [0x7fd52066b6e8] DEBUG - Network interfaces:
Nov 24, 2021 14:15:41.466 [0x7fd52066b6e8] DEBUG -  * 1 lo (127.0.0.1) (loopback: 1)
Nov 24, 2021 14:15:41.466 [0x7fd52066b6e8] DEBUG -  * 5 bond0 (192.168.150.57) (loopback: 0)
Nov 24, 2021 14:15:41.466 [0x7fd52066b6e8] DEBUG - Creating NetworkServices singleton.

That looks right, but then…

Nov 24, 2021 14:15:42.885 [0x7fd51b62ab38] DEBUG - [EventSourceClient/pubsub] Network: 192-168-150-57.abcdefghijklmnopqrstuvwxyz012345.plex.direct failed to resolve to 192.168.150.57 but instead yielded ""

?
Plex Media Server Logs_2021-11-24_14-24-56.zip (287.8 KB)

@Tyrios

That looks a WHOLE lot better.

I did two things for you.

  1. I removed the 2 year old (not seen) server from your account to avoid any possible confusion by the apps.

  2. I reset your server certificate (it should have been OK but I reset it anyway).

Please restart the server and force-restart the apps (Plex/web : Control-F5 to force restart AFTER the server is up and running for 30 seconds)

Hi- just wanted to post that perhaps something has changed with the latest PMS versions that makes it no longer engage migration if the PlexMediaServer does not have access to the old “Plex” share. I followed your instructions to the letter, but when I got to Step 2 here (DSM 7 - Plex Media Server - Release Info & Migration instructions - #6 by ChuckPa), I did not receive any error or any notification about migration. Installation just said it completed successfully and tried to setup a new Plex Media Server. No migration logs.

I then went through and set the appropriate access privileges per Step 3 in those instructions.

After that, I went through this thread and followed your instructions to uninstall with the erase option and try again.

Everything then worked!

You might want to consider putting a footnote on step 2 of your instructions regarding what to do if there are no migration messages because you have to uninstall with erase to engage the migration assistant on subsequent installs.

Thanks for your work on all this.

@Lanky24

The installer does the following:

  1. Does an existing server exist in “PlexMediaServer/AppData” ?
  • Yes -
    – Install software as if upgrading.
    – exit “Successful”

  • No -
    – Continue with Step 2

  1. Does an existing server exist in the hidden area (from the Beta app)?
  • Yes -
    – Silently move the installation to its proper (final release) location in “PlexMediaServer/AppData”
    – exit “Successful”

  • No -
    – Continue with Step 3

  1. Does the “Plex” shared folder exist ?
  • No -
    – Setup as a new server
    – exit “Successful”

  • Yes - continue with step 4

  1. Can the existing “Plex” share be checked for the existence of an existing Plex server ?
  • No,
    – Exit with error and Raise error popup (Full Control instructions)
    – ( This is the start of Migration )

  • Yes,
    – Continue with Step 5

  1. Does an existing (DSM 6) server exist in the “Plex” share?
  • No,
    – Nothing to migrate
    – Setup a new server in the “PlexMediaServer” shared folder
    – Exit “Successful”

  • Yes,
    – Check permissions deeper into th Plex share to ensure successful migration.
    – ERROR popup if not and EXIT

  1. All permissions requirements satisfied, writing progress to “Migration.log”
  • Begin migration
    – Change ownership from “Plex” to “PlexMediaServer”
    – Change metadata links to comply with new structure
    – Move “Plex Media Server” directory to “PlexMediaSerer/AppData”
    – Remove all Plex-created files and directories from the “Plex” share – Without deleting any user files.
  • Exit “Successful” with “Migration completed” message.
1 Like

Would it make sense to post the above with the migration documentation?

The user permissions were already set properly. Here is another thing I always have problems with, When I go to log into the NAS server sometimes it doesnt even show up . here is a pic of what it looked like this morning. NO donatelloNAS showing up

And to make it even weirder. There is a server I created along time ago called "not the server"as a test - and it won’t let me delete it when you go to manage libraries😩

Here are my shared folders have the correct permissions and here are a few other shotsl. I want so bad to get this working for Movie night tonight

!!

Another pic that may help you understand my mess