Open Tailslide opened 2 years ago
I know of an issues where the frontend (the manual search page) keeps requesting a search when no results return. As soon as results return, it stops.
But i've never seen the backlog search looping. Maybe your set the backlog search to a short interval?
It was set to 720 minutes.. I followed what the person in the linked issue did and went through my backlog and started marking things as no longer wanted and at some point it stopped this behavior but I think it will be back it has come and gone before.
Also I have tried closing the front end search page and the looping continues but I’m not sure how things work internally maybe a bunch of manual searches are queued up by that point?
Ok I can still make it happen.. I rebooted medusa, started a manual search and immediately closed the browser. Attached are the debug logs... looks like it was on it's fifth loop when I restarted medusa again.
@p0psicles Here is a fiddler capture opening the manual search attached above then closing the tab after it starts.
Hmm looks like it's just triggering one search from frondend
Found something interesting.. it's not running the same search over and over: Initially I asked for this
2022-01-15 13:33:24 INFO FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Beginning manual search for: Space 1999 - S00E01 - Message from Moonbase Alpha
But then on the loops it asked for these
2022-01-15 13:34:43 INFO FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Beginning manual search for: Space 1999 - S01E01 - Breakaway
2022-01-15 13:35:25 INFO FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Beginning manual search for: Space 1999 - S02E01 - The Metamorph
2022-01-15 13:36:25 INFO FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Beginning manual search for: Space 1999 - S01E01 - Breakaway
2022-01-15 13:36:58 INFO FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Beginning manual search for: Space 1999 - S02E01 - The Metamorph
Yeah I also don't know where this is coming from.
2022-01-15 13:34:40 DEBUG FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] 76366: Formatting pattern: %SN - S%0SE01 - %EN -> Space 1999 - S00E01 - Message from Moonbase Alpha
2022-01-15 13:34:40 INFO FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Unable to find manual results for: Space 1999 - S00E01 - Message from Moonbase Alpha
2022-01-15 13:34:43 DEBUG FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Using guessit cache item for /volume1/video/TV/Space 1999/Season 01/Space 1999 - 1x01 - Breakaway.720p BluRay
2022-01-15 13:34:43 DEBUG FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Using cache item for /volume1/video/TV/Space 1999/Season 01/Space 1999 - 1x01 - Breakaway.720p BluRay
2022-01-15 13:34:43 DEBUG FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Matched release /volume1/video/TV/Space 1999/Season 01/Space 1999 - 1x01 - Breakaway.720p BluRay to a series in your database: Space: 1999
2022-01-15 13:34:43 DEBUG FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Parsed /volume1/video/TV/Space 1999/Season 01/Space 1999 - 1x01 - Breakaway.720p BluRay into title: Space, year: 1999, season: 1, alias: Space 1999, episode: [1], episode_title: Breakaway, screen_size: 720p, source: Blu-ray, type: episode, parsing_time: 0.0022449493408203125, absolute_episode: [], quality: 720p BluRay, total_time: 0.002284526824951172
2022-01-15 13:34:43 DEBUG FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Using guessit cache item for aaf-space.1999.s01e01.720p.bluray.x264
2022-01-15 13:34:43 DEBUG FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Using cache item for aaf-space.1999.s01e01.720p.bluray.x264
2022-01-15 13:34:43 DEBUG FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Matched release aaf-space.1999.s01e01.720p.bluray.x264 to a series in your database: Space: 1999
2022-01-15 13:34:43 DEBUG FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Parsed aaf-space.1999.s01e01.720p.bluray.x264 into release_group: aaf, title: space, alias: space 1999, year: 1999, season: 1, episode: [1], screen_size: 720p, source: Blu-ray, video_codec: H.264, video_encoder: x264, type: episode, parsing_time: 0.0023632049560546875, absolute_episode: [], quality: 720p BluRay, total_time: 0.002387523651123047
2022-01-15 13:34:43 DEBUG FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Found codec for Space: 1999 Breakaway
2022-01-15 13:34:43 DEBUG FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] 76366: Formatting pattern: %SN - S%0SE01 - %EN -> Space 1999 - S01E01 - Breakaway
2022-01-15 13:34:43 INFO FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Beginning manual search for: Space 1999 - S01E01 - Breakaway
2022-01-15 13:34:43 INFO FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Updating exception_cache and exception_season_cache
2022-01-15 13:34:43 INFO FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Finished processing 3852 scene exceptions.
2022-01-15 13:34:43 INFO FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Building internal name cache for Space: 1999
2022-01-15 13:34:43 DEBUG FORCEDSEARCHQUEUE-MANUAL-76366 :: [9b23c72] Internal name cache for space 1999 set to: space 1999
@medariox what does this mean to you?
No idea. I don't even think that manual search is supported for special episodes.
Did some testing.. doesn't happen with forced search on this episode. Also doesn't happen using manual search with non special episodes I tried. I have also experienced an infinite search loop issue with backlog search in the past but it might be a separate issue.
Maybe just need to hide the manual search button for specials?
I experience the same. Keeps FORCEDSEARCHQUEUE-MANUAL-..... and looking for the same series over and over while it's complete. In my case Star Trek Lower Decks. How to stop this? In general how can I check/stop manual searches, I can't find it anywhere.
You have to reboot medusa to get it to stop.
As of now I can't reproduce this. So unfortunately I can't fix it.
You have to reboot medusa to get it to stop.
True. When I do a reboot it is working fine. Till I manual search something and it again goes into the loop. Is there anything I can do to help reproduce or further investigate this?
Describe the bug When I manually search for anything pymedusa goes into an infinite loop of searching and never finishes.. I have to restart it to get it to stop searching. This happens with anything I search for not any one particular item.
To Reproduce Steps to reproduce the behavior:
Expected behavior Search to finish
Medusa (please complete the following information):
Medusa Info:
Debug logs (at least 50 lines): General > Advanced Settings > Enable debug
Additional context Add any other context about the problem here.
Edit: Appears to happen with backlog searches too, which sucks since I'm not sure I can run medusa anymore as there's no way to prevent it from hammering away endlessly at api's.
Edit: Seem to be same as issue #9876