Synology FAQ - Questions, Answers, and How-To's

FAQ 32: Repairing the PlexMediaServer shared folder

While DSM 7 manages the permission of the PlexMediaServer shared folder itself, it does not manage the permission of files placed inside.

This means any modification of permissions can cause PMS to fail.
Frequent causes:

  1. Placing media in the shared folder – Which should NEVER be done. This is for PMS internal (metadata) use only.
  2. Special allowed case of adding plug-ins but must be installed correctly.

One of the biggest confusion points with DSM 7 over DSM 6 is username change

DSM 6 uses regular username Plex
DSM 7 forced the name to be changed to System Internal User (application) PlexMediaServer

Mistaking these two leads to dire results.

In the event anything is awry in the shared folder (as viewed using FileStation),
an easy method to confirm all file system ownership and permissions are correct is to create and run this task in Task Scheduler.

Create the task in Task Scheduler → User-defined Script

Screenshot from 2022-12-07 16-12-57

  1. Username to run as: root
  2. Email you the results:
  3. Task settings (script) contents:
#!/bin/sh
cd /var/packages/PlexMediaServer/shares/PlexMediaServer
chown -R PlexMediaServer:PlexMediaServer  AppData &
find AppData -type d -exec chmod 755 {} \; &
find AppData -type f -exec chmod 644 {} \; &
wait

Screenshot from 2022-12-07 16-16-27

Run the task

  1. Run the task
  2. Wait for it to send you results in your email
  3. (re) Start PMS.

Go to Index

1 Like