Synology: DSM 7 Installation Archive -- Archived from main thread

I cleared out my logs to get a fresh set for debugging and now all of the sudden my server is back up and running.

I’ve seen that happen. Don’t be discouraged.

When it happens again, Grab the DEBUG logs ZIP file (You do have DEBUG logging enabled?)

Nope, Plex is not running

Sorry for the delay (busy here IRL).

Refresh the browser window,
Open Package Center
-It shoud show as stopped-
Attempt to start Plex.

1 Like

No worries, I appreciate the time you’r taking to help me!!

I’ve been able to start Plex, but it’s still the old version 1.25.6.5577 and not 1.26.0.xxxx I was trying to install. I would have loved to bring better news


Edit 5h later: I just tried to run the update to 1.26.0 again and it worked flawless now. I don’t know what happened, but it worked. Thanks a lot @ChuckPa for all the advice!

I’m running DSM 7.1 update 1 with the latest plex server installed (1.26.1) and I’ve noticed an issue whereby when logged in to plex.tv and go to add a directory I have access to a usb drive shared folder which is limited to only one admin account. My Nvidia shield server can’t access it but my plex server can. Synology tech support did a screenshare to confirm and agreed all settings looked right and couldn’t solve this. Curious if there may be something I’m missing or if this is a security hole that needs patched?

@funkriders1

Try this one.

  1. Open FileStation
  2. Right click on the shared folder for the USB drive.
  3. Properties
  4. Permissions
  5. If you don’t see “Everyone” listed, right click the dropdown and add it.
  6. Save that
  7. Check the box “Apply to this folder sub-folders and files”
  8. Save that too

Thanks for the reply but I think I wasn’t clear maybe. I have access to the usb drive which i should not have access to. I have no problem accessing the folder I need to and getting everything working there as expected. The issue is I have a private backup USB drive for system files and it is not shared with plex yet plex can see it and the files in it when I’m logged in to plex.tv and go to add a directory.

Thanks for clarifying. I thought you meant a lack of access.

Plex will only see the files if:

  1. You’ve given System Internal User PlexMediaServer permission to read it (DSM controls this through the shared folder permissions)

  2. You added the folder path to that USB drive. ( You control this by which folder(s) you tell Plex to look in.

Did you mistakenly have Plex look at /volumeUSB1 (or whatever the name is)
and give it permission ?

On both DSM 6 and DSM 7, Plex is non-prileged. It won’t go anywhere not instructed to further constrained by assigned permissions for the shared folder(s) of which the USB drive is mounted in DSM as a temporary shared folder (Control Panel - Shared Folder)

No, as I was saying plex doesn’t have permission to that USB backup drive, only system admin does, no users at all. See attached. Looking under that folder for the backup drive and “system internal user” there is nothing with access. My only thought is that plex was installed on the NAS from the admin account, as that’s the only account that can load applications. I do have a user account called Plex and it is only authorized to see one folder, and the backup folder as you can see is not one. I’m fairly proficient w/ DSM and their tier 2 support guy via screenshare also looked and could not identify an issue with settings. That’s not saying we both didn’t miss something, but doesn’t appear to be anything obvious.

Screen Shot 2022-05-06 at 11.17.52 PM

It’s important we separate things here:

  1. DSM 6 – User Plex - Not used in DSM 7. Delete if desired.
  2. DSM 7 – System Internal User PlexMediaServer - is the new username (DSM 7 mandated)

It doesn’t matter which username installed PMS. PMS runs under its own username and obeys Linux/DSM file access rules.

Speaking to file access where it shouldn’t be –

On DSM, there is SynoACL mode and Linux mode. ACLs are set via the GUI (as you show).

Entering the DSM ssh shell and issuing a chmod as root will DISABLE ACLs and revert to Linux mode (chmod flags control the access).

example: bash-4.4# chmod 755 /volumeUSB1/usbshare1-1

In this scenario, The GUI will show the ACLs but Linux chmod flags take priority. A directory listing will show the ACL was cleared (removed) from the file/dir by the chmod command. (this is how Syno works)

Please examine below:

drwxr-xr-x   2 root root 4096 Jul  5  2021 .system_info
drwxrwxrwt  14 root root 2000 May  7 12:53 tmp
drwxr-xr-x  12 root root 4096 Apr  7 18:24 usr
drwxr-xr-x  15 root root 4096 Apr 25 18:03 var
drwxr-xr-x  12 root root 4096 Apr  7 18:25 var.defaults
drwxr-xr-x  47 root root 4096 May  2 20:41 volume1
drwxr-xr-x   5 root root 4096 Apr 25 18:03 volume2
bash-4.4# cd volume2
bash-4.4# ls -la
total 68
drwxr-xr-x   5 root root  4096 Apr 25 18:03 .
drwxr-xr-x  23 root root  4096 May  2 20:41 ..
-rw-------   1 root root 10240 Apr 25 02:49 aquota.group
-rw-------   1 root root 11264 Apr 25 02:49 aquota.user
drwxrwxrwx+  3 root root  4096 Feb 17 19:25 @eaDir
-rw-------   1 root root 20480 Oct 26  2021 synoquota.db
drwxrwxrwx   2 root root  4096 May  1 20:14 @tmp
d---------+ 10 root root  4096 Feb 17 20:32 UHD
bash-4.4# 
  1. For the first entries (which are the end of the ls -la / listing) observe volume1 and volume2 have Linux permissions set by DSM. This is normal and expected.

  2. Now observe the listing from volume2.
    – This is how a normal DSM 7 ACL looks
    d---------+ 10 root root 4096 Feb 17 20:32 UHD

– The lack of permission bits means no access in Linux mode
– The + at the end means an ACL is attached.

Now we come to your external drive.

Is it NTFS / FAT32 formatted?

Please ssh into the NAS and get a ls -la listing of / and /volumeUSB1 (? – whichever USB drive you reference in this thread)

I was able to SSH in using terminal but wasn’t able to pull up the files you wanted. The name of the folder is Nas Backup and it’s in usb disk 1. I just want to confirm doing this won’t change anything and if so can be changed back if need-be? If you can send me the command line to enter I can check this.

This usb drive is formated in ExFat so it would be more easily accessible from other computers. However, I put in another usb drive to test and formatted it differently and it too was able to be viewed through Plex. I do have a few plex servers and they all access the same share folder on the NAS. The only server that’s allowed in to the USB drive is the synology server so this further serves as proof the settings are correct on my permissions.

This exists on every linux based system (which DSM is one of).

Please try again.

ExFat does not support ANY permission control. It’s Wide Open.

The most likely reason your shield can’t see it is because of sharing status and general sharing permissions.

If PMS on the NAS sees the drive when it shouldn’t, it’s because one of PMS’s library sections is pointing to it.

As for the shared folder Nas Backup on USB disk 1,
you can easily see how DSM handles things by (again at the ssh prompt),
typing ls -la /volumeUSB* (confirm the exact name(s) of USB drives by typing
ls -la / at the shell prompt)

Now you’ll get a listing of all USB drives attached to it

The NAS doesn’t see the drive when it should know, only when logged in to plex through plex.tv (or local IP for plex) is the usb with restrictions seen.

Also, please note I pointed out with formatting different with another usb drive plex also saw it.

See attached.

Thanks.

Now we see you have two USB volumes.

The drwxrwxrwx means:

d - This is a directory
rwx - Linux mode permissions for the file owner (which is admin)
rwx - Linux mode permissions for the file group assignment (which is all users in this case)
rwx - Linux mode permissions for all others (not the owner and not a member of the users group).

There is no + at the end. ExFAT does not support ACLs.

This means: the entire contents of usbshare is wide open for anything to access it

To get back to your original problem “Plex has access to it” (your private data),
You must now look at which folders are listed in the library section(s) where you’ve found your private data showing up.

When I go to add a new library and select the folder I Have access to see everything on volume 1. Everything.

When you add folders (Folder browser of Library EDIT)
Do you SEE all the folders listed? – That’s expected

If you click on one of the shared folders and add it to Plex,

Do yo SEE your contents added in the right hand pane of the folder browser?

That’s correct. That’s what I mean by everything.

Which of my questions please ?

I asked 2 questions.