DSM 7 - Synology Photos shared folder issues with Plex - Please read

ALL:

Anyone who cannot use the default Synology photo share with Plex… please respond here with logs which capture this (permission denied shows in logs)

Internal system user has read/write permission on shared folder “photo”. But in Plex I do not see any photos. Clicking on “read media files” produces the following error in the console:

Error scanning directory, we’ll skip and continue: boost::filesystem::directory_iterator::construct: Permission denied: “/volume1/photo/Sabine”

On Control Panel > Shared Folder there is no possibility to add “Custom” permissions (only read/write) and also no way to "Apply to this folder, sub-folders, … ". Please see attached screenshot

Log files please which show PMS failing?

I am working with Synology to resolve this. They tell me everything works. We seem to disagree :slight_smile:

your screenshots look like DSM 6.
I am on DSM 7.0-41890

Jul 26, 2021 22:34:00.155 [0x7f7b39e1a0] Fehler — Unknown metadata type: folder
Jul 26, 2021 22:34:00.193 [0x7f234431a0] Warnung — Error scanning directory, we'll skip and continue: boost::filesystem::directory_iterator::construct: Permission denied: "/volume1/photo/Sabine"
Jul 26, 2021 22:34:00.194 [0x7f234431a0] Warnung — Error scanning directory, we'll skip and continue: boost::filesystem::directory_iterator::construct: Permission denied: "/volume1/photo/MikeUser"
Jul 26, 2021 22:34:00.194 [0x7f234431a0] Warnung — Error scanning directory, we'll skip and continue: boost::filesystem::directory_iterator::construct: Permission denied: "/volume1/photo/Lukas"

Ok so I bit the bullet and upgraded my DS220+ from DSM 6.2 to DSM 7.0 following most of the instructions provided by a WunderTech video and of course, ChuckPa’s extensive works on this issue. Here is my experience:

Downloaded the relevant DSM 7.0 upgrade package from Download Center | Synology Incorporated

Downloaded the relevant Plex Upgrade package from Media Server Downloads | Plex Media Server for Windows, Mac, Linux, FreeBSD and More

Ran the manual DSM Updater from Control Panel–>Update & Restore–>Manual Update choosing the DSM package I’d just downloaded.

As I don’t use Synology Photo Station or Moments I uninstalled Synology Photo Station from my NAS hoping it would prevent the new Synology Photos Package from being installed during the upgrade, thus avoiding any permissions issues with Plex and my Photo folder. This proved to be the case and Synology Photos was NOT installed during the upgrade.

The DSM upgrade went fine and smooth, took about 10 minutes all in all including the updating of 19 packages.

Once finished I noticed that the Plex Media Server package was uninstalled. Here’s where I differed a little from instructions. I went to Control Panel–> Shared Folders and checked the Permissions for the old Plex shared folder. Lo and behold, the new System Internal User called PlexMediaServer had already been created and all I had to do was add this user to Full Control list for the Plex Folder. I repeated this for all of my shared media folders. Took about 5 minutes.

I then manually ran the Plex Media Server Package install and because I had already given the correct permissions for the PlexMediaServer user it went straight thru without the need for pausing for permissions to be granted. The installation and migration of Plex took about 15 minutes and I have a fairly extensive media library.

All that was left in the old Plex Folder was one filed called Migration.log. I can now delete this folder safely.

Test ran everything to do with Plex and it’s all working perfectly, all changes I have previously made to metadata have been retained etc. Even where I’m up to in the playing of files.

Perhaps one day I will install the Synology Photos package when I’m sure that this will not compromise Plex’s ability to view the Photo Library as I use Plex pretty well exclusively for all my dealings with my Photo library.

So all in all the process took less than 30 minutes without a single glitch and from my point of view I can recommend doing the upgrade.

My sincere thanks and gratitude to ChuckPa and others for their countless hours of legwork and effort in documenting this process and ironing out the bugs.

Here is a readout of my migration log if it’s any use:

Summary

Plex Media Server migration to DSM 7 started: Tue Jul 27 08:45:00 AEST 2021
=== Tue Jul 27 08:45:00 AEST 2021 === Start: Change ownership
chown: changing ownership of ‘/volume1/Plex/Library/Application Support/Plex Media Server/Cache/fontconfig/764b928fc99aeb29558ee70263f6f1c0-le64.cache-7’: Operation not permitted
chown: changing ownership of ‘/volume1/Plex/Library/Application Support/Plex Media Server/Cache/fontconfig/CACHEDIR.TAG’: Operation not permitted
chown: changing ownership of ‘/volume1/Plex/Library/Application Support/Plex Media Server/Cache/fontconfig’: Operation not permitted
chown: changing ownership of ‘/volume1/Plex/Library/Application Support/Plex Media Server/Codecs/EasyAudioEncoder-1445-linux-x86_64/EasyAudioEncoder/EasyAudioEncoder’: Operation not permitted
chown: changing ownership of ‘/volume1/Plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases/tv.plex.providers.epg.cloud-32347e34-2764-42e5-8ef5-a90ad53654b1.db’: Operation not permitted
chown: changing ownership of ‘/volume1/Plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases/tv.plex.providers.epg.cloud-32347e34-2764-42e5-8ef5-a90ad53654b1.db-wal’: Operation not permitted
chown: changing ownership of ‘/volume1/Plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases/tv.plex.providers.epg.cloud-32347e34-2764-42e5-8ef5-a90ad53654b1.db-shm’: Operation not permitted
=== Tue Jul 27 08:56:05 AEST 2021 === Completed: Change ownership
=== Tue Jul 27 08:56:05 AEST 2021 === Start: Convert symbolic links
=== Tue Jul 27 08:59:22 AEST 2021 === Completed: Convert symbolic links
=== Tue Jul 27 08:59:22 AEST 2021 === Start: Migrate Plex Media Server
=== Tue Jul 27 08:59:22 AEST 2021 === Completed: Migrate Plex Media Server
=== Tue Jul 27 08:59:22 AEST 2021 === Completed: Migrate Plex Media Server
=== Tue Jul 27 08:59:22 AEST 2021 === Start: Clean /volume1/Plex
=== Tue Jul 27 08:59:23 AEST 2021 === Completed: Clean /volume1/Plex

@mail_justmike_at

Can you please show me the permissions you have set for the photo shared folder?

Also can you please attempt to scan the folder again then attach the log files?

I believe you have captured exactly what Synology needs to see.

I found a solution: I had to convert the shared folder to windows acl. @trumpy81 After that, the dialogs for changing the user rights looked exactly like yours.

1 Like

I too can confirm that by selecting “Convert to Windows ACL”, re-doing the advanced permissions for System Internal User “PlexMediaServer” - and rescan in Plex Photo, all pictures appear w/o having to create a duplicate files for Synology Photo and Plex Photo.

Make sure you apply to all folders, and allow PlexMediaServer access to everything…

2 Likes

Thank you.

That is so counter-intuitive.

Linux ACLs → Windows (Syno?) ACLs – Now add “SynoACLs” (synoacltool) for PlexMediaServer.

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