kieraneglin / pinchflat

Your next YouTube media manager
GNU Affero General Public License v3.0
1.27k stars 23 forks source link

Active Tasks are stalling #468

Open daftz opened 4 days ago

daftz commented 4 days ago

It seems that after a while (half a day or so), the active tasks are stalling. For instance, I now see active tasks for almost all my sources and some started 5 hours ago.

When I restart the docker container the active tasks disappear and appear for a short while when a source is checked for new content, which is normal behaviour I think.

I've attached a screenshot.

Anything I can do to toubleshoot this issue?

Scherm­afbeelding 2024-11-11 om 16 26 56
kieraneglin commented 3 days ago

Hey there! Thanks for the report (:

That's definitely strange! I don't have any troubleshooting steps off the top of my head, but I'll look in and see what I can find.

For the two FastIndexingWorker tasks you've shown here, did those ever finish or do they just hang forever?

daftz commented 2 days ago

They seem to hang forever.

Below is the screenshot I just made. It's 08:10 now so those tasks haven been hanging there all night

Scherm­afbeelding 2024-11-13 om 08 08 42
daftz commented 2 days ago

Would like to add that PF is running on a NAS which is quite busy at certain times (downloading/unpacking things). It might be that PF is locking up because a task is taking too long to complete because of high write/read times on the NAS?

kieraneglin commented 2 days ago

That's possible! Would you mind attaching your logs? You can get them through Config > App Info.

I see two issues here. The first being that fast indexing attempts should not stack (ie: don't start a fast index if others haven't finished) and the other being that the jobs aren't finishing/termination correctly. A fast indexing run should take WELL under a minute in most cases so your logs would really help!

daftz commented 1 day ago

Here you go, thanks!

pinchflat-logs-2024-11-14.txt.zip