tubearchivist / tubearchivist

Your self hosted YouTube media server

Home Page:https://www.tubearchivist.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Multiple rescans running paralelly

gautamkrishnar opened this issue · comments

I've read the documentation

Operating System

Linux Arm

Your Bug Report

Describe the bug

I am running tube archivist with a hourly rescan interval. Sometimes, the rescan gets stuck and will go into endless scanning as shown in the image.

Screenshot 2023-12-06 at 1 39 05 AM

Steps To Reproduce

  1. Set hourly rescan
  2. wait

Expected behavior

When re-scanning, Tubearchivist should cancel the previously running scan. there should be an option in the UI to enable this as a checkbox so that this will be an opt-in feature.

Relevant log output

n/a

Anything else?

n/a

That shouldn't be happening, you should only be able to have one rescan process running:
https://github.com/tubearchivist/tubearchivist/blob/master/tubearchivist/home/tasks.py#L178-L182

There must be something else going on. What do the logs say? And also probably rescan once per hour is too much, you might be getting blocked by YT at this point.

Or maybe that's just the notification getting stuck?

@bbilly1 will dig into it this weekend. I agree, most probably its youtube blocking the requests. Will let you know.

Hello @bbilly1 I think have the same or similar thing happening...

It gets stuck like this.

Screenshot 2023-12-10 at 07 54 41

TA container Logs:
ta_logs.txt

Regards

For me its just youtube throttling my IP

Ah, I see, I think that makes my issue different then. Since yours is backing up with scanning subscriptions, mine is reindexes...

I'll make another issue, if I see it again, as I restarted TA.