Server Version#: 1.40.2.8395
Player Version#: 1.92.1.140-8e1f68f5
I am having an issue where the Plex library scanner will run forever and consume lots of resources after not being able to find a file (which exists). Here’s the last entries from the scanner in the logs:
May 09, 2024 14:54:46.836 [140258019150648] DEBUG - Scanner: Processing directory /media/music/Dead South, The (parent: yes)
May 09, 2024 14:54:46.838 [140258019150648] DEBUG - Skipping over directory 'Dead South, The', as nothing has changed; removing 0 media items from map.
May 09, 2024 14:54:46.839 [140258019150648] DEBUG - Scanner: Processing directory /media/music/Dead South, The/Chains & Stakes (2024) (parent: yes)
May 09, 2024 14:54:46.843 [140258019150648] DEBUG - File '/media/music/Dead South, The/Chains & Stakes (2024)/The Dead South - Chains & Stakes - 01 - Blood On The Mind.flac' didn't exist, can't skip.
After that the scanner just hangs forever consuming a full core on my server.
Oddly enough the file does exist:
❯ ls -al /tank/media/music/Dead\ South,\ The/Chains\ \&\ Stakes\ \(2024\)/
total 221565
drwxrwxr-x 2 nobody zfswrite 15 May 7 21:37 ./
drwxrwxr-x 6 nobody zfswrite 6 Mar 19 22:44 ../
-rwxrwxr-x 1 nobody zfswrite 21837137 Mar 19 21:45 'The Dead South - Chains & Stakes - 01 - Blood on the Mind.flac'*
-rwxrwxr-x 1 nobody zfswrite 15590702 Mar 19 21:45 'The Dead South - Chains & Stakes - 02 - Yours to Keep.flac'*
-rwxrwxr-x 1 nobody zfswrite 9690833 Mar 19 21:45 'The Dead South - Chains & Stakes - 03 - 20 Mile Jump.flac'*
-rwxrwxr-x 1 nobody zfswrite 5849754 Mar 19 21:44 'The Dead South - Chains & Stakes - 04 - Where Has the Time Gone.flac'*
-rwxrwxr-x 1 nobody zfswrite 25147739 Mar 19 21:44 'The Dead South - Chains & Stakes - 05 - A Little Devil.flac'*
-rwxrwxr-x 1 nobody zfswrite 24890643 Mar 19 21:44 'The Dead South - Chains & Stakes - 06 - Son of Ambrose.flac'*
-rwxrwxr-x 1 nobody zfswrite 6427613 Mar 19 21:44 'The Dead South - Chains & Stakes - 07 - Clemency.flac'*
-rwxrwxr-x 1 nobody zfswrite 24591987 Mar 19 21:45 'The Dead South - Chains & Stakes - 08 - Completely, Sweetly.flac'*
-rwxrwxr-x 1 nobody zfswrite 22878546 Mar 19 21:44 'The Dead South - Chains & Stakes - 09 - A Place I Hardly Know.flac'*
-rwxrwxr-x 1 nobody zfswrite 14974480 Mar 19 21:44 'The Dead South - Chains & Stakes - 10 - The Cured Contessa.flac'*
-rwxrwxr-x 1 nobody zfswrite 27385030 Mar 19 21:44 'The Dead South - Chains & Stakes - 11 - Tiny Wooden Box.flac'*
-rwxrwxr-x 1 nobody zfswrite 4099801 Mar 19 21:44 'The Dead South - Chains & Stakes - 12 - Yore.flac'*
-rwxrwxr-x 1 nobody zfswrite 23464774 Mar 19 21:45 'The Dead South - Chains & Stakes - 13 - Father John.flac'*
File permissions are identical to those of the rest of the media that doesn’t get the scanner stuck.
The scanner log doesn’t actually show anything from that song, it ends at the media right before it:
May 09, 2024 14:54:46.916 [140354986987264] DEBUG - [FFMPEG] - Opening '/media/music/Lucky Boys Confusion/Stormchasers (2017)/Lucky Boys Confusion - Stormchasers - 02 - It’s After Midnight.mp3' for reading
May 09, 2024 14:54:46.916 [140354986987264] DEBUG - [FFMPEG] - Setting default whitelist 'file,crypto,data'
May 09, 2024 14:54:46.927 [140354986987264] DEBUG - [FFMPEG] - Format mp3 probed with size=131072 and score=51
May 09, 2024 14:54:46.928 [140354986987264] DEBUG - [FFMPEG] - id3v2 ver:4 flags:80 len:116379
This issue is driving me nuts because when the scanner hangs it consumes A LOT of resources, and also doesn’t scan any libraries that are alphabetically after my music library, so they never get updated.
I also tried a complete fresh install of the plex server, and still got the same issue, so I don’t think it’s a corrupted database issue?
Any help would be greatly appreciated. Let me know if I can add any additional information.