# Same media constantly "Finished Processing" over and over

**URL:** <https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [June 1, 2021, 6:52pm UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801 "2021-06-01T18:52:33Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![edrock200](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@edrock200](https://forums.plex.tv/u/edrock200)\
**Post date:** [June 1, 2021, 6:52pm UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/1 "2021-06-01T18:52:33Z")

</div>

Server Version#: Version 1.23.2.4600 (Docker Container, Host is Ubuntu 18.04)  
Player Version#: N/A

I’m having a bizarre issue with Plex in the last few weeks. Both the TV and Movie scanner are on the latest updated scanners.

When scanning, especially movies, the same Media gets reprocessed over and over again. I cannot figure out what is triggering this. I looked through the logs and see errors such as the following:

```auto
SQLITE3:0x80000001, 28, double-quoted string literal: "2021-05-17 17:00:00"

File '/path/to/movie.avi' didn't exist, can't skip.

Noting item as needing media analysis, scanning=0, streams=0, missing channels=0, streamability=0, size=0, time=1.

Unknown metadata type:

```

The “time=1” intrigued me because I thought maybe something was modifiying the timestamps of my media, but I traced a few items that constantly reprocess and they have no changed timestamps nor have they been updated or “touched.”

I don’t know if this is coincidence but the items that trigger all do appear to have multiple versions of that same movie/show that get merged into one item.

I’ve tried the following:  
Clean bundles, optimize db, empty trash, rescan 2x  
sqldump plex main db and blobs db and rebuild  
delete a media item in quesiton, scan, empty trash, readd  
Untick “use local assets” and scan, empty trash, scan 2x

It also appears to be affecting at least one other person:

> [@Certain files are being analyzed on every scan](https://forums.plex.tv/t/certain-files-are-being-analyzed-on-every-scan/697907):
>
> It seems that files–especially duplicates, that are already recognized/matched/analyzed are being analyzed again during a library scan, which is seemingly slowing down the scanning process. These appear with the words, didn't exist, can't skip which is rather ambiguous because these already exist in Plex. ~ $ tail -f /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Logs/Plex\ Media\ Server.log|grep "didn't exist" Mar 07, 2021 18:41:29.655 [0xffff68ff9190] DEBUG - File …

I’ve attached my logs to this post as well.  
[Plex Media Server Logs\_2021-06-01\_14-25-17.zip](https://forums.plex.tv/uploads/short-url/lEJGVVAvKEPe9pugqkolyaN800F.zip) (1.8 MB)

The other odd issue that started around the same time is even though I have “Prefer Local Metadata” unticked, Plex is picking up the titles in the file metadata. If I refresh metadata, it then correctly uses the Plex Agent matched title. Not sure if these are somehow related.

None of this has worked. I really, really don’t want to do “the [Plex Dance](https://forums.plex.tv/t/the-plex-dance/197064),” would like to figure out the root cause of this. I’ve attached the plex logs. Thanks in advance for any assistance.  
-Ed

---

<div class="post-metadata">

**Author:** ![andrewmcd71](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@andrewmcd71](https://forums.plex.tv/u/andrewmcd71)\
**Post date:** [June 4, 2021, 9:34am UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/2 "2021-06-04T09:34:18Z")

</div>

I’m having the same issue. Hoping a plex dev can take a look.

---

<div class="post-metadata">

**Author:** ![edrock200](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@edrock200](https://forums.plex.tv/u/edrock200)\
**Post date:** [June 4, 2021, 3:53pm UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/3 "2021-06-04T15:53:28Z")

</div>

Don’t everyone answer at once 😁 Jk  
But seriously any help from Plex devs would be appreciated. Also any details on what triggers the new scanners to “process” or “finish processing” new media would be appreciated. E.g. what triggers the time flag? File mtime? Folder mtime? Both? Etc. Thanks in advance again for any insight.

---

<div class="post-metadata">

**Author:** ![drzoidberg33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/drzoidberg33/32/4184_2.png) [@drzoidberg33](https://forums.plex.tv/u/drzoidberg33)\
**Post date:** [June 4, 2021, 4:26pm UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/4 "2021-06-04T16:26:00Z")

</div>

From a look at the logs it looks you have the same files in two different paths and both those paths are added to your library.

The two paths I spotted are:

`/Users/andrewmcdonald/Downloads/My Drive_andrewmcdonald/Plex/Movies`  
`/Volumes/Macintosh HD/Volumes/Plex Cloud Servers_andrewmcdonald/Shared drives/PlexCloudServers/Media/Movies`

It keeps scanning in the one file thinking it’s new then when we go to add it we see the file already exists in the database and skip it. Get rid of one of the paths from the library.

---

<div class="post-metadata">

**Author:** ![edrock200](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@edrock200](https://forums.plex.tv/u/edrock200)\
**Post date:** [June 4, 2021, 11:21pm UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/5 "2021-06-04T23:21:46Z")

</div>

Thank you. These are two different paths though. Are you saying I’d you have a file with same hashed in two different paths, plex will fight back and forth? Is this a behavior of the new scanner? The old scanner didn’t do this. Thanks for the reply!

---

<div class="post-metadata">

**Author:** ![andrewmcd71](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@andrewmcd71](https://forums.plex.tv/u/andrewmcd71)\
**Post date:** [June 4, 2021, 11:29pm UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/6 "2021-06-04T23:29:25Z")

</div>

That seems a bit silly. 2 people’s collections combined into one library would cause these issues. Especially having 4k and non 4k combined. I want them combined so I don’t get dupes in my “continue watching”. It’s a cleaner set up than having its own 4k library. This way at home on my main device it auto plays 4k version and at work on work computer it plays the 1080p version all automatically.

---

<div class="post-metadata">

**Author:** ![edrock200](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@edrock200](https://forums.plex.tv/u/edrock200)\
**Post date:** [June 5, 2021, 10:23pm UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/7 "2021-06-05T22:23:19Z")

</div>

Could you elaborate a bit one what the new scanner does differently so I can fix the problem correctly. This doesn’t happen if I revert to the old scanner only the new one. The versions of the like movies in the two paths have different filenames, but the file sizes are identical, so is it when hash matches occur or are you saying the new scanner doesn’t support more than one version of a movie period?

---

<div class="post-metadata">

**Author:** ![drzoidberg33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/drzoidberg33/32/4184_2.png) [@drzoidberg33](https://forums.plex.tv/u/drzoidberg33)\
**Post date:** [June 6, 2021, 9:21am UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/8 "2021-06-06T09:21:26Z")

</div>

There is no difference except the new scanner makes it visible. The code that checks for duplicates is the same code between both scanners.

---

<div class="post-metadata">

**Author:** ![edrock200](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@edrock200](https://forums.plex.tv/u/edrock200)\
**Post date:** [June 6, 2021, 2:25pm UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/9 "2021-06-06T14:25:49Z")

</div>

Thank you for the reply. But something different is definitely happening as the legacy scanner can complete a scan in minutes, whereas the new one takes hours, and the only difference, at least in alerts, is the finished processing entries. What’s more odd is if a second scan is run directly after the first with the new agents, it seems to fly through. But several hours later, “finished processing” floods brings it to a crawl again.

Is there any scanner logic that can be shared. E.g. what is the scanner looking for specifically, for example:  
Enumerate folders and files  
Check file time stamp  
Check file size  
Check folder time stamp  
Check file hash  
Deltas? → process

I have noticed, at least for the ones spot checked, the filenames and dates are different but the sizes are identical. I thought this meant they can’t have the same hash but I could be wrong. Also this only happens on the new movie scanner, not the new tv scanner.  
Ed

---

<div class="post-metadata">

**Author:** ![edrock200](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@edrock200](https://forums.plex.tv/u/edrock200)\
**Post date:** [June 7, 2021, 4:05pm UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/10 "2021-06-07T16:05:40Z")

</div>

The new scanner also seems to delete vob files from the library. For now I’ve reverted to the legacy scanner and once again, everything completes in minutes.

If @drzoidberg33 could clarify what you mean by this:  
“It keeps scanning in the one file thinking it’s new then when we go to add it we see the file already exists in the database and skip it.”

I would greatly appreciate it. Again the files are in different paths and even different filenames in most cases in my spot checks. So is it a file size match (exact same byte size)? Or are you saying the new movie scanner will do this anytime there’s more than one version of a movie in the same library? Fwiw the new tv scanner agent doesn’t behave the same way.

---

<div class="post-metadata">

**Author:** ![edrock200](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@edrock200](https://forums.plex.tv/u/edrock200)\
**Post date:** [June 8, 2021, 2:00pm UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/11 "2021-06-08T14:00:36Z")

</div>

@drzoidberg33 even if you can point me towards any scanner documentation, it would be much appreciated. Really want to narrow this issue down to understand what is happening.

---

<div class="post-metadata">

**Author:** ![andrewmcd71](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@andrewmcd71](https://forums.plex.tv/u/andrewmcd71)\
**Post date:** [June 8, 2021, 2:13pm UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/12 "2021-06-08T14:13:18Z")

</div>

I have the same exact issue. Anything clarification from the dev above?

---

<div class="post-metadata">

**Author:** ![drzoidberg33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/drzoidberg33/32/4184_2.png) [@drzoidberg33](https://forums.plex.tv/u/drzoidberg33)\
**Post date:** [June 9, 2021, 9:14am UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/13 "2021-06-09T09:14:03Z")

</div>

You have files with the same hash (i.e. the same file) in two different paths. Removing the duplicate files/path will resolve the issue.

---

<div class="post-metadata">

**Author:** ![edrock200](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@edrock200](https://forums.plex.tv/u/edrock200)\
**Post date:** [June 9, 2021, 9:40pm UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/14 "2021-06-09T21:40:08Z")

</div>

Ok thank you!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [September 7, 2021, 9:40pm UTC](https://forums.plex.tv/t/same-media-constantly-finished-processing-over-and-over/719801/15 "2021-09-07T21:40:39Z")

</div>

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