Difficulty migrating PMS from QNAP to Ubuntu

Server Version#: 1.22.2.4282
Player Version#:
Hi, I have PMS running on my QNAP NAS and have had it set that way for many years without issue. I am in the process of migrating PMS (and other apps which run on the QNAP) onto a Ubuntu VM as the hardware in the QNAP is outdated and I don’t want to upgrade it as it still provides excellent storage speed.

The destination is a Ubuntu 20.04 LTS VM and I am trialling Quickbox, so PMS is installed and updated via QB.

I’m following the following article:

TL;DR I am doing the following:

  1. Disable emptying of trash on QNAP PMS
  2. Sign out and stop PMS on Ubuntu VM
  3. Rsync data from QNAP PMS to Ubuntu VM: rsync -vrzu admin@192.168.1.1:/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/ /var/lib/plexmediaserver/
  4. Chown Ubuntu PMS directory to plex:plex: chown -R plex:plex /var/lib/plexmediaserver/
  5. Reboot Ubuntu VM
  6. Start PMS
  7. Open PMS Web App
  8. Edit libraries

That’s where I am getting stuck.

My VM has the QNAP Videos folder mounted with /etc/fstab to /mnt/videos and can read and write to the NAS. The issue I am having is when I am editing on the new PMS instance the Libraries and putting in the new path it doesn’t see anything, it’s acting as if it’s a player only and still being served from the QNAP NAS.

Have I missed something obvious? Do I need to sign out and close the PMS app on the QNAP? If so I didn’t spot that in the documentation.

If I may provide some clarification? (think this is what you’re missing)

The rsync source and target directories need adjusting.

  1. On QNAP: /share/*/.qpkg/PlexMediaServer/Library/Plex Media Server
  2. Ubuntu: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server

"/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/"

"/var/lib/plexmediaserver/Library/Application Support"

If you’re moving for the first time then there is no need to update (-u).
You’ll also spend more time compressing than just sending the files raw.

May I suggest? (On the Ubuntu side)

sudo bash
cd "/var/lib/plexmediaserver/Libary/Application Support"
rm -rf *
rsync -av "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/" .

This does a full copy, recursion is the default, and drops it “here” (dot) which is under “Application Support”.

The resultant final path for your Preferences.xml (as a quick confirmation)
/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml

Your original commands would have included the executables.
On Ubuntu, application and data are split locations.

1 Like

Thank you. I’ve performed the above steps and when logging in I still can’t see the locally mounted NAS files when I go to edit the library location, it still shows the QNAP file structure. If I stop the Plex app on the QNAP NAS and log into Plex on the Ubuntu VM it tells me that the server QNAP is unavailable.

I’m pretty sure I’ve found the issue, I wasn’t claiming the Plex server on the Ubuntu VM.

I’ve moved the data and I’m at the step of signing out of the ‘Quickbox’ server and signing in again. Once I sign out of the new server I can’t sign in again, I can only see the old QNAP (which is unavailable as I stopped the app). @ChuckPa are you able to offer any help please?

@ChrisD

If it’s not remembering what you did then the very first thing I look at are:

  1. Ownership - Linux gets: plex:plex
  2. Permissions - Directories get: 755, Files get: 644

I’ve worked it out, the directory in your code is wrong, it is missing the /Plex Media Server/ directory from the end. Cheers.

Not sure how it would be wrong / different but I am glad you worked it out.

You had:

sudo bash
cd "/var/lib/plexmediaserver/Libary/Application Support"
rm -rf *
rsync -av "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/" .

The rsync should be done into the “/var/lib/plexmediaserver/Libary/Application Support/Plex Media Server” directory.

DOOH. :man_facepalming:

I grabbed from my backup script . It sits at the parent directory (which is the volume) and copies to the remote mounted volume. This way, on the QNAP, /share/CACHEDEV2_DATA/tv gets copied to Synology /volume1/cachedev2/tv

#special distributed full reload
# Now handle tv separately
echo ============  Television =======================
$Command tv/[0-9A-H]* /tmp/a/tv & 
$Command tv/[I-S]* /tmp/b/tv & 
$Command tv/[T-Z]* /tmp/c/tv & 
$Command tv-nodata testing /tmp/c & 
wait

(this is how I get around the limits of LACP on a 4x 1GbE Syno)

Not to worry and thanks for your input. I’d rather work something out myself than have my hand held and your post certainly pointed me in the right direction (wrong directories being the cause of my headaches all along).

I’m reverting to the QNAP PMS for now anyway as my current VM host doesn’t have an iGPU to pass through so it’s actually slower (even with 8vCPU assigned) as it can’t hardware offload, I’ll try again perhaps tomorrow once my new host arrives which has a usable iGPU to use.

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