Moved Plex Library - Not Playing

I have multiple Synology NAS devices. I have one I typically use for Work, one for a plex media server, and one as a backup.

My NAS that is used for my Plex server was having connectivity issues. I made a directory on another NAS and moved all library items and plex media server library folders to another server.

I factory reset the server for my Plex media server. I reconfigured it and reinstalled plex. It is working correctly on the network.

I moved the folders back to the Plex NAS.

Plex does not seem to want to play or recognize most of this library or directories.

Any help or guidance on how to rectify this? I’m guessing it is a simple fix but not too familiar with what I should do.

Moved the media ?

Did you reassert all the permissions ? (UID/GID – USERID – of “PlexMediaServer” can be different from host to host. On DSM 6 machines, USERID of ‘Plex’ will almost always be different virtually guaranteed )

Additionally. When cross mounting media, it’s important to give ‘Everyone’ read-only permission and use NFS mounting. SMB between two Syno machines is painful to use

Moved the media ?

Did you reassert all the permissions ? (UID/GID – USERID – of “PlexMediaServer” can be different from host to host. On DSM 6 machines, USERID of ‘Plex’ will almost always be different virtually guaranteed )

On my synology NAS I have a share/directory named “Media” with sub folder for Movies, TV Shows, Etc.

I also have a share/directory for “PlexMediaServer” that is/was created by PLEX I believe.

I literally just moved both directories via a a PC file explorer from one Synology NAS to another. Then reset the original NAS and moved them back.

So no, did not reassert permissions. I was guessing there may be something like that or along those lines, but no idea what that is and how to do that.

Plex has full access to the shares on the NAS.

Any thoughts on how I should help resolve this?

This is VERY important. Confirm for me please -

Did you move the Plex shared folder contents (DSM 6) or the PlexMediaServer shared folder (DSM 7) from host to host using a PC ?

This is very likely the problem.
You can’t just move stuff around via Windows on a Synology NAS.
SMB file permissions will break Plex.

There is a way to fix it once I know precisely what state it’s in.

Both Plex servers were running on Synology NAS’s that are running DSM 7

Moved by having mapped directories on my PC and literally just doing a drag and drop from a mapped system drive to another mapped system drive from NAS to NAS, just used the PC as the intermediary.

Sorry I did not know this would be an issue, I thought this would be a reasonable way to do this, but apparently not.

Windows PCs use SMB protocol. Ownership and permissions won’t have been preserved at all in the ‘Drag & Drop’ because SMB doesn’t understand Linux permissions.

By copying, you have a mirrored clone of the first.
If this is desired. and you’ll never have both on at the same time. then OK.
If you want both on, that’ll need addressing.

The steps you’ll need to do (there’s quite a few)

  1. Stop Plex

  2. Run this Scheduled Task to set the file ownership and permissions for all files (Plex’s internal files) which are in the PlexMediaServer shared folder.

  1. After you receive the notification email of the task’s successful completion.
    – Open FileStation
    – Navigate to PlexMediaServer
    – In the left panel, Right-Click PlexMediaServer → Properties → Permissions tab

  2. Ensure PlexMediaServer shows here.
    – If not, click Create, search down the list for PlexMediaServer
    – Click anywhere else once to close that popup (it’s a bit fussy)
    – Grant Read-Write permission to PlexMediaServer

  3. Your final permissions minimally will have PlexMediaServer listed
    ( I have myself because of my development work )

  4. In the lower left corner Apply to this folder, sub-folders and files - Check the box.

  5. Click SAVE

When it’s complete, the permissions of the PlexMediaServer shared folder will be repaired.

I urge to NOT put anything in that folder as the permissions are easily damaged and will result in failure like what you see.

Make sense ?

I did as described above. I see my library. I get this error when I attempt to play a piece of media.

Any thoughts?

image

I think I know what’s wrong now.

Down in the metadata are path-relative symbolic links.
These are something else that SMB protocol doesn’t understand.
(Windows symlinks aren’t the same as Linux symlinks)

Give it a “Scan Files” and a “Refresh all metadata”

If that doesn’t work, I have a procedure which will work but is more involved.

Seems to still be giving me the Playback Error.

Any thoughts on the next step to try?

This is time for the PITA step to repair all the internal files.

  1. Create a shared folder named Plex
  2. Create folders Plex/Library/Application Support
  3. Move “Plex Media Server” to Plex/Library/Application Support

This creates a DSM 6-style directory structure which is ready for migrating again

  1. Uninstall + Erase the existing and now empty DSM 7 installation
  2. Perform the following Permissions setting changes (“Scenario 2”)
  1. Lastly, Install again and allow DSM/ PMS to migrate the data.
    – In this migration. it will fix all the symbolic links which it can.

  2. After Install is complete (Do not intterrupt it),
    – Scan Files
    – Refresh all metadata on each library section

Okay starting on step 1-4 or so now.

Will let you know how that plays out.

@mgohring

Are you moving the Entire “PlexMediaServer” shared folder

OR

Moving (AppData/) Plex Media Server (the internal folder) → Application Support ??

You only want the final structure:

Plex / Library / Application Support  /  Plex Media Server /  <Preferences.xml.. etc>

You do NOT want the PlexMediaServer shared folder.

Thanks!!! I was about to do this wrong apparently. Stopping and adjusting.

It is still scanning media but I played something and

1 - it played, that’s a win.

2 - it played from the previous stopping point, or at least remembered where to resume.

It appears that worked. It is still scanning and updating but looking promising.

Excellent.

It makes sense that it will need to go through everything in the DB and recheck/update as appropriate.

Given that it’s playing tells me the symbolic links which were damaged during the SMB move have been recreated correctly (part of what the DSM 6 → DSM 7 process does)

If you look at “Plex/Migration.log” you’ll see the Symlinks step and the amount of time it needed to fix things.

Just a follow up. This all worked. All is functioning as it should.

Thanks a bunch for the help.

Now I just need to think of a better way to manage for a backup or migration at a future date, but just happy to be up and running again.

Matt

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.