Automatic/Partial scans taking 9 minutes to add/remove a single episode

Server Version#: 1.13.8.5388
Player Version#:

I am running an Unraid Docker and one day I noticed things were taking a long time to add. Normally I am not poking around so I don’t know how long this has been going on but highlighted from the scanner logs below it just sits there and keeps running “Retrieve Items” for 8-9 minutes then adds/removes the episode. Just for reference it takes about 8 minutes to scan the entire TV shows section, and its taking 9 minutes to auto add one episode.

Things I’ve done…

  • Optimized the Database
  • Cleaned Bundles
  • Checked if there were any orphaned directories in the “add folders” section of TV Shows

Sep 18, 2018 08:52:27.211 [0x1548fce9c700] INFO - Plex Media Scanner v1.13.8.5388-509720743 - Docker Docker Container x86_64 - build: linux-ubuntu-x86_64 - GMT -04:00
Sep 18, 2018 08:52:27.212 [0x1548fce9c700] INFO - Linux version: 4.14.40-unRAID, language: C
Sep 18, 2018 08:52:27.212 [0x1548fce9c700] INFO - Processor Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz
Sep 18, 2018 08:52:27.212 [0x1548fce9c700] INFO - /usr/lib/plexmediaserver/Plex Media Scanner --scan --refresh --section 6 --directory /data/Media/Television/The Great American Read/Season 01
Sep 18, 2018 08:52:27.226 [0x154907c24800] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.13.0, threadsafe=1
> Sep 18, 2018 08:52:27.415 [0x154907c24800] DEBUG - It took 30.000000 ms to retrieve 2279 items.
> Sep 18, 2018 08:53:51.982 [0x154907c24800] DEBUG - It took 30.000000 ms to retrieve 2279 items.
> Sep 18, 2018 08:55:16.604 [0x154907c24800] DEBUG - It took 30.000000 ms to retrieve 2279 items.
> Sep 18, 2018 08:56:41.230 [0x154907c24800] DEBUG - It took 20.000000 ms to retrieve 2279 items.
> Sep 18, 2018 08:58:08.444 [0x154907c24800] DEBUG - It took 30.000000 ms to retrieve 2279 items.
> Sep 18, 2018 08:59:31.100 [0x154907c24800] DEBUG - It took 40.000000 ms to retrieve 2279 items.
Sep 18, 2018 09:00:54.622 [0x154907c24800] DEBUG - Scanning TV Shows using en(Plex Series Scanner) with 3 current media items and 1 section locations in the database…
Sep 18, 2018 09:00:54.623 [0x1548f6bff700] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/notify/cullTimeline?librarySectionID=6&sinceTime=1537274454
Sep 18, 2018 09:00:54.626 [0x1548f6bff700] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/:/metadata/notify/cullTimeline?librarySectionID=6&sinceTime=1537274454
Sep 18, 2018 09:00:54.691 [0x154907c24800] DEBUG - Performing a scan with ‘Plex Series Scanner’ (language: en virtual: 0).

If this isn’t enough information is there another log I can look into?

Well I’m going through clearing out what I can just in case it’s interfering with scanner. I have about 24GB of Sync videos sitting in PlexMediaServer\Library\Application Support\Plex Media Server\Cache\Transcode can I delete all of that without a problem?

Nothing has changed and i cant figure it out, what is making the automatic scanner take so long to cycle? This example took 10 minutes to add one episode.

I tried looking at the log between those times and there is nothing that stands out, has anyone ever seen this happen? Its not a slow query error, scanning the items takes 50ms…but there is a 2 to 3 minute pause in between what I assume is each folder?

Nov 11, 2018 22:03:35.816 [0x14ba565d1800] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.13.0, threadsafe=1
Nov 11, 2018 22:03:36.100 [0x14ba565d1800] DEBUG - It took 50.000000 ms to retrieve 2495 items.
Nov 11, 2018 22:05:49.685 [0x14ba565d1800] DEBUG - It took 40.000000 ms to retrieve 2495 items.
Nov 11, 2018 22:07:56.052 [0x14ba565d1800] DEBUG - It took 30.000000 ms to retrieve 2495 items.
Nov 11, 2018 22:09:58.726 [0x14ba565d1800] DEBUG - It took 40.000000 ms to retrieve 2495 items.
Nov 11, 2018 22:11:56.825 [0x14ba565d1800] DEBUG - It took 30.000000 ms to retrieve 2495 items.
Nov 11, 2018 22:13:50.858 [0x14ba565d1800] DEBUG - Scanning TV Shows using en(Plex Series Scanner) with 6 current media items and 1 section locations in the database…

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