My Plex server crashed so here is how I migrated the information over.

First Steps

Server Information

  • Old Server
    • User: plex
    • Media Content
      • /PLEX
    • Database/Metadata
      • /var/lib/plexmediaserver/Library/Application Support
  • New Server
    • User: PlexServer
    • Media Content
      • /media/root/8e0e4980-0e2a-4183-d10b2b9c4329/Data
    • Database/Metadata
      • /var/lib/plexmediaserver/Library/Application Support


  • Connect the non booting hard drive to the new server and copy the media content
  • I created symbolic link to “trick” the system in thinking the data is stored in /PLEX
ln -d -s /media/root/8e0e4980-0e2a-4183-d10b2b9c4329/Data PLEX
  • Next stop the service
systemctl stop plexmediaserver
  • Rename the old /var/lib/plexmediaserver/Library/Application Support/Plex Media Server to OLDPlex Media Server
  • Copy the Plex Media Server folder to /var/lib/plexmediaserver/Library/Application Support
  • Now since the user is different I need to change the permissions
chown -R PlexServer:PlexServer '/var/lib/plexmediaserver
setfacl -R -m u:PlexServer:rx /media/root
  • We also need to edit the plexmediaserver.service file (kinda)
systemctl edit plexmediaserver
  • Enter this information with the correct info
  • Now start the server
systemctl start plexmediaserver

If the service will not start be sure you added the User and Group into the plexmediaser.service file via the command above

  • Be sure to edit each of your Plex libraries to update the correct path to your content
  • If you get any errors check out /var/log/syslog
  • Browse to the server IP to register your server to Plex

Note: Be sure to do the above url on your SERVER not from your computer. I tried http://IPADDRESSOFPLEXSERVER:32400/web and that did pull up the login for PLEX however I could not access the server settings. You must do it locally on the server.

When I went to the address above with the port 32400 I got the following message:

This is normal and can take several hours depending on your database size

After getting that same Maintenance message above for 24 hours I decided to reboot the server and was then able to access the server however I needed to Grant Access

Once signed in click the wrench in the upper right corner and find Settings>General

I had to click Claim Server to connect this server to my plex online account

Once that was done I edited each library to my new /PLEX location

If you have issues connecting then you may want to clear your preferences.xml file located at

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml

Locate the following 4 values and clear them out





Restart the service or reboot the server and try to connect the server to Plex online again