Loving this conversation with myself… I am no expert at looking at these logs.
I can see evidence of the music scanner hanging in the “Plex Media Server.log” but can’t figure out why the hang.
So the new media was “Bruckner Symphony #9”. The Scanner finds it here:
Jul 05, 2022 15:34:39.406 [0x7f575f828b38] DEBUG - Skipping over directory 'Bruckner', as nothing has changed; removing 0 media items from map.
Jul 05, 2022 15:34:39.407 [0x7f575f828b38] DEBUG - Scanner: Processing directory /mnt/plex01/plexlib/musicClassical/Bruckner/Symphony 9 (parent: yes)
Jul 05, 2022 15:34:39.409 [0x7f575f828b38] DEBUG - Directory had 3 files, database had 0 files, can't skip.
Jul 05, 2022 15:34:39.410 [0x7f575f828b38] DEBUG - Activity: updated activity 92714bf3-4ce1-43a0-bac8-0cd2a10cbe13 - completed 50.0% - Scanning Gowans Music
Jul 05, 2022 15:34:39.411 [0x7f575f828b38] DEBUG - Scanner: Processing directory /mnt/plex01/plexlib/musicClassical/Bruckner/Bruckner Symph #4 & Sibelius
So it finds the new folder and notes that it can’t skip. The next time Bruckner Symphony #9 is mentioned is… never during that scan:
Jul 05, 2022 15:34:40.477 [0x7f575f828b38] DEBUG - Scanner: Processing directory /mnt/plex01/plexlib/musicClassical/Bach/Sonatas and Partitas (parent: yes)
Jul 05, 2022 15:34:40.488 [0x7f575f828b38] DEBUG - Skipping over directory 'Bach/Sonatas and Partitas', as nothing has changed; removing 32 media items from map.
Jul 05, 2022 15:34:40.489 [0x7f575f828b38] DEBUG - Activity: updated activity 92714bf3-4ce1-43a0-bac8-0cd2a10cbe13 - completed 99.0% - Scanning Gowans Music
Jul 05, 2022 15:34:40.489 [0x7f575f828b38] DEBUG - Activity: updated activity 92714bf3-4ce1-43a0-bac8-0cd2a10cbe13 - completed 99.0% - Scanning Gowans Music
Jul 05, 2022 15:34:41.100 [0x7f57608f7b38] DEBUG - Request: [127.0.0.1:52906 (Loopback)] GET /user/services/acoustid (16 live) #871 GZIP Signed-in Token (danielg1976) (GowansPlex)
Jul 05, 2022 15:34:41.100 [0x7f575f7f4b38] DEBUG - Completed: [127.0.0.1:52906] 200 GET /user/services/acoustid (16 live) GZIP 0ms 498 bytes (pipelined: 1)
Jul 05, 2022 15:34:47.334 [0x7f575f7d1b38] DEBUG - Completed: [192.168.11.40:4907] 200 GET /player/proxy/poll?
So after updating to 99%, there are no more updates from the scanner. The status on the WebUI corroborated this, it was hung on “Bach Sonatas and Partitas” and the scan sat there for 4 minutes. After 4 minutes I tried to cancel it:
Jul 05, 2022 15:38:14.219 [0x7f575ec25b38] INFO - Request: [192.168.11.40:5939 (Allowed Network (Subnet))] DELETE /library/sections/10/refresh (7 live) #5e8e GZIP Signed-in
Jul 05, 2022 15:38:14.219 [0x7f575ec25b38] DEBUG - [Req#5e8e] Scanner [Plex Music]: Cancelling scan.
Jul 05, 2022 15:38:14.279 [0x7f5760871b38] DEBUG - Request: [192.168.11.40:5972 (Allowed Network (Subnet))] GET /library/sections/10/firstCharacter?type=10&sort=artist.titleSort%2Calbum.titleSort%2Calbum.year%2Ctrack.absoluteIndex%2Ctrack.index%2Ctrack.titleSort
After another minute of waiting, I went in and did a “Kill -9” on the scanner:
Jul 05, 2022 15:39:22.449 [0x7f575f7d1b38] DEBUG - Completed: [192.168.11.40:6119] 200 GET /library/sections/10/all?type=10&sort=artist.titleSort%2Calbum.titleSort%2Calbum.year%2Ctrack.absoluteIndex%2Ctrack.index%2Ctrack.titleSort%2Ctrack.id&includeCollections=1&includeExternalMedia=1 (9 live) GZIP Page 0-124 423ms 12072 bytes (pipelined: 5)
Jul 05, 2022 15:39:23.247 [0x7f575df20b38] ERROR - Error parsing content.
Jul 05, 2022 15:39:23.247 [0x7f575df20b38] ERROR - Error parsing XML: Error parsing file.
Jul 05, 2022 15:39:23.248 [0x7f575df20b38] DEBUG - Killing job.
Jul 05, 2022 15:39:23.248 [0x7f575df20b38] DEBUG - Signalling job ID 2448 with 9
Jul 05, 2022 15:39:23.248 [0x7f575df20b38] DEBUG - Native Scanner: Executed Match stage in 283.84 sec.
Jul 05, 2022 15:39:23.248 [0x7f5761155b38] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Media Scanner' exit code for process 2448 is -9 (signal: Killed)
Jul 05, 2022 15:39:23.248 [0x7f575df20b38] DEBUG - Native Scanner: Executed Add to Database stage in 0.00 sec.
Jul 05, 2022 15:39:23.248 [0x7f575df20b38] DEBUG - Native Scanner: Executed Media Analysis stage in 0.00 sec.
Jul 05, 2022 15:39:23.248 [0x7f575ec25b38] DEBUG - [Req#5e8e] Job was already killed, not killing again.
Jul 05, 2022 15:39:23.248 [0x7f575f828b38] DEBUG - Scanner [Plex Music]: Idle and left with 14772 media items.
Jul 05, 2022 15:39:23.253 [0x7f575f828b38] DEBUG - Removing 0 media items that were left.
Jul 05, 2022 15:39:23.253 [0x7f575f828b38] DEBUG - Removing 1 directories that were left.
Jul 05, 2022 15:39:23.255 [0x7f575f828b38] DEBUG - Deleting directory [Bruckner/Bruckner- Symphony No.9] (4393)
Jul 05, 2022 15:39:23.269 [0x7f575f828b38] DEBUG - Updating directory 'Bruckner' (ID 4178) to time 2022-07-05 15:24:39.
Jul 05, 2022 15:39:23.269 [0x7f575f828b38] DEBUG - Updating directory 'Bruckner/Symphony 9' (ID 4394) to time 2022-07-05 15:24:41.
Jul 05, 2022 15:39:23.391 [0x7f575f828b38] DEBUG - Collections: Found 0 collections tags in section 10.
I don’t know why the “Executed Match” stage was almost 5 minutes. Usually it finishes in less than 30 seconds. Maybe something was going on this time that took a lot longer and I needed to be more patient?
Obviously the Add to Database stage (which would have added Bruckner Symphony #9 to the DB) was 0 seconds as I’d killed the scanner I’m sure state was lost.
That’s pretty much it. Nothing else in the logs covers the period from 15:34:40 when it hits 99% to 15:39:14 where I try to cancel the scan. Then I kill the agent and restart the server, and it seems at that point like most of the logs just start over - but most of the old ones end at 15:33…
Anyway so it seems there isn’t really enough to go on. Maybe I’m mistaken, but looks like I just should hope it doesn’t happen again 