QNAP PlexData... unable to access PMS folders now

Server Version#: v1.41.2
Player Version#: Version 4.141.0

On QNAP QTS 5.2.1.2930

I have been able to access /PlexData/Plex Media Server via File Station and zip it up.
I’m getting the ill-fated “Unable to perform this action. You do not have enough permissions, or this folder is read-only.”

I’ve search forums here to no avail.
Chuck @ChuckPa (hope all has been well) I know you are a guru and have help in the past. I wasn’t sure if you have run across this in late 2024. So many posts are outdated.

I’ve tried messing around with permissions, but even enabling (admin) and logging in gives same results.

A secondary reason is to try to export my music playlists in m3u.

Would be awesome to figure out why… Thanks

Were you logged on as ‘admin’?

Thanks for replying JCHH
Yes I’ve tried system ‘admin’ and my admin

QNAP changed things on us.

FileStation doesn’t link my “PlexData” technique.

I am re-writing how it works. (it’s been a back-burner task)

If you like, I’m almost done with it and will give you a ‘plex.sh’ update (manual install via ssh) if you’re interested

2 Likes

Of course they did! LOL Good ole QNAP

That would be great Chuck when you get it complete.

Glad I wasn’t losing my mind!

Whether or not you’re losing your mind is obviously a question for a different forum

:stuck_out_tongue:

2 Likes

Hi - I’ve lost my Plex database once already and don’t want to go through the pain of it happening again so I’m eager to get the official instructions on this please :slight_smile:

Could you send over the plex.sh script please so I can incorporate backing up the database once again into my backup/rsync schedule?

This got released before Christmas.
I must have miscalculated the build schedule.

Here you go.

plex-sh.tar (20 KB)

You must be sudo privs or actual root to put into place.

Be advised - I completely changed how this works. I changed to mount --bind implementation for stability external to FileStation

1 Like

@ChuckPa
Hello Chuck and merry Christmas !!
Will this also work on QuTS Hero?
Is this planned to go into a new Plex build soon?
If so, what will happen to the existing PlexData Directory?
Thanks

@ChuckPa

Hello Chuck
Have you missed the above post?
Thanks

@broncogr

I didn’t miss the post.

  • It was the weekend
  • I’m out of hours for the month
  • Holiday

Yes, it will work with Hero.

All existing “PlexData” shared folder contents will be upgraded automatically.

  • Remove symlinks
  • Create mount point directories

@ChuckPa
Hello Chuck and thanks for taking the time to reply.
That’s great, thank you for taking the time to resolve the issue and I hope to see the fix implemented in a beta build soon.
Happy Holidays and a Happy New Year to you and yours.
Kind Regards
Andreas

I checked and it’s all ready for the next PMS build.
Whenever they cut one, it’ll be there.

For now, the plex.sh above will give you the missing functionality again
and will actually work better / as I originally intended.

2 Likes

@ChuckPa
Thank you Chuck, this restored the PlexData functionality.
This is what I did after placing the plex.sh file in the public directory

[~] # cd /share/*/.qpkg/PlexMediaServer
[/share/ZFS1_DATA/.qpkg/PlexMediaServer] # mv plex.sh plex.sh-orig
[/share/ZFS1_DATA/.qpkg/PlexMediaServer] # cp /share/Public/plex.sh .
[/share/ZFS1_DATA/.qpkg/PlexMediaServer] # chmod +x plex.sh
[/share/ZFS1_DATA/.qpkg/PlexMediaServer] # chown 0:0 plex.sh
[/share/ZFS1_DATA/.qpkg/PlexMediaServer] #

Thanks @ChuckPa that’s worked perfectly (and thanks @broncogr for the CLI context).

Hope you both enjoyed the holidays :slight_smile:

1 Like

Hi @ChuckPa

A continuation of this, hope you don’t mind being tagged in again

I can see my PlexData share through the file manager, but if I use the QNAP’s built-in backup app, the app can’t see the files (and therefore the backup is zero bytes).

As this is a special folder I didn’t want to go much further before I asked for advice in here - any tips please, for getting an automatic (rsync) backup of this folder?

Hey are you following these steps?
=>
Backing up your Plex metadata is very easy.
1.Stop Plex (very important)
2.Open FileStation
3.Click into PlexData
4.Click into “Plex Media Server”
5.Click the top selection box to select everything
6.Right click anywhere in the selected block and “Compress”
6a. Change the name from Cache to the name you want. (By default, QTS uses the name of the first entry found as the backup name.)

Checking now. Had a lot of infrastructure work to do here today.
Just getting to do my rounds in the forum.

  1. Confirming, the new plex.sh is in 1.41.4.9463
  2. Confirming, PlexData → Plex Media Server shows you all the data

PlexData screenshot as seen in FileStation

Within the confines of QTS/QuTS, rsync works as you expect

[~] # mkdir /share/CACHEDEV2_DATA/test
[~] # cd /share/PlexData
[/share/PlexData] # rsync -ah . /share/CACHEDEV2_DATA/test/
[/share/PlexData] # du -hs .
3.0G	.
[/share/PlexData] # du -hs /share/CACHEDEV2_DATA/test
3.0G	/share/CACHEDEV2_DATA/test
[/share/PlexData] # 

This procedure is still valid.

Backing up your Plex metadata is very easy.

  1. Stop Plex (very important)
  2. Open FileStation
  3. Click into PlexData
  4. Click into “Plex Media Server”
  5. Click the top selection box to select everything
  6. Right click anywhere in the selected block and “Compress”
    6a. Change the name from Cache to the name you want. (By default, QTS uses the name of the first entry found as the backup name.)

For reasons unknown, you cannot rsync from the bind-mount.
( QNAP doesn’t export bind mounts for some reason )

[chuck@lizum ~.2002]$ sudo mount "192.168.0.21:/PlexData/Plex Media Server" /mnt
[chuck@lizum ~.2003]$ ll /mnt
total 16
drwxrwxrwx  4 root root 4096 Nov 20 13:36 ./
drwxr-xr-x 34 root root 4096 Feb 22 19:56 ../
drwxrwxrwx  2 root root 4096 Nov 20 13:36 Plex Media Server/
drwxrwxrwx  2 root root 4096 Nov 20 13:36 tmp/
[chuck@lizum ~.2004]$ ll /mnt/Plex\ Media\ Server/
total 8
drwxrwxrwx 2 root root 4096 Nov 20 13:36 ./
drwxrwxrwx 4 root root 4096 Nov 20 13:36 ../
[chuck@lizum ~.2005]$ 

Hey @ChuckPa, me again bud
I decided to do a backup after posting that and just came back to look and it was still running after my post of 7 hrs ago. No bueno for some reason. cancelled

How much media do you have indexed ?
NAS model & CPU ?

Depending on the CPU, 7 hours might be on track! :see_no_evil:
I’ve seen Plex metadata directories get up to 500 GB

when mounting PlexData, windows users do have the advantage
(QNAP favors SMB ‘wide’ mounts which will descend into deeper directories quickly and cross bind / link.)