pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.77k stars 275 forks source link

Continuous 100% CPU load while importing new shows #11445

Open ComplexIOd opened 1 year ago

ComplexIOd commented 1 year ago

Describe the bug While importing new existing shows from disk, the process is stalled by Medusa getting slower and slower. It is running in a docker through Portainer (latest) and nothing special is done triggering this. The database is somewhat large maybe (1700+ shows) but that shouldn't make the webpage unresponsive should it? After having done a few shows, the UI is immensely unresponsive making adding more shows impossible. It's not really a CPU spike, but a continuous blast of 100% CPU usage (see screenshots).

The docker is running on a virtualized machine which has 24 cores made available to Portainer. But Medusa is only using one of them it seems so one question would be in what manner Medusa is truly multi-threaded?

I'm checking CPU load by statistics in Portainer, running htop in the host machine and within the Medusa docker and by monitoring with Glances running in separate docker (but with access to other dockers).

To Reproduce Steps to reproduce the behavior:

  1. Go to Add Shows - Add existing shows
  2. Let it query the dirlist and show all remaining shows (about 150 left now)
  3. Choose a show (random) and click 'Add' on the right
  4. Let it do a query to one of the indexers
  5. Try to add the show by clicking Add...if you've come this far

Expected behavior For the GUI to stay responsive even when backlog is increasing

Screenshots image

You can't really see the slowness on a screenshot... but all of the buttons become unresponsive...

CPU usage 100%, from Glances dashboard: image

Stats from Portainer / Medusa docker container: image

HTOP from host: image

TOP from container: image

Medusa (please complete the following information):

Debug logs (at least 50 lines): General > Advanced Settings > Enable debug

Not sure what part to paste...

``` 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Found codec for The Neighborhood Pilot 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Parsed /media/series/TV Shows/The Neighborhood/The Neighborhood Season 01/The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA into title: The Neighborhood, season: 1, episode: [1], episode_title: Pilot, episode_details: Pilot, source: HDTV, video_codec: H.264, video_encoder: x264, release_group: SVA, type: episode, parsing_time: 0.07739996910095215, absolute_episode: [], quality: SDTV, total_time: 0.07760143280029297 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Matched release /media/series/TV Shows/The Neighborhood/The Neighborhood Season 01/The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA to a series in your database: The Neighborhood using guessit title: The Neighborhood 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: New guessit parse for item /media/series/TV Shows/The Neighborhood/The Neighborhood Season 01/The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Trying guessit cache for item /media/series/TV Shows/The Neighborhood/The Neighborhood Season 01/The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: 35839: Formatting pattern: %SN - S%0SE01 - %EN -> The Neighborhood - S01E01 - Pilot 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: 35839: Episode has no release group, replacing it with SVA 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Found codec for The Neighborhood Pilot 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Parsed /media/series/TV Shows/The Neighborhood/The Neighborhood Season 01/The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA into title: The Neighborhood, season: 1, episode: [1], episode_title: Pilot, episode_details: Pilot, source: HDTV, video_codec: H.264, video_encoder: x264, release_group: SVA, type: episode, parsing_time: 0.08244061470031738, absolute_episode: [], quality: SDTV, total_time: 0.0826272964477539 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Matched release /media/series/TV Shows/The Neighborhood/The Neighborhood Season 01/The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA to a series in your database: The Neighborhood using guessit title: The Neighborhood 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: New guessit parse for item /media/series/TV Shows/The Neighborhood/The Neighborhood Season 01/The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Trying guessit cache for item /media/series/TV Shows/The Neighborhood/The Neighborhood Season 01/The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: 35839: Saving episode to database: The Neighborhood S01E01 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: 35839: Saving last subtitles search to database 2023-08-05 15:33:39 INFO FINDSUBTITLES :: No subtitles found for The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA.mkv 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Could not search in thesubdb provider. Discarding for now 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Could not search in podnapisi provider. Discarding for now 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Could not search in opensubtitles provider. Discarding for now 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Ignoring subtitle with status 50.91% Completed 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:39 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Ignoring subtitle with status 67.16% Completed 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:38 DEBUG FINDSUBTITLES :: Found subtitle 2023-08-05 15:33:19 INFO FINDSUBTITLES :: Getting the page of show id 6974, season 1 2023-08-05 15:33:19 DEBUG FINDSUBTITLES :: Getting show id 2023-08-05 15:33:19 DEBUG FINDSUBTITLES :: Getting show id with year 2023-08-05 15:33:19 DEBUG FINDSUBTITLES :: Video information cached under key medusa.subtitles:video|/media/series/TV Shows/The Neighborhood/The Neighborhood Season 01/The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA.mkv 2023-08-05 15:33:19 DEBUG FINDSUBTITLES :: Refining using Episode information. 2023-08-05 15:33:19 DEBUG FINDSUBTITLES :: Attribute year changed from None to 2018 2023-08-05 15:33:19 DEBUG FINDSUBTITLES :: Attribute series_imdb_id changed from None to 'tt7942794' 2023-08-05 15:33:19 DEBUG FINDSUBTITLES :: Refining using Series information. 2023-08-05 15:33:19 DEBUG FINDSUBTITLES :: No release name for '/media/series/TV Shows/The Neighborhood/The Neighborhood Season 01/The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA.mkv' 2023-08-05 15:33:19 DEBUG FINDSUBTITLES :: Starting release refiner [extension=release, release_name=, release_file=None] 2023-08-05 15:33:17 DEBUG FINDSUBTITLES :: Found subtitles {'The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA.en.srt': , 'The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA.fr.srt': , 'The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA.nl.srt': , 'The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA.pt-BR.srt': } 2023-08-05 15:33:17 DEBUG FINDSUBTITLES :: Scanning video /media/series/TV Shows/The Neighborhood/The Neighborhood Season 01/The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA.mkv... 2023-08-05 15:33:17 DEBUG FINDSUBTITLES :: Checking subtitle candidates for The Neighborhood S01E01 (The Neighborhood - S01E01 - Pilot.HDTV.x264-SVA.mkv) 2023-08-05 15:33:11 INFO FINDSUBTITLES :: 36768: No subtitles found for Happy Together S01E01 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: 36768: Formatting pattern: Season %0S -> Season 01 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: Found codec for Happy Together Pilot 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: Parsed /media/series/TV Shows/Happy Together (2018)/Happy Together Season 01/Happy Together - S01E01 - Pilot.HDTV.x264-KILLERS into title: Happy Together, year: 2018, season: 1, episode: [1], episode_title: Pilot, episode_details: Pilot, source: HDTV, video_codec: H.264, video_encoder: x264, release_group: KILLERS, type: episode, parsing_time: 0.08625650405883789, absolute_episode: [], quality: SDTV, total_time: 0.08636116981506348 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: Matched release /media/series/TV Shows/Happy Together (2018)/Happy Together Season 01/Happy Together - S01E01 - Pilot.HDTV.x264-KILLERS to a series in your database: Happy Together using guessit title: Happy Together 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: New guessit parse for item /media/series/TV Shows/Happy Together (2018)/Happy Together Season 01/Happy Together - S01E01 - Pilot.HDTV.x264-KILLERS 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: Trying guessit cache for item /media/series/TV Shows/Happy Together (2018)/Happy Together Season 01/Happy Together - S01E01 - Pilot.HDTV.x264-KILLERS 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: 36768: Formatting pattern: %SN - S%0SE01 - %EN -> Happy Together - S01E01 - Pilot 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: 36768: Episode has no release group, replacing it with KILLERS 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: Found codec for Happy Together Pilot 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: Parsed /media/series/TV Shows/Happy Together (2018)/Happy Together Season 01/Happy Together - S01E01 - Pilot.HDTV.x264-KILLERS into title: Happy Together, year: 2018, season: 1, episode: [1], episode_title: Pilot, episode_details: Pilot, source: HDTV, video_codec: H.264, video_encoder: x264, release_group: KILLERS, type: episode, parsing_time: 0.09028387069702148, absolute_episode: [], quality: SDTV, total_time: 0.09046053886413574 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: Matched release /media/series/TV Shows/Happy Together (2018)/Happy Together Season 01/Happy Together - S01E01 - Pilot.HDTV.x264-KILLERS to a series in your database: Happy Together using guessit title: Happy Together 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: New guessit parse for item /media/series/TV Shows/Happy Together (2018)/Happy Together Season 01/Happy Together - S01E01 - Pilot.HDTV.x264-KILLERS 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: GuessIt cache was cleared due to invalidation object change: previous={'type': 'episode', 'implicit': True, 'episode_prefer_number': False, 'expected_title': ['Nerds 2.0.1: A Brief History of the Internet', '10 Things I Hate About You', '11.22.63', '12 Monkeys', '13 Reasons Why', '19-2', '1971: The Year That Music Changed Everything', '24: Legacy', '30 Monedas', '30 Rock', '30 for 30', '61st Street', '68 Whiskey', '9-1-1', '9-1-1: Lone Star', 'Attenborough: 60 Years in the Wild', 'Formula 1: Drive to Survive', "Ian Hislop's Stiff Upper Lip - An Emotional History of Britain", 'Pets - Wild at Heart', 'Tiger - Spy in the Jungle', 'W1A', 'Warehouse 13', 'The X-Files', '9JKL', "A'dam - E.V.A.", 'Archive 81', 'Avenue 5', 'Babylon 5', 'black-ish', 'Borgen - Riget, Magten og Æren', 'Box 21', 'Brooklyn Nine-Nine', 'Catch-22', 'De 12 van Oldenheim', 'De 12 van Schouwendam', 'Echo 3', 'Girls5eva', 'grown-ish', 'Hawaii Five-0', 'Inside No. 9', "Jamie's 30 Minute Meals", 'Lodge 49', 'Maltese - Il romanzo del Commissario', "Marvel's Spider-Man", 'Numb3rs', 'Obi-Wan Kenobi', 'P-Valley', 'PEN15', 'Rig 45', 'Road to 9/11', 'Room 104', 'Sally4Ever', 'Sense8', 'Shakespeare & Hathaway - Private Investigators', 'She-Hulk: Attorney at Law', 'SS-GB', 'Stargate SG-1', 'Station 19', 'Studio 60 on the Sunset Strip', 'The 100', 'Deutschland 83'], 'expected_group': ['TV2LAX9', 'DHD', '20-40', 'E7'], 'allowed_languages': ['de', 'en', 'es', 'ca', 'fr', 'he', 'hu', 'it', 'jp', 'nl', 'pl', 'pt', 'ro', 'ru', 'sv', 'uk', 'mul', 'und'], 'allowed_countries': ['us', 'gb']} new={'show_type': 'normal', 'type': 'episode', 'implicit': True, 'episode_prefer_number': False, 'expected_title': ['Nerds 2.0.1: A Brief History of the Internet', '10 Things I Hate About You', '11.22.63', '12 Monkeys', '13 Reasons Why', '19-2', '1971: The Year That Music Changed Everything', '24: Legacy', '30 Monedas', '30 Rock', '30 for 30', '61st Street', '68 Whiskey', '9-1-1', '9-1-1: Lone Star', 'Attenborough: 60 Years in the Wild', 'Formula 1: Drive to Survive', "Ian Hislop's Stiff Upper Lip - An Emotional History of Britain", 'Pets - Wild at Heart', 'Tiger - Spy in the Jungle', 'W1A', 'Warehouse 13', 'The X-Files', '9JKL', "A'dam - E.V.A.", 'Archive 81', 'Avenue 5', 'Babylon 5', 'black-ish', 'Borgen - Riget, Magten og Æren', 'Box 21', 'Brooklyn Nine-Nine', 'Catch-22', 'De 12 van Oldenheim', 'De 12 van Schouwendam', 'Echo 3', 'Girls5eva', 'grown-ish', 'Hawaii Five-0', 'Inside No. 9', "Jamie's 30 Minute Meals", 'Lodge 49', 'Maltese - Il romanzo del Commissario', "Marvel's Spider-Man", 'Numb3rs', 'Obi-Wan Kenobi', 'P-Valley', 'PEN15', 'Rig 45', 'Road to 9/11', 'Room 104', 'Sally4Ever', 'Sense8', 'Shakespeare & Hathaway - Private Investigators', 'She-Hulk: Attorney at Law', 'SS-GB', 'Stargate SG-1', 'Station 19', 'Studio 60 on the Sunset Strip', 'The 100', 'Deutschland 83'], 'expected_group': ['TV2LAX9', 'DHD', '20-40', 'E7'], 'allowed_languages': ['de', 'en', 'es', 'ca', 'fr', 'he', 'hu', 'it', 'jp', 'nl', 'pl', 'pt', 'ro', 'ru', 'sv', 'uk', 'mul', 'und'], 'allowed_countries': ['us', 'gb']} 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: 36768: Saving episode to database: Happy Together S01E01 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: 36768: Saving last subtitles search to database 2023-08-05 15:33:11 INFO FINDSUBTITLES :: No subtitles found for Happy Together - S01E01 - Pilot.HDTV.x264-KILLERS.mkv with a minimum score of 645 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: New guessit parse for item WEBRip.NTb 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: Trying guessit cache for item WEBRip.NTb 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: New guessit parse for item WEBRip.NTb 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: Trying guessit cache for item WEBRip.NTb 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: [ addic7ed:fr ] score = 495/645 for WEBRip.NTb 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: [ addic7ed:fr ] score = 496/645 for WEBRip.NTb 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: New guessit parse for item WEBRip.NTb 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: Trying guessit cache for item WEBRip.NTb 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: New guessit parse for item WEBRip.NTb 2023-08-05 15:33:11 DEBUG FINDSUBTITLES :: GuessIt cache was cleared due to invalidation object change: previous={'show_type': 'normal', 'type': 'episode', 'implicit': True, 'episode_prefer_number': False, 'expected_title': ['Nerds 2.0.1: A Brief History of the Internet', '10 Things I Hate About You', '11.22.63', '12 Monkeys', '13 Reasons Why', '19-2', '1971: The Year That Music Changed Everything', '24: Legacy', '30 Monedas', '30 Rock', '30 for 30', '61st Street', '68 Whiskey', '9-1-1', '9-1-1: Lone Star', 'Attenborough: 60 Years in the Wild', 'Formula 1: Drive to Survive', "Ian Hislop's Stiff Upper Lip - An Emotional History of Britain", 'Pets - Wild at Heart', 'Tiger - Spy in the Jungle', 'W1A', 'Warehouse 13', 'The X-Files', '9JKL', "A'dam - E.V.A.", 'Archive 81', 'Avenue 5', 'Babylon 5', 'black-ish', 'Borgen - Riget, Magten og Æren', 'Box 21', 'Brooklyn Nine-Nine', 'Catch-22', 'De 12 van Oldenheim', 'De 12 van Schouwendam', 'Echo 3', 'Girls5eva', 'grown-ish', 'Hawaii Five-0', 'Inside No. 9', "Jamie's 30 Minute Meals", 'Lodge 49', 'Maltese - Il romanzo del Commissario', "Marvel's Spider-Man", 'Numb3rs', 'Obi-Wan Kenobi', 'P-Valley', 'PEN15', 'Rig 45', 'Road to 9/11', 'Room 104', 'Sally4Ever', 'Sense8', 'Shakespeare & Hathaway - Private Investigators', 'She-Hulk: Attorney at Law', 'SS-GB', 'Stargate SG-1', 'Station 19', 'Studio 60 on the Sunset Strip', 'The 100', 'Deutschland 83'], 'expected_group': ['TV2LAX9', 'DHD', '20-40', 'E7'], 'allowed_languages': ['de', 'en', 'es', 'ca', 'fr', 'he', 'hu', 'it', 'jp', 'nl', 'pl', 'pt', 'ro', 'ru', 'sv', 'uk', 'mul', 'und'], 'allowed_countries': ['us', 'gb']} new={'type': 'episode', 'implicit': True, 'episode_prefer_number': False, 'expected_title': ['Nerds 2.0.1: A Brief History of the Internet', '10 Things I Hate About You', '11.22.63', '12 Monkeys', '13 Reasons Why', '19-2', '1971: The Year That Music Changed Everything', '24: Legacy', '30 Monedas', '30 Rock', '30 for 30', '61st Street', '68 Whiskey', '9-1-1', '9-1-1: Lone Star', 'Attenborough: 60 Years in the Wild', 'Formula 1: Drive to Survive', "Ian Hislop's Stiff Upper Lip - An Emotional History of Britain", 'Pets - Wild at Heart', 'Tiger - Spy in the Jungle', 'W1A', 'Warehouse 13', 'The X-Files', '9JKL', "A'dam - E.V.A.", 'Archive 81', 'Avenue 5', 'Babylon 5', 'black-ish', 'Borgen - Riget, Magten og Æren', 'Box 21', 'Brooklyn Nine-Nine', 'Catch-22', 'De 12 van Oldenheim', 'De 12 van Schouwendam', 'Echo 3', 'Girls5eva', 'grown-ish', 'Hawaii Five-0', 'Inside No. 9', "Jamie's 30 Minute Meals", 'Lodge 49', 'Maltese - Il romanzo del Commissario', "Marvel's Spider-Man", 'Numb3rs', 'Obi-Wan Kenobi', 'P-Valley', 'PEN15', 'Rig 45', 'Road to 9/11', 'Room 104', 'Sally4Ever', 'Sense8', 'Shakespeare & Hathaway - Private Investigators', 'She-Hulk: Attorney at Law', 'SS-GB', 'Stargate SG-1', 'Station 19', 'Studio 60 on the Sunset Strip', 'The 100', 'Deutschland 83'], 'expected_group': ['TV2LAX9', 'DHD', '20-40', 'E7'], 'allowed_languages': ['de', 'en', 'es', 'ca', 'fr', 'he', 'hu', 'it', 'jp', 'nl', 'pl', 'pt', 'ro', 'ru', 'sv', 'uk', 'mul', 'und'], 'allowed_countries': ['us', 'gb']} ```

Additional context Add any other context about the problem here.

ComplexIOd commented 1 year ago

Still, using 200% CPU right now (21:13) image

While the status page shows that nothing is happening: image

nydave69 commented 11 months ago

I have seen this problem (not in docker) In my case I had to split the number of show between instances of Medusa.. Database queries were taking toooooo long and backing up everything (status page usually show everything is fine)

I have also see this when loading the existing show page, it takes off scanning the folders without any interaction. As that's happening a banner on the bottom right will say loading x of y shows, and if x and y don't match well good luck. I have not found a good way out of this one other than to restart Medusa and that doesn't always solve this issue.

that's my 2 cents..

Aesculapius commented 10 months ago

what was the sweet spot for you when splitting up the instances? I now have around 2000 shows in it, should I half it?