I’ve an issue with the Update my library automatically option.
When I add some files into my Movies folder (located on my NAS, where the Plex server is running), it does not update the library, same for TV shows, but for another library (called “Formation”) it’s working.
When I check the box, I get some error on the log file :
Apr 28, 2018 17:00:58.804 [0xec3ffb40] INFO - Refreshing paths because of preference change
Apr 28, 2018 17:00:58.804 [0xec3ffb40] INFO - Refreshing paths watched by LibraryUpdateManager
Apr 28, 2018 17:00:58.806 [0xec3ffb40] DEBUG - LibraryUpdateManager will start watching /volume1/video/Film
Apr 28, 2018 17:00:58.806 [0xec3ffb40] DEBUG - LibraryUpdateManager will start watching /volume1/video/Formation Photographe accompli
Apr 28, 2018 17:00:58.807 [0xec3ffb40] DEBUG - LibraryUpdateManager will start watching /volume1/video/Series
Apr 28, 2018 17:00:58.807 [0xec3ffb40] DEBUG - [Notify] Initializing.
Apr 28, 2018 17:00:58.807 [0xf0f35b40] ERROR - [Notify] Failed to add watch for /volume1/video/Film (13: Permission denied)
Apr 28, 2018 17:00:58.809 [0xf17ffb40] DEBUG - Completed: [192.168.1.28:60437] 200 PUT /:/prefs?FSEventLibraryUpdatesEnabled=1 (5 live) TLS GZIP 6ms 268 bytes (pipelined: 1)
Apr 28, 2018 17:00:58.826 [0xf0f35b40] ERROR - [Notify] Failed to add watch for /volume1/video/Film/21.Jump.Street.2012.FRENCH.BDRip.XviD-NERD (13: Permission denied)
[...]
Apr 28, 2018 17:00:59.023 [0xf0f35b40] DEBUG - [Notify] Now watching /volume1/video/Formation Photographe accompli
Apr 28, 2018 17:00:59.114 [0xf0f35b40] DEBUG - [Notify] Now watching /volume1/video/Formation Photographe accompli/Sublimez vos photos
Apr 28, 2018 17:00:59.208 [0xf0f35b40] DEBUG - [Notify] Now watching /volume1/video/Formation Photographe accompli/Revelez votre ame
Apr 28, 2018 17:00:59.208 [0xf0f35b40] ERROR - [Notify] Failed to add watch for /volume1/video/Series (13: Permission denied)
Apr 28, 2018 17:00:59.208 [0xf0f35b40] DEBUG - [Notify] Now watching /volume1/video/Series/90210
[...]
But I can’t figure out why there is some different behavior on this two folder for example :
/volume1/video/Film
/volume1/video/Formation Photographe accompli
Permissions on Synology are done with ACLs unless you manually override them with permission bits at the file system level.
This line: d---------+ 1 Rian users 350 Apr 1 16:24 Series shows me the directory is still using ACLs (the +)
You will notice Thumbs.db is using standard permission bits.
You may do one of two things:
Go into File Station and (re)set permissions in the videos share to allow either a. user plex to read or b. everyone to read.
Override permanently at the file system level by using permission bits and a combination of the persistence bits (setuid, setgid, or perms)
Plex is already permit for “read/write” on the video share.
But I’ve done now just to make sure, is check the box “Apply to this folded, sub folders etc ..”. And I’ve uncheck/check the scan option, I still have the permission denied error.
If you are willing, bypass the ACLs entirely with the hard permission bits I have shown above. (recursive chmod).
Time to get angry at Synology again (this sometimes happens)
Setting file/directory permissions back to 000 (as they currently are listed)
The Synology chmod command has built in help if needed.
admin@moesern:~$ chmod --help
Usage: chmod [OPTION]... MODE[,MODE]... FILE...
or: chmod [OPTION]... OCTAL-MODE FILE...
or: chmod [OPTION]... --reference=RFILE FILE...
Change the mode of each FILE to MODE.
With --reference, change the mode of each FILE to that of RFILE.
-c, --changes like verbose but report only when a change is made
-f, --silent, --quiet suppress most error messages
-v, --verbose output a diagnostic for every file processed
--no-preserve-root do not treat '/' specially (the default)
--preserve-root fail to operate recursively on '/'
--reference=RFILE use RFILE's mode instead of MODE values
-R, --recursive change files and directories recursively
--help display this help and exit
--version output version information and exit
Each MODE is of the form '[ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+'.
-k force keep the file in acl mode even if linux perm
is given. the mode NNN will be tranformed to ACLs
700 = u:<user of file>:allow:MRWX:fd
060 = g:<group of file>:allow:MRW:fd
003 = a::allow:MWX:fd
SYNOACL Operations:
[-+]a <ACL[,ACL...]> add/remove specific ACEs
-a# <index[,index...]> remove the ACEs with spcific indices
=a# <index[,index...]> ACL replace specific ACEs with the given ACL
ACL Format:
<Object Type>:<Object name>:<Access type>:<Permissions>:<Inheritance>
Object: user(u),group(g),everyone(a),owner(o),
authenticated_user(l),system(s)
Object name can be empty if object type is not user/group
Access: allow/deny
Permission: rwxpdDaARWcCo, MRWX, F
MR = raRc, MW = wpDAW, MX = x, F=rwxpdDaARWcCo
Inheritance: fdin; Can be empty, default: fd
*Notice: SYNOACL operations will do normalization first, which means
duplicated ACEs in ACL will be removed and ACEs with same object,
same access type and same inheritance will be merged.
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Full documentation at: <http://www.gnu.org/software/coreutils/chmod>
or available locally via: info '(coreutils) chmod invocation'
admin@moesern:~$