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

Hello ChuckPa !

First, many thanks for the “tar” command who help me to backup “./Plex Media Server” folder in DSM 7.0 Hyper Backup could not help in this case

The backup was made correctly and the file is huge with almost 54 Gb !

So, because of a single disk change soon, where plex is installed, i will need to reinstall it from scratch.

So my question : what is the command to restore (untar) ? Should I create a “Plex Media Server” by myself ? what is the “tar” cmd ?

is this the only thing i need to backup by the way ? My media is curently on another volume so medias will not move.

EDIT : Sorry if my request is a bit out of the box :wink:

Again thx for your help and for your work.

:-*

When you “untar” :slight_smile:

(all this runs as ‘root’ in the tasks)

  1. the creation is:
cd /var/packages/PlexMediaServer/home
tar cf /volumeX/sharename/PlexBackup.tar .   
  1. Now we reverse the process
  • Install Plex if needed

  • Stop Plex

  • again, as ‘root’ in the task , we eXtract from the archive

# Get into the directory
cd /var/packages/PlexMediaServer/home

# move the unused new installation out of the way then start deleting.
mv "Plex Media Server"  Plex-Unused
rm -rf Plex-Unused &

# extract the entire contents of the archive  (which starts with `./Plex Media Server` right here )
tar xf  /volumeX/sharename/PlexBackup.tar

# Make certain the ID numbers didn't change  (OS reinstall loves to change them)
chown -R PlexMediaServer:PlexMediaServer "Plex Media Server"

When this finishes,

  1. The unused space (usually very small) will be gone.
  2. The restore will be complete
  3. The User/Account ID numbers will match the current DSM installation

=====================================

In related news. we are talking with Synology to see if/how HyperBackup can provide backup capabilities for all of DSM 7’s apps in this new storage structure.

Too early to say anything so please don’t speculate or cross your toes yet…

1 Like

A message of hope to all of you waiting for hours for the install process to end. Here is an extract of my migration log: 14h for the ownership change and I’ve moved up to the symbolic links conversion… Not through and a handful of errors, but CheckPa’s promise keeps strong…

@Arnaud_lefevre

Would you mind making a ZIP file of that

AND

If it’s less than the forum limit, post here so I may review ?

FYI, you WILL get through it.

I can’t imagine how much media you have. World’s Record perhaps ?

Which model is that please? DS-SlowestBoat ? :smiley:

When this is over,

We are going to have a chat about the importance of “Clean Bundles” :smiley:

1 Like

OH come on, ChuckPa: don’t be demeaning to my poor DS918+. I counted 180’000 files in my various Plex shares (most being pictures, rest being… well… you know…). And 7y worth of visioning for my 5-people family. We are happy campers very happy with our life-worth Plex Pass :slight_smile:

Many thanks !

ONLY 180,000 media files? :scream: :rofl:

One thing I do see is the inability to deference.
That tells me you have dead “bundle” (metadata) files for media you no longer have.

My recommendation is to be “religious” about making sure the maintenance tasks run to Empty Trash, Clean Bundles, and Optimize the Database.

An installation such as yours , even with that J4125 quad core (beefiest one out there) is going to take time .

At 180,000 media files indexed, with an average of 10 (some more , some less) metadata entries for each file…

:sleeping_bed: comes to mind while it finishes up those ~ 1.8 million files

…OR…

:wine_glass: :cheese: :partying_face:

:slight_smile:

1 Like

I updated to DSM 7 2 days ago, had uninstalled Plex, downloaded the latest version from plex.tv and installed it…then restarted the NAS several times (even waiting hours in between), but I still don’t see a “Custom” option in the permission settings for the shared folder.

I tried proceeding with the install (both attempting to use the /volume1/Plex folder and use the other “internal folder” option, but in either case I get the error that the PlexMediaServer user does not have enough permissions to continue.

After each failure Plex does not show up as an installed app, so I can’t try another “remove” process.

I’d appreciate any and all ideas…

@DJFlip

How long has the Plex share been in existence?

Has it been present since DSM 5 ?

You will not be able to use the automation to migrate without “Custom”
To that: Are you signing in as user admin or a user with administrative privilege?

You need to use admin. If you’ve disabled it (which is good), re-enable it for this migration and give it a usable password. You can disable later.

Hi ChuckPa, very happy to report that it went through and finished migrating just before sunrise without further error. 20h process…

Thanks for the ride and excellent support, most appreciated!

Thanks for getting back to me @ChuckPa

I believe that plex share was setup since DSM 6 (previously I had used a docker version of plex) but not 100% sure. Would that entail a different procedure?

I am using the admin account…

Is this something I can get around by modifying the permissions via an ssh terminal?

Thx so much for the reply, appreciate the help.

@dbmgreen

I had an idea… (:running_man: :bomb: ) :slight_smile:

  1. Create a new shared folder – Name it “Plex2”
  2. After creation, make certain you have CUSTOM when you EDIT the permissions

If you do, I have an idea

  1. Copy the entire contents of the Plex share → Plex2 share (potentially HOURS to do)

  2. After completion, Using Control Panel - Shared Folders –
    a. Rename “Plex” to “Plex-old”
    b. Rename “Plex2” to “Plex”

  3. Now try that migration and applying “Custom” permissions to give user “PlexMediaSever” full control.

This potentially doubles the migration time for you so please think carefully.

The NAS cannot be shut down / restarted in the middle of either step.

If this works then we’ve uncovered a VERY subtle flaw in DSM. Whatever it is, I don’t know if Synology could reproduce / find it.

More than happy to give this a go of it would be helpful. So far, I seemingly have Plex installed and running on DSM 7; however, server doesn’t show up on my list of authorized devices. Go figure. I have noticed that, a few times over the course of the day (I’ve gone through your recommended installation a few times…haha), when I’ve attempted to have the Serb added from my synology, I receive the “not authorized” page

@jforbush

If you’re running on DSM 7…

but it doesn’t show up on your list of servers.

  • Check Settings - Authorized Devices. Make sure you don’t have a dupe there.

You might have two instances now – The old UUID for DSM 6 and the new UUID for DSM 7.

As for not authorized, may I have log files or are you completely locked out?
If locked out; uninstall & keep then “Install using Claim Token” method to pull it into your account. If this fails, I will do digging into the account

re: authorized devices, the only plex server listed is the one I literally just added on my MacMini. Well, I don’t have the logs as the servers aren’t listed; however, I’ll do the uninstall & keep then “Install using Claim Token” method and fill you in on success/failure.

re: uninstall…which of the 3 options are you recommending?

Since the Plex metadata is now in a root folder which is difficult to access, what happens when we want to migrate the metadata to another device 2+ years down the road? Will there be an easy way to export the data for a transfer by that point? Would I be better off installing a Plex container in Docker where the metadata is more accessible?

@Sully_Plex

There are already longer term plans being discussed.
I’m unfortunately not able to discuss it at this time.

If you need to export now, the task is as creating a tar backup which is shown above but will help

If you want to use Docker now,

  1. With the PlexMediaServer packaga installed and stopped,
  2. Create a docker container definition which points the PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR to /var/packages/PlexMediaServer/home

I am still trying to catch up with DSM 7.0-41890 release (41222 → 41882 → 41888 → 41890).

If you’ll bare with me, I will help with a viable answer unless someone from the community wants to jump in and help as Docker is not my forte and DSM 7 removed Docker from my DS418

@jforbush

Options are:

  1. Keep == Touch nothing. Remove only the programs. This is equivalent to DSM 6 behavior. It’s also why I set it as the default (so you can change versions without fear)

  2. Sign Out == As it means. Sign out so you can change account the server runs under.

  3. Erase == Delete all the server information currently stored in PlexMediaServer. This is how you “start over”. It is a non-recoverable, fully destructive, operation.

The option I suggest for you:

  • Uninstall and sign out.

This keeps all your existing DSM 7 data.

  • Install – Using Plex Claim Token.
  1. Click the ‘Get Claim Token’ to get a token and then paste in the window provided.
  2. The installer goes out to Plex.tv with that token, authenticates, then configures the “Preferences.xml” to be attached to your account.
  3. When completed, it prints who the server was claimed for in the installation message window.

I added the Plex Claim Token method for a few reasons:

  1. you have multiple servers on the LAN
  2. you might not have the flattest (single subnet) LAN
  3. your LAN addressing might not be RFC-1918 compliant.

The Claim Token method provides secure claiming in those environments without need to do any keyboard typing.