Brian,
I did some digging and a whole lot of testing.
-
Plex doesn’t trigger on READ events.
It does trigger on -
IN_CLOSE_WRITE | IN_CREATE | IN_MODIFY | IN_DELETE | IN_MOVE | IN_ATTRIB
-
noatime - Turned it on and off again. Could not cause it to raid a Notify event.
-
Given:
– two directories in a library section ( A & B )
– “Partial Scan” enabled.
– Move or Copy something to B
-
Actions:
– PMS sees the B activity
– Starts a rescan of the library section
– “A” has no activity – Not scanned
– “B” was modifed
– … Those directories under B which were modifed since last scan ARE SCANNED.
==================
Your questions:
-
We always “think” our media files are sequential & contiguous . HAHAHA
Yes, they’re n groups but never contiguous unless you know the file size in advance AND pre-allocate the file space as such
-
Does Plex do “Random” ? Yes – in so much as how you added media to your library is random.
-
“parallelism” — No. Those are pulse-stretchers on the LEDs so you can see them and the scan rate is so fast that our eyes think they are simultaneously illuminated
-
Music scanning - Retest – EXT4
– Created a while new music library section (here’s the last item added)
Mar 25, 2024 12:55:07.500 [140500998904632] DEBUG - Local media already exists (metadata://posters/tv.plex.agents.music_ad7b38de0cce75e35acf11e735208fe2efeeb813)
Mar 25, 2024 12:55:07.500 [140500998904632] DEBUG - Doing expensive tags write for 'Roger Williams' because something changed.
Mar 25, 2024 12:55:07.500 [140500998904632] DEBUG - There was a change for metadata item 32025 (Roger Williams), saving.
Mar 25, 2024 12:55:07.500 [140500998904632] DEBUG - Updating metadata item (save) (Roger Williams) with ID 32025
Mar 25, 2024 12:55:07.501 [140500998904632] DEBUG - Done with metadata update for 32025
Mar 25, 2024 12:55:07.502 [140500998904632] DEBUG - Activity: updated activity 8f01eb02-8610-4c75-a1a6-18bd346997e9 - completed -1.0% - Updating Metadata
Mar 25, 2024 12:55:07.504 [140500998904632] DEBUG - [JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex\ Media\ Server/Codecs/ad47460-4673-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Media Scanner" --match --type 8 --log-file-suffix " Matcher" --item 32026 --match-tag-mode=exclusive
Mar 25, 2024 12:55:07.504 [140500998904632] DEBUG - [JobRunner] Jobs: Starting child process with pid 11458
Mar 25, 2024 12:55:07.506 [140501130181432] DEBUG - Request: [192.168.0.13:37348 (Subnet)] GET /media/providers (8 live) #c383e GZIP Signed-in Token (ChuckPA) (Chrome)
Mar 25, 2024 12:55:07.507 [140501233367864] DEBUG - Completed: [192.168.0.13:37348] 200 GET /media/providers (8 live) #c383e GZIP 1ms 5896 bytes (pipelined: 1)
Mar 25, 2024 12:55:07.513 [140501118024504] DEBUG - Request: [192.168.0.13:35900 (Subnet)] GET /media/providers (8 live) #c4336 TLS GZIP Signed-in Token (ChuckPA) (Chrome)
Mar 25, 2024 12:55:07.514 [140501231258424] DEBUG - Completed: [192.168.0.13:35900] 200 GET /media/providers (8 live) #c4336 TLS GZIP 1ms 6027 bytes (pipelined: 6)
Mar 25, 2024 12:55:07.575 [140501238258488] DEBUG - Jobs: '/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Media Scanner' exit code for process 11458 is 0 (success)
Mar 25, 2024 12:55:07.577 [140500998904632] DEBUG - Loaded metadata for Somewhere In Time [MCA] (ID 32026) in 1ms
Mar 25, 2024 12:55:07.577 [140500998904632] DEBUG - Done with metadata update for 32026
Mar 25, 2024 12:55:07.579 [140500998904632] DEBUG - Loaded metadata for Theme From "Somewhere In Time" (ID 32027) in 1ms
Mar 25, 2024 12:55:07.579 [140500998904632] DEBUG - Done with metadata update for 32027
– Now add TV content “The Continental”
Mar 25, 2024 12:58:15.891 [139679858740024] DEBUG - [HttpClient/HCl#89] HTTP/2.0 (0.5s) 200 response from GET https://plex.tv/api/v2/server/users/services?auth_token=xxxxxxxxxxxxxxxxxxxx
Mar 25, 2024 12:58:15.894 [139679872604984] DEBUG - [ViewStateSync] No user tokens found; stopping
Mar 25, 2024 12:58:32.740 [139679800511288] INFO - Library section 2 (Televsion) will be updated because of a change in "/share/glockner/media/tv2/The Continental (2023)"
Mar 25, 2024 12:58:32.741 [139679800511288] DEBUG - [Notify] New directory: "/share/glockner/media/tv2/The Continental (2023)", adding recursively.
Mar 25, 2024 12:58:32.741 [139679800511288] DEBUG - [Notify] Now watching "/share/glockner/media/tv2/The Continental (2023)"
Mar 25, 2024 12:58:32.760 [139679800511288] INFO - Library section 2 (Televsion) will be updated because of a change in "/share/glockner/media/tv2/The Continental (2023)/Season 01"
Mar 25, 2024 12:58:32.760 [139679800511288] DEBUG - [Notify] New directory: "/share/glockner/media/tv2/The Continental (2023)/Season 01", adding recursively.
Mar 25, 2024 12:58:32.760 [139679800511288] DEBUG - [Notify] Now watching "/share/glockner/media/tv2/The Continental (2023)/Season 01"
Mar 25, 2024 12:58:32.770 [139679800511288] INFO - Library section 2 (Televsion) will be updated because of a change in "/share/glockner/media/tv2/The Continental (2023)/Season 01/The Continental (2023) - S01E01 - Night 1 - Brothers in Arms.mkv"
Mar 25, 2024 12:58:37.741 [139679821605688] DEBUG - Library Updater: Requested that section 2 be updated, force=0, deep=0, subdir=/share/glockner/media/tv2 iTunes=0
Mar 25, 2024 12:58:37.741 [139679821605688] DEBUG - Library Updater: Queueing section 2
Mar 25, 2024 12:58:37.742 [139679872604984] DEBUG - Activity: registered new activity 8c2bf391-dcc6-4267-88bc-30b1347e9dc1 - "Scanning"
Mar 25, 2024 12:58:37.742 [139679872604984] DEBUG - Scanning section 2
Mar 25, 2024 12:58:37.742 [139679872604984] DEBUG - Activity: updated activity 8c2bf391-dcc6-4267-88bc-30b1347e9dc1 - completed 0.0% - Scanning Televsion
Mar 25, 2024 12:58:37.743 [139679872604984] DEBUG - It took 0.000000 ms to retrieve 143 items.
Mar 25, 2024 12:58:37.761 [139679821605688] DEBUG - Library Updater: Requested that section 2 be updated, force=0, deep=0, subdir=/share/glockner/media/tv2/The Continental (2023) iTunes=0
Mar 25, 2024 12:58:37.761 [139679821605688] DEBUG - Library Updater: Queueing section 2
Mar 25, 2024 12:58:37.766 [139679872604984] DEBUG - It took 0.000000 ms to retrieve 143 items.
Mar 25, 2024 12:58:37.816 [139679872604984] DEBUG - Asked to cull library timeline before time 1711384717, we're starting with 0 items.
Mar 25, 2024 12:58:37.816 [139679872604984] DEBUG - Library timeline cull complete with 0 items left.
Mar 25, 2024 12:58:37.816 [139679872604984] DEBUG - Scanning Televsion using en-US(Plex TV Series) with 5182 current media items and 1 section locations in the database.
Mar 25, 2024 12:58:37.816 [139679872604984] DEBUG - Performing a scan with 'Plex TV Series' (language: en-US virtual: 0).
Mar 25, 2024 12:58:37.816 [139679872604984] DEBUG - * Scanning /share/glockner/media/tv2
Mar 25, 2024 12:58:37.816 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2 (parent: no)
Mar 25, 2024 12:58:37.819 [139679872604984] DEBUG - Skipping over directory '', as nothing has changed; removing 0 media items from map.
Mar 25, 2024 12:58:37.822 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2/The Continental (2023) (parent: yes)
Mar 25, 2024 12:58:37.823 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2/The Continental (2023)/Season 01 (parent: yes)
Mar 25, 2024 12:58:37.824 [139679872604984] DEBUG - Directory had 1 files, database had 0 files, can't skip.
Mar 25, 2024 12:58:37.824 [139679845722936] DEBUG - Native Scanner: Executed Local Metadata stage in 0.00 sec.
Mar 25, 2024 12:58:37.825 [139679872604984] DEBUG - Activity: updated activity 8c2bf391-dcc6-4267-88bc-30b1347e9dc1 - completed 1.2% - Scanning Televsion
Mar 25, 2024 12:58:37.825 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2/The Alaska Triangle (parent: yes)
Mar 25, 2024 12:58:37.825 [139679845722936] DEBUG - Checking descendants of The Continental (2023)
Mar 25, 2024 12:58:37.825 [139679845722936] DEBUG - -> Searching down into The Continental (2023)/Season 01
Mar 25, 2024 12:58:37.825 [139679845722936] DEBUG - Checking descendants of The Continental (2023)/Season 01
Mar 25, 2024 12:58:37.825 [139679872604984] DEBUG - Skipping over directory 'The Alaska Triangle', as nothing has changed; removing 0 media items from map.
Mar 25, 2024 12:58:37.825 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2/The Alaska Triangle/Season 01 (parent: yes)
Mar 25, 2024 12:58:37.826 [139679872604984] DEBUG - Skipping over directory 'The Alaska Triangle/Season 01', as nothing has changed; removing 10 media items from map.
Mar 25, 2024 12:58:37.826 [139679872604984] DEBUG - Activity: updated activity 8c2bf391-dcc6-4267-88bc-30b1347e9dc1 - completed 1.8% - Scanning Televsion
Mar 25, 2024 12:58:37.826 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2/The Alaska Triangle/Season 02 (parent: yes)
Mar 25, 2024 12:58:37.827 [139679872604984] DEBUG - Skipping over directory 'The Alaska Triangle/Season 02', as nothing has changed; removing 10 media items from map.
Mar 25, 2024 12:58:37.827 [139679872604984] DEBUG - Activity: updated activity 8c2bf391-dcc6-4267-88bc-30b1347e9dc1 - completed 2.4% - Scanning Televsion
Mar 25, 2024 12:58:37.827 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2/Top Gear (parent: yes)
Mar 25, 2024 12:58:37.828 [139679872604984] DEBUG - Skipping over directory 'Top Gear', as nothing has changed; removing 0 media items from map.
Mar 25, 2024 12:58:37.830 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2/Top Gear/Season 07 (parent: yes)
Mar 25, 2024 12:58:37.831 [139679872604984] DEBUG - Skipping over directory 'Top Gear/Season 07', as nothing has changed; removing 7 media items from map.
Mar 25, 2024 12:58:37.831 [139679872604984] DEBUG - Activity: updated activity 8c2bf391-dcc6-4267-88bc-30b1347e9dc1 - completed 2.4% - Scanning Televsion
Mar 25, 2024 12:58:37.831 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2/Top Gear/Season 01 (parent: yes)
Mar 25, 2024 12:58:37.831 [139679872604984] DEBUG - Skipping over directory 'Top Gear/Season 01', as nothing has changed; removing 10 media items from map.
Mar 25, 2024 12:58:37.832 [139679872604984] DEBUG - Activity: updated activity 8c2bf391-dcc6-4267-88bc-30b1347e9dc1 - completed 2.4% - Scanning Televsion
Mar 25, 2024 12:58:37.832 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2/Top Gear/Season 03 (parent: yes)
Mar 25, 2024 12:58:37.832 [139679872604984] DEBUG - Skipping over directory 'Top Gear/Season 03', as nothing has changed; removing 9 media items from map.
Mar 25, 2024 12:58:37.832 [139679872604984] DEBUG - Activity: updated activity 8c2bf391-dcc6-4267-88bc-30b1347e9dc1 - completed 2.5% - Scanning Televsion
Mar 25, 2024 12:58:37.832 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2/Top Gear/Season 02 (parent: yes)
Mar 25, 2024 12:58:37.833 [139679872604984] DEBUG - Skipping over directory 'Top Gear/Season 02', as nothing has changed; removing 10 media items from map.
Mar 25, 2024 12:58:37.833 [139679872604984] DEBUG - Activity: updated activity 8c2bf391-dcc6-4267-88bc-30b1347e9dc1 - completed 2.5% - Scanning Televsion
Mar 25, 2024 12:58:37.833 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2/Top Gear/Season 04 (parent: yes)
Mar 25, 2024 12:58:37.834 [139679872604984] DEBUG - Skipping over directory 'Top Gear/Season 04', as nothing has changed; removing 10 media items from map.
Mar 25, 2024 12:58:37.834 [139679872604984] DEBUG - Activity: updated activity 8c2bf391-dcc6-4267-88bc-30b1347e9dc1 - completed 2.5% - Scanning Televsion
Mar 25, 2024 12:58:37.834 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2/Top Gear/Season 05 (parent: yes)
Mar 25, 2024 12:58:37.835 [139679872604984] DEBUG - Skipping over directory 'Top Gear/Season 05', as nothing has changed; removing 9 media items from map.
Mar 25, 2024 12:58:37.835 [139679872604984] DEBUG - Activity: updated activity 8c2bf391-dcc6-4267-88bc-30b1347e9dc1 - completed 2.6% - Scanning Televsion
Mar 25, 2024 12:58:37.835 [139679872604984] DEBUG - Scanner: Processing directory /share/glockner/media/tv2/Top Gear/Season 13 (parent: yes)
Mar 25, 2024 12:58:37.741 [139679821605688] DEBUG - Library Updater: Requested that section 2 be updated, force=0, deep=0, subdir=/share/glockner/media/tv2 iTunes=0
Finishing the scan
Mar 25, 2024 12:59:00.652 [139679872604984] DEBUG - Collection: Refreshed visibility in section 2 in 0ms.
Mar 25, 2024 12:59:00.652 [139679872604984] DEBUG - Activity: updated activity 879b267d-e029-411d-9ada-e3e61144a1bb - completed 100.0% - Scanning Televsion
Mar 25, 2024 12:59:00.652 [139679872604984] DEBUG - Refreshing section 2 of type: 2
Mar 25, 2024 12:59:00.676 [139679766494008] DEBUG - Request: [192.168.0.13:49946 (Subnet)] GET /media/providers (6 live) #130f GZIP Signed-in Token (ChuckPA) (Chrome)
Mar 25, 2024 12:59:00.677 [139679883926328] DEBUG - Completed: [192.168.0.13:49946] 200 GET /media/providers (6 live) #130f GZIP 1ms 5902 bytes (pipelined: 3)
Mar 25, 2024 12:59:00.685 [139679766494008] DEBUG - Request: [192.168.0.13:49930 (Subnet)] GET /media/providers (6 live) #2444 TLS GZIP Signed-in Token (ChuckPA) (Chrome)
Mar 25, 2024 12:59:00.686 [139679886035768] DEBUG - Completed: [192.168.0.13:49930] 200 GET /media/providers (6 live) #2444 TLS GZIP 1ms 6033 bytes (pipelined: 6)
Mar 25, 2024 12:59:00.691 [139679766494008] DEBUG - Request: [192.168.0.13:59422 (Subnet)] GET /media/providers (6 live) #1313 TLS GZIP Signed-in Token (ChuckPA) (Chrome)
Mar 25, 2024 12:59:00.692 [139679883926328] DEBUG - Completed: [192.168.0.13:59422] 200 GET /media/providers (6 live) #1313 TLS GZIP 1ms 6033 bytes (pipelined: 3)
Mar 25, 2024 12:59:00.714 [139679808949048] DEBUG - Refreshing 0 IDs.
Mar 25, 2024 12:59:00.714 [139679872604984] DEBUG - Activity: registered new activity bbf3512f-b9e1-4dfa-b7eb-d2f5643f46e0 - "Processing subscriptions"
Mar 25, 2024 12:59:00.714 [139679872604984] DEBUG - Activity: Ended activity 879b267d-e029-411d-9ada-e3e61144a1bb.
Mar 25, 2024 12:59:00.714 [139679806839608] DEBUG - Grabber: Cleaning up orphaned grabs.
Mar 25, 2024 12:59:00.714 [139679806839608] DEBUG - Grabber: Cleaned up 0 decrepit directories in 0.0 sec.
Mar 25, 2024 12:59:00.715 [139679806839608] DEBUG - Activity: registered new activity cce4b5a9-c74e-4a12-be18-a3f71dfb018f - "Processing subscriptions"
Mar 25, 2024 12:59:00.715 [139679806839608] DEBUG - Subscription: Scheduling subscriptions.
Mar 25, 2024 12:59:00.715 [139679806839608] DEBUG - Subscription: Initialized 0 schedulers.
Mar 25, 2024 12:59:00.715 [139679806839608] DEBUG - Subscription: Starting with 0 grabs, scheduled 0 active ones preemptively.
Mar 25, 2024 12:59:00.715 [139679806839608] DEBUG - Subscription: Scheduled all subscriptions in 0 ms.
Mar 25, 2024 12:59:00.715 [139679806839608] DEBUG - Activity: Ended activity cce4b5a9-c74e-4a12-be18-a3f71dfb018f.
Mar 25, 2024 12:59:00.715 [139679806839608] DEBUG - Subscription: There are 0 active grabs at the end.
Mar 25, 2024 12:59:00.715 [139679806839608] DEBUG - Activity: Ended activity bbf3512f-b9e1-4dfa-b7eb-d2f5643f46e0.
Mar 25, 2024 12:59:00.715 [139679806839608] DEBUG - Subscription: Refreshed all content in 1 ms.
Mar 25, 2024 12:59:00.727 [139679766494008] DEBUG - Request: [192.168.0.13:49930 (Subnet)] GET /library/sections (6 live) #2460 TLS GZIP Signed-in Token (ChuckPA) (Chrome)
Mar 25, 2024 12:59:00.727 [139679883926328] DEBUG - Completed: [192.168.0.13:49930] 200 GET /library/sections (6 live) #2460 TLS GZIP 0ms 1069 bytes (pipelined: 7)
Mar 25, 2024 12:59:00.780 [139679766494008] DEBUG - Request: [192.168.0.13:49946 (Subnet)] GET /media/providers (6 live) #245e GZIP Signed-in Token (ChuckPA) (Chrome)
Mar 25, 2024 12:59:00.782 [139679886035768] DEBUG - Completed: [192.168.0.13:49946] 200 GET /media/providers (6 live) #245e GZIP 1ms 5896 bytes (pipelined: 4)
Mar 25, 2024 12:59:00.784 [139679766494008] DEBUG - Request: [192.168.0.13:49930 (Subnet)] GET /media/providers (6 live) #247b TLS GZIP Signed-in Token (ChuckPA) (Chrome)
Mar 25, 2024 12:59:00.785 [139679883926328] DEBUG - Completed: [192.168.0.13:49930] 200 GET /media/providers (6 live) #247b TLS GZIP 1ms 6027 bytes (pipelined: 8)
Mar 25, 2024 12:59:00.788 [139679766494008] DEBUG - Request: [192.168.0.13:59422 (Subnet)] GET /media/providers (6 live) #2462 TLS GZIP Signed-in Token (ChuckPA) (Chrome)
Mar 25, 2024 12:59:00.789 [139679886035768] DEBUG - Completed: [192.168.0.13:59422] 200 GET /media/providers (6 live) #2462 TLS GZIP 1ms 6027 bytes (pipelined: 4)
Mar 25, 2024 12:59:20.476 [139679766494008] DEBUG - Request: [192.168.0.13:49930 (Subnet)] GET /:/prefs (6 live) #247f TLS GZIP Signed-in Token (ChuckPA) (Chrome)
Mar 25, 2024 12:59:20.479 [139679886035768] DEBUG - Completed: [192.168.0.13:49930] 200 GET /:/prefs (8 live) #247f TLS GZIP 3ms 9137 bytes (pipelined: 9)
Mar 25, 2024 12:59:20.480 [139679766494008] DEBUG - Request: [192.168.0.13:54020 (Subnet)] GET /accounts/1 (8 live) #1291 TLS GZIP Signed-in Token (ChuckPA) (Chrome)
Mar 25, 2024 12:59:20.480 [139679854521144] DEBUG - Request: [192.168.0.13:54032 (Subnet)] GET /myplex/account (8 live) #2482 TLS GZIP Signed-in Token (ChuckPA) (Chrome)
Mar 25, 2024 12:59:20.480 [139679886035768] DEBUG - Completed: [192.168.0.13:54020] 200 GET /accounts/1 (8 live) #1291 TLS GZIP 0ms 651 bytes (pipelined: 1)
Mar 25, 2024 12:59:20.480 [139679886035768] DEBUG - Completed: [192.168.0.13:54032] 200 GET /myplex/account (8 live) #2482 TLS GZIP 0ms 4742 bytes (pipelined: 1)
Mar 25, 2024 12:59:22.095 [139679766494008] DEBUG - Request: [192.168.0.13:54038 (Subnet)] GET /diagnostics/logs (7 live) #2483 TLS GZIP Signed-in Token (ChuckPA) (Chrome)
Mar 25, 2024 12:59:22.095 [139679766494008] DEBUG - [Req#2483] Diagnostics: Building logfile zip
No Music was scanned.
At this point:
- PMS doesn’t arbitrarily scan Music when updating other content (as demonstrated here)
- Occam’s Razor - There’s a symbolic link or typo somewhere
- There is a filesystem corruption or implementation bug.