Slow Media Scanning

Server Version#: 1.25.7.5604
Player Version#:

Every time I make changes to my media it takes a while for the media scanner to process the changes. Running on Windows Server 2019 and media is stored on a local Raid 5 volume. Database and Plex installation is on a local NVME drive. Looking at logs on every change I see the following (for this test I moved a folder outside of the monitored area).

Mar 15, 2022 11:39:37.632 [9772] INFO - Library section 1 (Movies) will be updated because of a change in “F:\Plex\Movies\Spider-Man No Way Home (2021)”
Mar 15, 2022 11:39:38.068 [8604] WARN - [Transcode] Got a transcode session ping without a valid session ID.
Mar 15, 2022 11:39:42.185 [8604] ERROR - Unable to find client profile for device; platform=webOS, platformVersion=4.9.0, device=webOS 4.9.0, model=49SM8600PUA
Mar 15, 2022 11:39:52.545 [1080] INFO - AutoUpdate: no updates available
Mar 15, 2022 11:39:53.903 [8604] WARN - QueryParser: Invalid field ‘sectionID’ found, ignoring.
Mar 15, 2022 11:39:53.903 [8604] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:39:53.903 [8604] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.
Mar 15, 2022 11:39:53.903 [1080] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:39:53.903 [1080] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.
Mar 15, 2022 11:39:53.908 [11112] WARN - QueryParser: Invalid field ‘sectionID’ found, ignoring.
Mar 15, 2022 11:39:53.908 [11112] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:39:53.908 [11112] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.
Mar 15, 2022 11:39:53.909 [9364] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:39:53.909 [9364] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.
Mar 15, 2022 11:39:54.465 [11112] WARN - QueryParser: Invalid field ‘sectionID’ found, ignoring.
Mar 15, 2022 11:39:54.465 [11112] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:39:54.465 [11112] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.
Mar 15, 2022 11:39:54.469 [8604] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:39:54.469 [8604] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.
Mar 15, 2022 11:39:57.186 [1080] ERROR - Unable to find client profile for device; platform=webOS, platformVersion=4.9.0, device=webOS 4.9.0, model=49SM8600PUA
Mar 15, 2022 11:40:00.214 [1080] WARN - [Transcode] Got a transcode session ping without a valid session ID.
Mar 15, 2022 11:40:08.105 [11112] WARN - [Transcode] Got a transcode session ping without a valid session ID.
Mar 15, 2022 11:40:12.190 [11112] ERROR - Unable to find client profile for device; platform=webOS, platformVersion=4.9.0, device=webOS 4.9.0, model=49SM8600PUA
Mar 15, 2022 11:40:27.187 [11112] ERROR - Unable to find client profile for device; platform=webOS, platformVersion=4.9.0, device=webOS 4.9.0, model=49SM8600PUA
Mar 15, 2022 11:40:30.249 [11112] WARN - [Transcode] Got a transcode session ping without a valid session ID.
Mar 15, 2022 11:40:37.642 [9940] INFO - Notification: Scanning the “Movies” section -
Mar 15, 2022 11:40:37.702 [8256] WARN - QueryParser: Invalid field ‘sectionID’ found, ignoring.
Mar 15, 2022 11:40:37.702 [8256] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:37.702 [8256] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:37.707 [9212] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:37.707 [9212] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:37.711 [12052] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:37.711 [12052] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:37.711 [3900] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:37.711 [3900] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:38.106 [9212] WARN - [Transcode] Got a transcode session ping without a valid session ID.
Mar 15, 2022 11:40:42.187 [9212] ERROR - Unable to find client profile for device; platform=webOS, platformVersion=4.9.0, device=webOS 4.9.0, model=49SM8600PUA
Mar 15, 2022 11:40:42.730 [9940] WARN - Held transaction for too long (E:\jenkins\server\3585609998\Library\MetadataCollection.cpp:479): 0.156250 seconds
Mar 15, 2022 11:40:42.899 [9940] WARN - Held transaction for too long (E:\jenkins\server\3585609998\Library\MetadataCollection.cpp:479): 0.156250 seconds
Mar 15, 2022 11:40:42.934 [9940] INFO - Notification: Library scan complete - Extra information may still be downloading from the Internet
Mar 15, 2022 11:40:46.527 [11112] WARN - QueryParser: Invalid field ‘sectionID’ found, ignoring.
Mar 15, 2022 11:40:46.527 [11112] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:46.527 [11112] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:46.527 [8256] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:46.527 [8256] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:46.531 [12052] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:46.531 [12052] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:46.531 [3900] WARN - QueryParser: Invalid field ‘contentDirectoryID’ found, ignoring.
Mar 15, 2022 11:40:46.531 [3900] WARN - QueryParser: Invalid field ‘pinnedContentDirectoryID’ found, ignoring.

I am looking to speed up this process so that Plex properly recognizes when a movie has been moved.

Also its set for scan automatically and partial scan.

Plex Media Server Logs_2022-03-15_11-54-23.zip (1.6 MB)

Partial scans are most effective if the changed media resides in its own folder, e.g.) D:\Movies\Movie Name (2022)\Movie Name (2022).mkv. If all your files are in one folder then that entire folder gets rescanned.

I have my media sorted exactly as Plex recommends, Root Folder is Movies and each Movie has its own appropriately named Subfolder

Mar 15, 2022 11:39:37.632 [9772] INFO - Library section 1 (Movies) will be updated because of a change in “F:\Plex\Movies\Spider-Man No Way Home (2021)”

Im concerned over all of the WARN statements for Queryparser and the WARN statements for Held Transaction for too long which occur with every library scan

Your logs aren’t helpful here as debug logging is disabled. Enable that first, then recreate the slow scanning then provide the fresh logs.

How to enable debug logging: Reporting issues with Plex Media Server | Plex Support

Thank you for your help with this!

Enabled Debug and used the same movie again.
Removed Item
Started - 12:57:25.156
Finished - 12:58:30.400

Added Item Back
Started - 12:59:10.099
Finished - 13:00:11.566
Plex Media Server Logs_2022-03-15_13-00-35.zip (1.8 MB)

There isn’t actually anything wrong here. When the server (on Windows) detects file changes in a path it will wait for 60 seconds before initiating the scan if you have automatic scans enabled.

So the update is actually happening in a good time.

1 Like

Well, that’s good to know it’s working as intended.

I Do have a follow-up question though.
Previously (maybe a year or almost two ago) any time I updated a movie (deleted and replaced it) the movie would get appear in the recently added category. I did and still do have (empty trash automatically after every scan enabled). So I thought my delay in the scanning was what caused this to no longer happen. Is this something that was changed in an update, or is there any way to change that 60 second wait time?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.