Hi All,
Ever since replacing an HDD in my NAS, I’ve noticed that when I add new content to my media folders on my NAS that Plex Media Server does not update. If I attempt to add a new folder to the library you can browse and see the newly updated content, but Plex never updates. I can only assume it had something to do with adding a new disk to my array, and in the Synology NAS repairing the raid something has happened to Plex. I am also unable to delete my library folders. I tried uninstalling the Plex app from my NAS, and reinstalling it but I guess all the configure/database is kept in case you reinstall.
Any assistance would be very much welcome.
@trumpy81 said:
Check Plex settings->server->library->show advanced and make sure that:
- Update my library automatically is enabled
- Run a partial scan when changes are detected is disabled
- Update my library periodically is disabled
…
See Q18 on the Synology FAQ’s page and RESET your file permissions, link in my signature.
Hi @trumpy81,
Thank you for your suggestion. I’ve launched Putty, logged into my NAS via SSH, tried to change the directory ‘cd volume2’ as this is my volume, but I get the following. ‘sh: cd: volume2: no such file or directory’
Many thanks
Hi @trumpy81 ,
I managed to eventually RESET my file permissions for both my media folder and the Plex folder but this didn’t work. The scan of the folders still does not detect any new content.
Hi, Thank you again for getting back to me.
Yes I did a manual scan but nothing appeared in the recently updated section, nor if I just searched for it.
Yes, I don’t have a root folder named Media, I have separate root folders for the Media itself e.g. One named Video, TV Shows, Photos etc. It’s been working fine, up until I had to swap out an HDD and repair the raid. Ever since any new content hasn’t been picked up by Plex. All of my current movie files are named: titleofthemove (date).mkv etc
Please find attached my Server logs.
Many thanks
Michael
Thank you so much, you are indeed a legend.
I wasn’t sure it was going to work to start with as the oldest backup was after the HDD swap out, but I’m glad to say it started to fetch all my movie data and has indeed updated.
So once again, thank you very much.
@trumpy81 said:
Check Plex settings->server->library->show advanced and make sure that:
- Update my library automatically is enabled
- Run a partial scan when changes are detected is disabled
- Update my library periodically is disabled
…
See Q18 on the Synology FAQ’s page and RESET your file permissions, link in my signature.
hi trumpy
i have two Synology NAS 1815+ in two places one is updating the library if i add or delete any movie the other i have to do it manually i tried everything for it to work no luck (unless i enable update periodically every XX which i currently disabled) any idea what i should try please
i try to upload the file but get an error file failed to upload here (Plex media scanner.rar or .txt)
1 Like
trumpy thanks for your feed back
I’m doing what you said right now
1- I confirm plex and admin user already have R/W access to plex directory
2-i added file bot to the sources and proceeding (although when I do a manual library scan newly added movie or TV Show is added no problem)
3- I added permissions for admin and plex on video folder (which has all subfolders for tvshows movies documentary etc.)
I’m attaching the plex log after turning off verbose as you asked
thanks again
hello trumpy
I was doing the FAQ Q18 as you recommended can you please elaborate this note please
“Note: Do not simply read the permissions, you should reset them regardless. Set the permissions to 600 first, then go back and set them to 755 or 644 respectively. This ensures that the permissions have been re-written to disk properly.”
does this mean
find ./Media_folder_name_here -type d -exec chmod 600 {} ;
find ./Media_folder_name_here -type f -exec chmod 600 {} ;
then
find ./Media_folder_name_here -type d -exec chmod 755 {} ;
find ./Media_folder_name_here -type f -exec chmod 644 {} ;
then
chown -R admin:users Media_folder_name_here
I don’t wanna get this wrong 
also if I have one video folder with all subfolders for library I can do it on the Video folder or do I have to do each separate subfolder
find ./Video/TVshows -type d -exec chmod 755 {} ;
find ./Video/Movies -type d -exec chmod 755 {} ;
find ./Video/Documentary -type d -exec chmod 755 {} ;
thanks
Q18 FAQ Synology
For your Media Folder/s:
cd volume1
find ./Media_folder_name_here -type d -exec chmod 755 {} ;
find ./Media_folder_name_here -type f -exec chmod 644 {} ;
chown -R admin:users Media_folder_name_here
The commands above perform the following functions:
cd changes to the directory you wish to work in, in this case, volume1 (volume1 maybe volume2, volume3 etc.).
find searches for the folder you specify and changes it’s permissions to 755.
find again searches for the folder you specify and changes the permissions for all files in that folder to 644
chown sets the user and group owner of the folder and the files it contains to what you specify. In this case it sets the admin as user and the group to the users group.
…
Note: Do not simply read the permissions, you should reset them regardless. Set the permissions to 600 first, then go back and set them to 755 or 644 respectively. This ensures that the permissions have been re-written to disk properly.
Dear Trumpy
Yes this is the Server with the problem
thanks to you I think I have an idea now of the reason for the library not being updated automatically
I have Video Folder and in the folder this is alist from putty
cd /video
ls -alr
drwx------+ 33 admin users 4096 Apr 18 09:17 TV Shows
drwxr-xr-x 7 admin users 4096 Mar 27 21:42 Romance
drwx------+ 8 yassin users 4096 Apr 17 21:47 Movies 4K
drwx------+ 34 admin users 20480 Apr 18 09:17 Movies
drwx------+ 3 admin users 4096 Nov 14 2016 Home Videos
drwxrwxrwx+ 3 root users 4096 Apr 18 09:43 @eaDir
-rwx------+ 1 yassin users 18436 Apr 12 23:52 .DS_Store
drwx------+ 3 admin users 4096 Apr 16 20:49 Download
drwx------+ 5 amr users 4096 Apr 17 21:44 Documentary Movies 4K
drwx------+ 2 amr users 4096 Apr 17 18:33 Documentary Movies
drwx------+ 4 amr users 4096 Mar 27 21:11 Documentary 4K
drwx------+ 62 amr users 4096 Nov 25 2016 Documentaries
User amr created the subfolders (Docmunetaries …etc) those are working fine ? if I add or remove a movie it is scanned
User admin created subfolder movie and subfolder TV Shows (those are not working automatically update )
so I’m trying now to change the permisions as you recommended in Q18 I’m doing that now with ADMIN user again to rewrite the permission if that didn’t work I will change them to amr and see how it goes
@trumpy81 said:
@amrlotus said:
Dear Trumpy
Yes this is the Server with the problem
thanks to you I think I have an idea now of the reason for the library not being updated automatically
I have Video Folder and in the folder this is alist from putty
User amr created the subfolders (Docmunetaries …etc) those are working fine ? if I add or remove a movie it is scanned
User admin created subfolder movie and subfolder TV Shows (those are not working automatically update )
so I’m trying now to change the permisions as you recommended in Q18 I’m doing that now with ADMIN user again to rewrite the permission if that didn’t work I will change them to amr and see how it goes
Doing anything on the NAS, like installing apps, adding media etc… should always be done with your admin account on the NAS. There are subtle differences when using a User account that has admin privileges and those differences can interfere at times.
Rather than disable the admin account, as Synology recommends, I recommend that you use a very strong password and leave the admin account enabled.
EDIT: And yes, you are correct, having folders with different owners will prevent Plex from accessing the folders. Make sure your Media folder has R/W permissions for both admin and Plex.
Trumpy You are very right (that’s what my son did on his NAS the very first time)
now I have great news after changing the Video\Movies permissions as your Q18 article whenever I remove or add a movie it gets updated automatically going to to do the same for the rest of the Sub folders in the video folder
Can you please explain how do I find the offending files in the LOG so I can remove them ?
Trumpy
Confirming Everything is working now just fine auto updating after all directories have been changed to ADMIN ownership and permissions according to your FAQ Q18 section
https://forums.plex.tv/discussion/191000/faqs-read-this-first?new=1#Q18
thanks man