PMS Migration Install Fail

I’m sorry I’m confused about what I am supposed to do, must be my sleep deficiency lol

So, I should name the 2 servers differently?
I’m supposed to fix the path of my libraries and keep my metadata
But I have 2 servers instead of 1
In one of my last posts I thought maybe copy the windows registry to the preference.xml would change something?

Not to fear. I used to manage with a newborn and toddler in the house :rofl:

In “Authorized Devices” (I am sorry for the name confusion), you will see your servers in the servers button as I show here.

Yes, Servers should have different names to make it easier on you as to which is which.

If the Windows one has now been retired, you can delete it.

Here is my authorized devices page.


You can see I have 2 ds418 entries. I should delete the older of the two.

Now, I have gone to the oldest one (the previous test installation I had) and deleted it (red X)

I understand but excuse my cluelessness or if I’m not making sense, but if I delete the windows server, won’t I lose my libraries? And I’ll be stuck with a new empty server?

I’m supposed to be migrating my pms from windows to centos without losing my metadata and my libraries I’ve had for the last 6 years

I’m wondering if witchcraft and human sacrifice would be easier :joy:

Forget sacrificial rituals. The next full moon is not until May 18th…

Let’s rewind?

  1. The windows version of this server - Alive or now shutdown?
  2. This Linux instance? If windows is alive, will Linux be the new master or a clone?

They are 2 different computers

  1. The pms on windows is shutdown, until I figure out the transition, then it will be deleted

  2. The pms on Linux will be the main server. Though I don’t know the difference between master or clone, but I believe it should be a copy of #1

Damn and I was itching for a sacrifice! The next full moon is too far :joy:

For now, with Windows shut down, Delete the Windows one.

Now close and reopen the brower.

You will find the Linux one.

Rename it’s friendly name (Settings - General) to something which won’t collide with Windows.
Make it it’s own host (by name). It already has a new ID number.

After the windows one is deleted,I’m trying to understand how will my metadata magically appear and how will i manually update the path to my libraries if it’s deleted?

let’s rewind a little bit, i feel like i lost you in the tunnel after we’ve encountered a million issues along the way and i don’t blame you :crazy_face:

had my PMS on a windows desktop pc for 6 years, let’s call it the ‘old’ one.
got a used linux server where i installed centos 7, let’s call it the ‘new’ one.
i’m trying to migrate (or copy or clone?) my old pms to my new one and keep all my metadata, watched status and libraries.
i don’t want to make a new server from scratch and start from 0. i have wayyyy to much stuff

On the Linux machine,

  1. Settings - Server - Library
    a. Turn off Automatic update
    b. Turn off Empty Trash
  2. For each library section - EDIT the section
    a. Add the new directories
    b. Do NOT delete the old Windows paths yet. (this preserves your metadata)
    c. Save the changes to that edit
    d. Scan files for that section
    e. Observe the numbert 2 displayed for each item as it’s found.
    f. When all media found (all show the 2)
    g. EDIT the section again
    h. Remove the Windows path(s)
    i. Scan files again
    j. Watch the “2” disappear
    k. When all files are free of the “2”, “Empty Trash”
    l. “Clean Bundles”
    m. Proceed to the next Library section.
  3. When complete:
    a. Enable Empty Trash
    b. Enable Automatic scan / detect
    c. Perform full scan one final time
    d. Optimize database

The above is from memory.

This is the same procedure, fully detailed once the host has been cloned (which is what occurred here)

thank you Chuck i know how to update manually my libraries (i’ve done it a few times in the last few years when i’ve switched HDDs), the thing is, there is no libraries to update on the dashboard

What about if I copied the database?
com.plexapp.plugins.library.db
Would that help me keep my metadata & my libraries?
If yes, where would I put it on the centos system?

The metadata isn’t stored in the DB file. It’s in the directories and files under Plex Media Server/Metadata

I think I realize what happened here.
I think the settings:

  • Update automatically
  • Empty Trash after every scan

were on at the time the DB was zipped from the Windows machine.

If this is true, the easy resolution here is:

  1. Shut down Linux for a minute
  2. Go back to the windows machine
  3. Turn off those options
  4. Shut it down
  5. ZIP the metadata (Library) directory structure again
  6. Bring it over one more time
  7. Delete the existing Library (on Linux)
  8. Unzip on Linux
  9. Change ownership and permission
  10. Stop the Windows machine
  11. Start the Linux machine
  12. Now edit the media paths

Ok and in post 21, we did change the path of the metadata (/Library) on the linux to /home/plexdata.

so when you say in step 1. shut down linux for a minute, you do mean shut down the pms right?

alright let’s do this

i have a question concerning the damn permissions in step 9 :roll_eyes:

I did chown -R plex:plex /home/plexdata just to make sure

if i check the permissions of /home/plexdata

sh-4.2# ls -la /home/plexdata
total 0
drwxr-xr-x. 3 plex plex  21 Apr 15 17:20 .
drwxr-xr-x. 8 root root 123 Apr 15 17:20 ..
drwxr-xr-x. 8 plex plex 108 Apr 27 01:57 Library

but if i check the permissions of /home/plexdata/Library/Application Support/Plex Media Server/Metadata

[aurelie@localhost Metadata]$ ls -la
total 0
drwxrwxrwx.  6 aurelie aurelie  65 May  2 02:18 .
drwxr-xr-x.  6 aurelie aurelie  74 Apr 26 02:49 ..
drwxrwxrwx. 18 aurelie aurelie 150 Jul 23  2015 Albums
drwxrwxrwx. 18 aurelie aurelie 150 Jul 23  2015 Artists
drwxrwxrwx. 18 aurelie aurelie 150 Aug  9  2015 Movies
drwxrwxrwx. 18 aurelie aurelie 150 Sep 23  2015 TV Shows
[aurelie@localhost Metadata]$ 

is this normal?
aren’t all the subdirectories supposed to be plex:plex with chown -R plex:plex /home/plexdata?
maybe that could be the reason my metadata isnt taken into account?

so i’m on step 9 on stand by because i don’t trust my metadata permissions are right before moving forward

edit: aha eureka! it was the damn spaces

chown -R plex:plex /home/plexdata/Library/Application\ Support/Plex\ Media\ Server/Metadata

i think that worked because when I

ls -lahR /home/plexdata/Library/Application\ Support/Plex\ Media\ Server/Metadata

every file comes up as plex:plex

i’ll start plex and see if my libraries come up

well, that was a fail… i guess i’ll never be able to have my old libraries and metadata back, it just keep coming up as a new empty server. i’ll just have to grieve and say goodbye to years of data :sob:

thanks for your much needed help Chuck i’ve learned a lot in this process even if it didn’t work :slight_smile:

If your files are there, don’t give up. Library path could be wrong (typo, missing /, space: double check).

Phil

Thanks Wile for your optimism

There’s only 2 weeks left until I make a human sacrifice :joy:

I know going from an OS to another wouldn’t be easy, but I don’t know what to troubleshoot anymore to make it work without losing everything lol

how should i remove the zip? would the code be:

rm -rf /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/PMS.zip

i don’t want to keep my 20gb zip in it and i just want to be sure i am only deleting the zip and nothing else

“-rf” means recurse and force. No need for a single file( and if you type the path wrong, you might delete a lot). If you want to be absolutely positive you don’t fat finger it and delete something you don’t want to delete, navigate to where that file is and just "'rm {filename}.

ah thank you Phil that helped understand the difference!

and thanks again for your optimism, you can say you saved a human life, i won’t need to make a human sacrifice on the next full moon, i’ve finally got it :stuck_out_tongue:

i’ll post all the steps i did once i’m done updating my libraries, in case anybody needs them in the future