Re-installed Ubuntu Server 20.04, having trouble restoring metadata from backup

Server Version#: 1.25.2.5319-c43dc0277 amd64
Player Version#: Web UI
Some preliminary information; I copied the entire /var/lib/plexmediaserver/Library/Application\ Support to the location /media/sda on a separate SSD on the computer before I re-installed Ubuntu. Then, after re-installing Ubuntu, I used the cp command to copy the directory /media/sda/Plex\ Media\ Server to the directory /var/lib/plexmediaserver/Library/Application\ Support in an attempt to restore my metadata and settings from my previous install. I followed this guide but I am still getting an error when I attempt to start the server after just pasting in the old metadata to the newly created directory.

The error I am receiving looks like this

The exact command I used to paste over the old metadata was: sudo cp -rfv /media/sda/Plex\ Media\ Server /var/lib/plexmediaserver/Library/Application\ Support

The plex user and plex group has ownership of the new directory that I pasted in

If there is any additional screenshots or logs I can provide I will do so.

Is /media/sda

  1. Mounted via /etc/fstab
  2. Has exec option specified in the mount options in /etc/fstab

/media/sda is not mounted via /etc/fstab, but I don’t think it needs to be? I just needed it because my backup was stored on there, I am not trying to move the plex meta data to that location. My mistake if what you are saying is going over my head.

@980870

I’m sorry, I thought you wanted /mnt/sda to be your Plex App Support Dir location.

Having copied the files back to their original location in /var/lib/plexmediaserver, they probably have the wrong ownership (happens when you use cp without sudo cp -rp )

As first step.

sudo chown -R  plex:plex /var/lib/plexmediaserver

This will take everything in /var/lib/plexmediaserver and reset all the ownership to the default username plex:plex

If you changed the runtime username to something else, please adjust accordingly in the chown command.

You are the bomb, that fixed it, can not put into words how happy that makes me.

Whats odd is that in my original post I specified in this screenshot that I had already checked and confrmed that the folder /var/lib/plexmediaserver was owned by user plex and group plex. But somehow it still wasn’t working. Then after I entered that command and restarted it suddenly works? Odd.

Regardless, Thank you so so so much for your time and knowledge. Happy holidays to you mate!

Thank you for your patience,.

It’s been “one of those weeks” already

Best of the Holidays to you!

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