📢
UPDATE: New Plex Version 1.24.5.5173 brings some changes regarding installer and screens regarding this:

(Synology) Improve install wizard messaging and 'Plex' share detection
(Synology) Remove log file redirection option from installer

📢
UPDATE: Added info on what to do in case you get into trouble with an unclaimed or lost Plex server - "My Plex is lost! Now what?" as well as made changes to the article due to changes that came with the installer after 1.24.4

📢
UPDATE: Plex version 1.24.2 on DSM 7 brings back 'Plex Media Server' in ashared folder that will allow you to use Hyper Backup to back it up

🎁
GIVEAWAY - Be sure to check out the August giveaway for a chance to win a Plex Pass subscription!

📢
UPDATE: added info on the bottom regarding a problem with transcoding and conversion (while using subtitles for example)


📢
UPDATE: If you have already migrated to DSM 7 and have a working Plex install (following this particular article), then you might know that it is not possible to backup Plex configuration using Hyper Backup.

To get past this, the Plex team is working on a version of the Plex installer that will mitigate and solve this problem.

If you want to participate in it, use the following link, and download the package for your NAS in order to get your working DSM 7 Plex setup into a working condition to be able to backup using Hyper Backup.

This package can be downloaded from plex.tv site as part of the DSM 7 installer:

The version that supports Hyper Backup Plex configuration backup

About two weeks ago, DSM 7 came out and we were all so eager to upgrade (who could), but there is also an important note here to take away from this update.

Synology was hard at work to bring us many new features, some visible, some not so much as well as some new and exciting apps and services (C2 new lineup), but also, they made some changes when it comes to permissions and how 3rd party apps work with new DSM OS.

With DSM 7 a lot of apps got axed from being supported by the new OS, and those that will continue to work will demand the developers to adapt to the new security rules. One of those rules is that the apps can no longer run as root on the system. This leads up to this article.

PLEX vs DSM 7

While Plex team was aware of this long before the final release was pushed, there is still a process that needs to be respected in order to continue using Plex on DSM 7. In the following tutorial, I will show and demonstrate a short explanation also accessible on the official Plex.tv forums.

ChuckPa (member of the official Plex team) is the one taking credit for all the help and support that he has given all the users struggling to get this off the ground as well as tweaking the Plex install to be compatible with DSM 7.

This tutorial will focus on a bare-metal installation (not Docker), as that's the one that needs attention.

All the needed information are accessible here:

Synology - DSM 7 Release - Plex Installation Issues
This is the FULLEST POSSIBLE DETAIL instruction. Most do not need it. More info here: @fishbert The way this works – ( This is why I loathe DSM 7) Uninstall Plex for DSM 6 Upgrade to DSM 7 Reboot DSM 7 - it fixes itself at next reboot – NO clue why. NOW we can start the installation proc…
‼️
IMPORTANT NOTE: Before you rush over and install DSM 7 over your current DSM 6 with Plex already running, DO NOT do that. Read the whole tutorial and then proceed with the update.

PLEX Upgrade process

So before you start with the Plex upgrade on your DSM 6, this tutorial will start with a fresh install of Plex on the active DSM 6 instance, add a new library, just to show that all will be well with the process IF YOU FOLLOW IT to the letter.

STEP01 - running Plex on DSM 6

Use only Plex.tv versions in this tutorial

So if you install Plex on your DSM 6 setup, as always, use the Plex.tv version NOT the Package Center one!

Manual install process wizard

Open Package Center and use the Manual install button in the upper right corner. Follow the wizard to the end and install Plex.

Plex installed on the DSM 6 OS

Once you have Plex installed, access it and add some libraries to it (unless you already have this up and running).

Plex running under DSM 6 with some libraries

STEP02 - Deinstall Plex from DSM 6 (DO NOT SKIP!)

This is the step that most of you will want to start off. So you already have Plex running and you want to upgrade to DSM 7 but also have Plex up and running under it without any problems.

First, we need to uninstall it! So go to Package Center and uninstall your current working version of Plex (under DSM 6).

Uninstall Plex from DSM 6
Once uninstalled, your Plex server will no longer show any content

STEP03 - upgrade DSM 6 to DSM 7

Now that you have uninstalled Plex from your NAS, it is time to upgrade to DSM 7.

Install DSM 7 using the manual process via Control Panel
Leave your DSM 7 to install
Finishing up
Upgrade completed, DSM 7 running

STEP04 - additional reboot (DO NOT SKIP)

Even though the DSM install has rebooted the NAS, the Plex team suggests doing another reboot of the NAS before moving forward. Do it.

STEP05 - Installing Plex on DSM 7

Now we are ready to install Plex so head over to Plex.tv again and download the DSM 7 compatible Plex installation.

Make sure to use the dropdown and select DSM 7!

Before running the install, you can go to File Station to make sure that the Plex folder (where all the metadata and app files are) is still there and has some data in it.

Plex install folder still here after update to DSM 7

Now, open up Package Center and use the manual install to load up the DSM 7 Plex version that you have just downloaded.

Begin loading up the new DSM 7 compatible version of Plex
Select normal installation
You can change or not the location of logs (up to you)
Ready to install Plex, hit "done"
Be sure to add permissions to all your local media folders as instructed!

So far we have installed Plex and got a new PlexMediaServer internal account and shared folder.

Next, we need to add permissions to the "old" Plex folder and redo the install once more in order to migrate the Plex instance correctly.

STEP06 - setting permissions (IMPORTANT!!!)

Now we will need to go to Control Panel > Shared folders, and change the permissions for the Plex folder.

Edit the Plex folder and jump over to the Permission tab
Change Permissions view to System internal users

Once you are on the Permissions tab, make sure to change the dropdown menu from Local users to System internal user.

Locate the PlexMediaServer user and customize it

The account in question is PlexMediaServer. Click its Custom column, and add Full Control permissions.

Make sure to add full control permission!

Select Administration, Read, and Write permission for the user and click Done.

Once you have returned to the previous screen YOU MUST SELECT the Apply to this folder, sub-folders, and files check box!

DO NOT FORGET THIS CHECKBOX!

After you have selected the checkbox, click Save, and wait. Depending on the size of your folder and the number of files this can take some time. Be patient.

One more final save needed

Finally, click Save one more time, and you are done.

STEP07 - Uninstall Plex under DSM 7

Go to Package Center and uninstall Plex with the following option:

Uninstall Plex

Complete the process and move forward.

STEP07a - remove the new PlexMediaServer folder

Now that we have uninstalled the Plex platform, we need to remove the PlexMediaServer folder that was created in Step 07. Use the Control Panel > Shared Folders and delete it.

STEP08 - Final install and migration

Now that we have set the permissions in step 06 on the original Plex folder and have uninstalled Plex it is finally time to install it and let it run its migration.

Start a new install via Package Center and select the following option:

Run the normal install one more time

Again, run the normal install. As long as you have set the permissions as indicated in STEP05, Plex will initiate the migration and complete the installation. The only thing left to do is to add permissions to your media library folders.

STEP09 - adding permission to your library folders

In order for your Plex instance to work as expected, the Plex account needs to have permissions on all the folders that are presenting data to your instance as libraries.

So head over to Control Panel again and in Shared folders view, select the folder(s) needed and give them R/W permissions.

🗒️
NOTE: Read permissions should be enough (I use it that way), but the Plex team suggested R/W, so I did as well.

Giving R/W permissions to your media folders

Process completed

Your Plex instance should now be running with the old data and libraries waiting for you. Log into your Plex web UI or use the official app.plex.tv to check it out.

So just to recap.

  1. Uninstall Plex under DSM 6
  2. Update to DSM 7
  3. Install Plex (1st time)
  4. Set permission to the "old" Plex folder
  5. Uninstall Plex
  6. Install Plex (2nd time) and let it migrate
  7. Set permissions to your library folders for the new PlexMediaServer account

In case you get into trouble and end up with a "lost" server, continue to read down the article.


My Plex is lost! Now what?

In case you get into trouble and end up with a screen like the one below, follow the process along.

Ups! Plex is lost. Don't panic!

The main reason for this problem might be the fact that you have not executed STEP06. If you have forgotten or failed to give correct permission to your "old" Plex folder for the new account, the migration will be partial, and your server will not boot up. Fix your "old" Plex folder permissions, and then continue on.

No problem, this can be fixed.

STEP01 - uninstall the broken Plex install

First, got to Package Center and uninstall Plex by using the following option:

This will remove all the elements needed.

Next, remove the PlexMediaServer shared folder. If you don't upon reinstall it will not detect the "old" Plex folder and start the migration.

‼️
WARNING: DO NOT REMOVE THE "Plex" FOLDER. THAT'S THE ORIGINAL FOLDER THAT NEEDS TO GO THROUGH THE MIGRATION PROCESS!

STEP02 - Reinstall Plex again using the claim token

Start a new install using the Package Center and select the second option, Install using Plex Claim Token

Click the blue Get Plex Claim token url to get it and paste it back into the installer

Be sure to click the Get Plex Claim Token link to get the token, copy it, and paste it back into the wizard.

Copy the value back to the wizard

Finally, continue forward with the installation until you see this information:

Process completed! Well done!

The message should list your Plex.tv account name, saying that the migration is complete and you have claimed your server back. All is well.

🗒️
NOTE: In case the last image comes up with an "empty" name, just use the Plex server web UI, go to your server, and claim it there.

Make sure that the "old" Plex folder is empty and has just the Migration.log file in it.

The content of the "old" Plex folder should look like this

Problems with transcoding

In case you start to watch something with subtitles for example and get the following error there is a solution for it.

The problem is the metadata. Use your library menu and open Manage Library > Refresh All Metadata.

I know that permission should have been migrated from the old Plex folder, but in case you get this error, just redownload the new meta and the problem will go away. Obviously running without any subs, there will be no problem.

Conclusion

As you can see the process is straight forward, not much that can go wrong if you stick to the "script". If you have already rushed and updated to DSM 7 without uninstalling Plex beforehand, you will have to consult the Plex forums for more details and potentially some help on the matter.

As said before, uninstalling Plex before DSM 7 update is crucial, and if you do it that way you will be up and running in no time. Good luck!

Feel free to comment and share your experience with the rest of us!