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

@DirtyFoot

You probably didn’t see the the in-forum documentation about Plex on DSM 7.

A lot has changed and it’s about to make one :crossed_fingers: final change.

Since you have a new installation on DSM 7 (no previous data), the easiest procedure will be

  1. Uninstall the DSM 7 package + ERASE option (remove that server data)
  2. Create a shared folder named “Plex” (capitalization important)
  3. In that shared folder, create folder structure
Library/
  Application Support/
    Plex Media Server
  1. Now you place all the files from the shield (preserving directory structure) from its “Plex Media Server” directory into the corresponding one above on the Syno.

  2. When all data is transferred, you can Manual Install the package you downloaded from https://plex.tv/downloads and begin the “migration” process. It’s detail rich because of all of DSM 7’s limitations but if you take your time, it will work. Most important is: Once it starts “Installing” — let it run until it completes.

Here is the documentation which details the changes DSM 7 brought (not our choice) and what to expect to get the data into DSM 7.

There is a change coming which makes a lot more sense because more information is visible (e.g. a PlexMediaServer shared folder as prime example)

If you wish, since this is happening very soon, you can use it now if you wish .
I have released some “Forum Preview” packages in this new structure.

What you gain is you’ll start out in what will very soon be “production configuration”.

The choice is yours. Please advise.

So. my installation was stuck at the installing circle for a couple of hours. Then I cancelled it and then I removed the partial install and then re-installed after restarting the NAS.

Now everything works perfect after an hour of waiting. Prior installing I changed all rights, plexmediaserver had full rights and full control for ALL folders.

However, I got an error message. See migration log attached.

What should I now?

Migration.log (2.6 KB)

@Dateien

Plex Media Server migration to DSM 7 started:  Thu Aug 19 09:09:58 CEST 2021
=== Thu Aug 19 09:09:58 CEST 2021 === Start: Change ownership
chown: changing ownership of '/volume1/Plex/Library/Application Support/Plex Media Server/Codecs/EasyAudioEncoder-1452-linux-x86_64/EasyAudioEncoder/EasyAudioEncoder': Operation not permitted
chown: changing ownership of '/volume1/Plex/Library/Application Support/Plex Media Server/Metadata/TV Shows/0/1898b1d21cc6a8a5e36230f8171497916f22a8f.bundle/Contents/_stored/seasons/3/episodes/4/thumbs/com.plexapp.agents.thetvdb_e84d8a4575304b83c8d82c05ba066d1b0eff7877': Operation not permitted
chown: changing ownership of '/volume1/Plex/Library/Application Support/Plex Media Server/Metadata/TV Shows/0/1898b1d21cc6a8a5e36230f8171497916f22a8f.bundle/Contents/_stored/seasons/3/episodes/4/thumbs': Operation not permitted
chown: changing ownership of '/volume1/Plex/Library/Application Support/Plex Media Server/Metadata/TV Shows/0/1898b1d21cc6a8a5e36230f8171497916f22a8f.bundle/Contents/_stored/seasons/3/episodes/6/thumbs/com.plexapp.agents.thetvdb_1c4436b5313b11be0bb27a3cee3c81bcb46f0ea3': Operation not permitted
chown: changing ownership of '/volume1/Plex/Library/Application Support/Plex Media Server/Metadata/TV Shows/0/1898b1d21cc6a8a5e36230f8171497916f22a8f.bundle/Contents/_stored/seasons/3/episodes/6/thumbs': Operation not permitted
chown: changing ownership of '/volume1/Plex/Library/Application Support/Plex Media Server/Metadata/TV Shows/0/1898b1d21cc6a8a5e36230f8171497916f22a8f.bundle/Contents/_combined/seasons/3/episodes/4/thumbs/com.plexapp.agents.thetvdb_e84d8a4575304b83c8d82c05ba066d1b0eff7877': Operation not permitted
chown: changing ownership of '/volume1/Plex/Library/Application Support/Plex Media Server/Metadata/TV Shows/0/1898b1d21cc6a8a5e36230f8171497916f22a8f.bundle/Contents/_combined/seasons/3/episodes/6/thumbs/com.plexapp.agents.thetvdb_1c4436b5313b11be0bb27a3cee3c81bcb46f0ea3': Operation not permitted
chown: changing ownership of '/volume1/Plex/Library/Application Support/Plex Media Server/Cache/fontconfig/CACHEDIR.TAG': Operation not permitted
chown: changing ownership of '/volume1/Plex/Library/Application Support/Plex Media Server/Cache/fontconfig/764b928fc99aeb29558ee70263f6f1c0-le64.cache-7': Operation not permitted
chown: changing ownership of '/volume1/Plex/Library/Application Support/Plex Media Server/Cache/fontconfig': Operation not permitted
=== Thu Aug 19 09:12:39 CEST 2021 === Completed: Change ownership
=== Thu Aug 19 09:12:39 CEST 2021 === Start: Convert symbolic links
=== Thu Aug 19 09:29:20 CEST 2021 === Completed:  Convert symbolic links
=== Thu Aug 19 09:29:20 CEST 2021 === Start: Migrate Plex Media Server

This is a perfectly normal process.
It’s normal to see some straggling metadata info (partial deletion) so don’t be concerned. It’s not a fatal error. I would report if it were.

Start: Migrate Plex Media Server == It’s moving the files. Don’t Interrupt it.

It’s taking the files from their old structure in the Plex share and moving them to their new structure in DSM 7

If it gets interrupted, it can be fixed but at about 2x the time required and a whole lot of manual effort.

thanks, and it looks like its not updating anymore, due to restart of the NAS. However, everything is running perfectly fine, all the data is there, remote access works. everything.

How can I check if everything is perfect, besides the migration log?

@Dateien

Look in the Plex shared folder.

So you see Library/Application Support/Plex Media Server ??

If not, then migration is complete.

1 Like

OH, ok. It’s still there. However, it was last changed hours before I retried the installation process. I mean everything works now, all files can be played from all clients.

What should I do now?

@Dateien

Inspect all your library sections. Make certain they all have metadata.

IF everything is indeed correct, then you are most likely OK.

Synology sometimes makes a COPY of the data then deletes after.

Your Plex share might not have been fully deleted.
I have no idea why it does this. Linux rules state it should not.

1 Like

I just upgraded to DSM 7 and was asked to repair plex. I clicked repair, it gave me a popup to change permissions first. I changed that permission, giving read/write to PlexMediaServer and then went back to repair. Now it’s stuck “Repairing…” and I’m not sure what to do.

There’s no option to cancel the repair operation and I don’t think it’s actually doing anything anymore. I was going to reboot but Synology warned me that plex is uninstalling and I shouldn’t interrupt it. Not sure what to do…

After a bit more waiting, I got this:

Unable to update “Plex Media Server”. Plex Media Server - DSM 6 → 7 upgrade on Thu Aug 19 16:28:58 -05 2021.

ERROR: Unable to migrate existing “/volume1/Plex/Library/Application Support/Plex Media Server” to DSM 7. System error 0. Please consult our forums.

  • I restarted
  • Gave read/write access to my media share
  • Re-ran repair

and now it seems to be working for me

You might want to look at which version you have installed.

Package Center installs 1.21.1.3744 (which was the BETA package)

  1. It was flawed - it was beta and no longer supported. We are production release now
  2. PMS 1.24.1 is current.
  3. PMS 1.24.2 , with upgraded packaging “2.0” is about to release.

You should minimally now find that you have no more PMS metadata in the Plex shared folder.

If you do then Repair has done you a HUGE disservice. (almost always the case)

All documentation we have throughout the forum states:

  1. Uninstall the Plex app prior to DSM 7 upgrade
    -or-
  2. Uninstall the broken DSM 6 app immediately after upgrade.

DSM 7 is radically different from DSM 6 and our packaging receive a full ground-up rewrite.

Please read here before proceeding further.

Then, if you wish, please also read what is about to transpire in the updated implementation.

In the event you were using Docker or HyperBackup for your backups, the upgrded packaging easily supports docker and is directly accessible by HyperBackup

Hi @ChuckPa and all. Thanks for everything you do in this community. This is my first post here as I can normally find what I need in previous answers, but I haven’t seen this addressed so wanted to seek your help.

I’m running PMS on a DS718+. I updated to DSM 7, and I (believe I) have followed all of your instructions to the letter. The migration appears to have been successful and I have granted all of the relevant permissions to the shared folders. However, I now cannot run PMS - every time I click “Run” from the package centre I get the “Running” message very briefly before it jumps to “Manually Stopped”.

I’ve tried rebooting and re-installing without fixing the issue. What do you suggest I do next?

@ChuckPa Thanks for your help with this. I went ahead and followed your directions with success, but have a one issue I wanted to run by you…
In File Station I can no longer see any folders under the Plex folder…where I copied everything over from my Shield. Everything seemed to copy over just fine, so I realize this may not be an issue, but I just wanted to make sure all that data is somewhere before I delete it from my PC which was holding it as a middle man.

@DanS100
@DirtyFoot

I’m going to suggest to you both that you now upgrade to the new packaging so we can both FIX and CONFIRM current status.

This inability to see what’s happening -or- easily get log files has been another problematic thorn from DSM 7 defaults.

May I suggest:

  1. Uninstall + KEEP the current DSM 7 package
  2. Now install the package I post here for your machine. Do not be concerned about minor version change. It will be OK.
  1. When complete, we can go peek into the newly created PlexMediaServer shared folder to:
    a. Verify everything is indeed there
    b. Manually gather the log files – which the package installer can also do for you.

Thanks Chuck. I’ve followed those instructions and installed the new package. PMS shared folder has created and seems well populated. Log file attached - appears to be an issue with DB corruption.
Plex Media Server.log (4.1 KB)

@DanS100

OUCH! It most certainly is corrupted. I never understood how these things happen without damaging the NAS but we can still deal with it.

Now that you can see into the PlexMediaServer shared folder.

  1. Navigate PlexMediaServer/AppData/Plex Media Server/Plug-in Support/Databases

  2. There you will see the current one (com.plexapp.plugins.library.db)

  3. You should also see the backups.

  4. RENAME: com.plexapp.plugins.library.db … add -damaged to it .

  5. Copy/paste the most recent backup.

  6. This will give you a com.plexapp.plugins.library.db-date (1).db name

  7. Rename this copy to be com.plexapp.plugins.library.db

  8. Right click it → Properties → Verify owner is PlexMediaServer service, change if not.

Now when you start

  1. Rescan files, etc to make sure any changes in the last 3 days are indeed updated.

Lastly, if you wish, I have just updated the Packaging 2.0 version to be 1.24.1.4931.

You can perform a normal package upgrade (like you’ve in the past) and update to the new binaries.

To all following here:

As one final step prior to becoming official release in :crossed_fingers: 1.24.2,

I have updated the Forum Preview package version to PMS 1.24.1.4931 (current)

Please feel free to update

1 Like

Just to check… The latest Forum Preview isn’t required to be updated to as a prerequisite to the packaging becoming official in the Production release, is it?

I’m happy to wait (not update) until the packaging goes into an official release at this point so I wanted to check.

NO. The preview is not a prerequisite.

If you take the step now, you’ll already be in that new configuration when released.

That means, all subsequent package updates will be back to normal and occur in the typical 15-20-30 seconds.

For those who use automatic updating scripts, they will be free to use them again as well.

Sorry I missed answering this:

In the initial DSM 7 packaging, all files from the Plex shared folder were moved to the Synology recommended location. (it’s all that really worked at the time so was required).

I’ve since been able to work some magic in 7.0-41890 and, without major upheaval to anyone, give us a new ( albeit VERY restricted usage ) PlexMediaServer shared folder.

This is what the new packaging is all about:

  1. HyperBackup
  2. Emergency adjustments to Preferences.xml
  3. Other customizations – At the user’s risk because permissions are so fragile.