Plex doesn't recognizes my new medias anymore

Server Version#: Synology DSM 7.0.1
Player Version#: 1.41.0.2876-e960c9ca

Hi,

I have Plex on the latest version of Synology DSM 7, on a DS920+
I moved in 3 weeks ago, and since then, Plex doesn’t recognizes new media on my nas anymore. When I type in the search bar, no results appear.
Also, and I don’t know if it’s related, I encountered another issue: I tried a new installation of plex but this time with Docker DSM, and I don’t have access to user information plex through my terminal on mac (Permission denied, please try again.)

Thank you in advance for your help!

I have the same issue any new files added to the libraries are not picked up in the scan. PMS 1.25.6.5577 on Synology DSM 7

On Synology -

  • 99% of the problems with adding content are Permissions related.
    – DSM 7 may have granted permission to the shared folder
    – But if the file is sent over with SAMBA, one must be careful the permission flags of the file(s) also allow other users (e.g. PlexMediaServer) to read them.

  • DEBUG log files (the ZIP), captured after “Scan Files” completed will tell us whether or not the issue is permissions related or not.

Feb 27, 2022 13:24:52.376 [0x7f5cd9334b38] INFO - Plex Media Scanner v1.25.6.5577-c8bd13540 - Synology DS220+ x86_64 - build: linux-x86_64 - GMT -05:00
Feb 27, 2022 13:24:52.377 [0x7f5cd9334b38] INFO - Linux version: DSM 7.0.1.42218-2, language: en-US
Feb 27, 2022 13:24:52.377 [0x7f5cd9334b38] INFO - Processor: 2-core Intel(R) Celeron(R) J4025 CPU @ 2.00GHz
Feb 27, 2022 13:24:52.377 [0x7f5cd9334b38] INFO - /volume1/@appstore/PlexMediaServer/Plex Media Scanner --scan --refresh --section 11 --activity 1bf35bb8-845b-4d8f-ac7b-8c6f0e905434
Feb 27, 2022 13:24:52.371 [0x7f5cdc349848] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Feb 27, 2022 13:24:52.494 [0x7f5cdc349848] DEBUG - HTTP requesting PUT http://127.0.0.1:32400/activities/1bf35bb8-845b-4d8f-ac7b-8c6f0e905434?percentComplete=0
Feb 27, 2022 13:24:52.494 [0x7f5cd78ecb38] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/notify/cullTimeline?librarySectionID=11&sinceTime=1645985092
Feb 27, 2022 13:24:52.495 [0x7f5cd78c9b38] DEBUG - [HttpClient] HTTP/1.1 (0.0s) 200 response from PUT http://127.0.0.1:32400/activities/1bf35bb8-845b-4d8f-ac7b-8c6f0e905434?percentComplete=0
Feb 27, 2022 13:24:52.496 [0x7f5cd78c9b38] DEBUG - [HttpClient] HTTP/1.1 (0.0s) 200 response from GET http://127.0.0.1:32400/:/metadata/notify/cullTimeline?librarySectionID=11&sinceTime=1645985092
Feb 27, 2022 13:24:52.496 [0x7f5cdc349848] DEBUG - Scanning Music Videos using xn(Plex Video Files Scanner) with 8 current media items and 1 section locations in the database.
Feb 27, 2022 13:24:52.585 [0x7f5cdc349848] DEBUG - Performing a scan with ‘Plex Video Files Scanner’ (language: xn virtual: 0).
Feb 27, 2022 13:24:52.585 [0x7f5cdc349848] DEBUG - * Scanning /volumeUSB1/usbshare/Music Videos
Feb 27, 2022 13:24:52.585 [0x7f5cdc349848] DEBUG - Scanner: Processing directory /volumeUSB1/usbshare/Music Videos (parent: no)
Feb 27, 2022 13:24:52.588 [0x7f5cdc349848] DEBUG - Skipping over directory ‘’, as nothing has changed; removing 8 media items from map.
Feb 27, 2022 13:24:52.588 [0x7f5cdc349848] DEBUG - HTTP requesting PUT http://127.0.0.1:32400/activities/1bf35bb8-845b-4d8f-ac7b-8c6f0e905434?percentComplete=%2B99
Feb 27, 2022 13:24:52.589 [0x7f5cd78c9b38] DEBUG - [HttpClient] HTTP/1.1 (0.0s) 200 response from PUT http://127.0.0.1:32400/activities/1bf35bb8-845b-4d8f-ac7b-8c6f0e905434?percentComplete=%2B99 (reused)
Feb 27, 2022 13:24:52.589 [0x7f5cdc349848] DEBUG - HTTP requesting PUT http://127.0.0.1:32400/activities/1bf35bb8-845b-4d8f-ac7b-8c6f0e905434?percentComplete=99.000000
Feb 27, 2022 13:24:52.590 [0x7f5cd78c9b38] DEBUG - [HttpClient] HTTP/1.1 (0.0s) 200 response from PUT http://127.0.0.1:32400/activities/1bf35bb8-845b-4d8f-ac7b-8c6f0e905434?percentComplete=99.000000 (reused)
Feb 27, 2022 13:24:52.590 [0x7f5cdc349848] DEBUG - Removing 0 media items that were left.
Feb 27, 2022 13:24:52.590 [0x7f5cdc349848] DEBUG - Removing 0 directories that were left.
Feb 27, 2022 13:24:52.590 [0x7f5cdc349848] DEBUG - HTTP requesting PUT http://127.0.0.1:32400/activities/1bf35bb8-845b-4d8f-ac7b-8c6f0e905434?percentComplete=100
Feb 27, 2022 13:24:52.592 [0x7f5cd78c9b38] DEBUG - [HttpClient] HTTP/1.1 (0.0s) 200 response from PUT http://127.0.0.1:32400/activities/1bf35bb8-845b-4d8f-ac7b-8c6f0e905434?percentComplete=100 (reused)
Feb 27, 2022 13:24:52.592 [0x7f5cdc349848] DEBUG - Refreshing section 11 of type: 1
Feb 27, 2022 13:24:52.592 [0x7f5cd79a4b38] DEBUG - Refreshing 0 IDs.

Please do not post a fragment.

Please attach the entire ZIP file because the bottom of the listed fragment shows scanning is not yet complete.

Plex Media Server Logs_2022-02-27_13-25-10.zip (4.3 MB)

Are these a few of the files you’re missing?

Feb 27, 2022 11:13:50.191 [0x7fe36a88bb38] DEBUG - Scanner: Processing directory /volume1/TV Shows/Tv SHows/Last Week Tonight with John Oliver/Season 6 (parent: yes)
Feb 27, 2022 11:13:50.195Feb 27, 2022 11:13:50.203 [0x7fe36a88bb38] DEBUG - Scanner: Processing directory /volume1/TV Shows/Tv SHows/From/Season 1 (parent: yes)
Feb 27, 2022 11:13:50.203 [0x7fe36a88bb38] ERROR - Error opening file '"/volume1/TV Shows/Tv SHows/From/Season 1/From.S01E04.A.Rock.and.a.Farway.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv"' - Permission denied (13)
Feb 27, 2022 11:13:50.203 [0x7fe36a88bb38] DEBUG - Skipping over directory 'From/Season 1', as nothing has changed; removing 3 media items from map.
Feb 27, 2022 11:13:50.204 [0x7fe36a88bb38] DEBUG - Activity: updated activity 2f23e526-05f8-4edd-91fa-de8d4c89a136 - completed 6.5% - Scanning TV Shows
Feb 27, 2022 11:13:50.204 [0x7fe36a88bb38] DEBUG - Scanner: Processing directory /volume1/TV Shows/Tv SHows/Space Force (parent: yes)
Feb 27, 2022 11:13:50.210 [0x7fe36a88bb38] DEBUG - Scanner: Processing directory /volume1/TV Shows/Tv SHows/Magnolia Table with Joanna Gaines/Season 4 (parent: yes)
Feb 27, 2022 11:13:50.211 [0x7fe36a88bb38] ERROR - Error opening file '"/volume1/TV Shows/Tv SHows/Magnolia Table with Joanna Gaines/Season 4/Magnolia Table - S05E04 - Dumplings and Traditions.mp4"' - Permission denied (13)
Feb 27, 2022 11:13:50.211 [0x7fe36a88bb38] DEBUG - Skipping over directory 'Magnolia Table with Joanna Gaines/Season 4', as nothing has changed; removing 5 media items from map.
Feb 27, 2022 11:13:50.419 [0x7fe36a88bb38] DEBUG - Scanner: Processing directory /volume1/TV Shows/Tv SHows/Saturday Night Live/Season 47 (parent: yes)
Feb 27, 2022 11:13:50.419 [0x7fe36a88bb38] ERROR - Error opening file '"/volume1/TV Shows/Tv SHows/Saturday Night Live/Season 47/Saturday night live s47 e13.mkv"' - Permission denied (13)
Feb 27, 2022 11:13:50.420 [0x7fe36a88bb38] DEBUG - Skipping over directory 'Saturday Night Live/Season 47', as nothing has changed; removing 12 media items from map.
Feb 27, 2022 11:13:50.420 [0x7fe36a88bb38] DEBUG - Activity: updated activity 2f23e526-05f8-4edd-91fa-de8d4c89a136 - completed 37.5% - Scanning TV Shows

Notice “Permission Denied” ?

This How-To shows how to fix permissions for all your media.
It’s also effective for correcting permission problems for singular items within a large block by setting the entire block (again) to what it should be.

The essential step here: Apply to this folder, sub-folders and files

yes those files are new and not being scanned. i will review the how to.

thanks

excellent it worked. thank you

Thanks ChuckPa. Here you are the debug log files.
Plex Media Server Logs_2022-02-27_20-23-57.zip (7.1 MB)

it was too early to say it was a success. If i add new files they are not recognized now unless i ago back into the permissions and reapply them again to all sub folders each time. then it works once only.

@timtrojko

How are you adding the files?

There is something not happening correctly during that process.

If you are using SMB, DSM will not set the permissions for you in a nested folder unless the permissions on your side have the Windows ACLs set to allow everyone/others to read the file(s)

(This is a common problem with Windows systems. I don’t use Windows so can’t be any help in offering the exact solution)

Supplement: I may have a way to figure some of this out. I’ll report back if I have success.

If anyone else has first-hand knowledge, please reply.

thank you still only works when I apply permissions again in SMB

@timtrojko

I don’t know if it’s beginner’s luck or it’s easier than I thought.

  1. I went digging through my drawer and found a unopened Windows 10 Pro installation USB so I installed it in a VM.

  2. After a TON OF UPDATES :roll_eyes: , I have a working Windows 10 Pro VM.

  3. Created the shared folder on DSM and gave PlexMediaServer access while I was at it.

  4. I then mapped the Syno (DS418) to a drive letter (using my Syno credentials) into the Windows VM

  5. Mounted my main NAS and copied over a couple files from it

  6. As the last step, Copied those local files up to the DS418 test folder.

  7. Switched to the Plex window and created the library section.

  8. Files were instantly found.

I did EVERYTHING as “drag & drop”. (I don’t know any other way to do it)

What do I need to do to replicate what you see?

@ChuckPa Could we try to solve my issue? For me, it still doesn’t work despite following your how-to

yes it works when i do that by manually pasting the files into the folder with windows file explorer. It actually looks like when the SABnzbd app does that automatically within the NAS that the file does not get scanned even though its there in the library.

Is this a case where the external app (Sabnzb) isn’t applying proper Linux permissions to the files?

IIRC, by default, on Synology, it doesn’t grant permission to PlexMediaServer.
It doesn’t even look at which shared folder it’s in.

Please check the settings.

Sabnzb, like Sonarr, should set Dir=755, File=644 permissions.
I believe the default is 700 & 600 ( no access for anyone but the owner )

perfect now it all works. Thank you for the fantastic support.

Thank you @ChuckPa the solutions you propose solve timtrojko’s issues but not mine. Please, can anybody help me to this topic?

Plex Media Server Logs_2022-02-27_20-23-57.zip (7.1 MB)