Open ServerGuyHK opened 3 years ago
Just to ensure its not my firewall or anything like that, I created a new VM, Windows 10 with nothing else on it. Installed a new Medusa on to the VM, did not set any options. Tried to add a new show, it searched fine and added the show, created the directory.
I have also tried on my main install of adding the show but setting the directory to C:\Videos just in case its an issue with the QNAP, but that did not work either.
I copied my fresh install DATA directory on to my main PC to see if anything with the PC had issues. Once the empty new DATA directory was in place, starting Medusa and then adding new shows worked fine.
So I can only guess now that there is some corruption or something in the data directory or one of its files.
You can try to remove all non essential data, restart and try again. Remove all dbm files in cache folder. And remove cache.db.
I've had issues with shows that have special characters in the title.. ie.. Star Trek: Project Orlan It will find the show listed if you enter Star Trek But it just adds the folder nothing in it.. and it's not in the DB show listing in Medusa
You can try to remove all non essential data, restart and try again. Remove all dbm files in cache folder. And remove cache.db.
I have tried this and no change, still the same issue and the same entries going in to the log files.
Meanwhile, the system is happily processing existing shows, downloading, moving and renaming files correctly while updating the database.
After a lot of pain and suffering, I uninstalled and reinstalled the whole setup. Using the "Add Existing Shows" option I have managed to get all my shows back in to the databased a fresh, but I now have 20 that just will not add at all. It does not matter if I try to add them as existing or even new, they just wont add. I have tried using TheTVDb and tvmaze, but no diffeerent, all that happens is the same i each case as per the below log trace.
Any ideas ?
2021-10-16 11:29:02 DEBUG SHOWQUEUE-ADD :: [21e350c] Transaction with 3 queries executed
2021-10-16 11:29:02 DEBUG SHOWQUEUE-ADD :: [21e350c] User-Agent: Medusa/0.5.18 (Windows; 10; f03ad342-2dbe-11ec-a438-9c2976425dfa)
2021-10-16 11:29:02 DEBUG SHOWQUEUE-ADD :: [21e350c] GET URL: https://api.themoviedb.org/3/tv/82382/external_ids?api_key=ghjffgj[Status: 200]
2021-10-16 11:29:02 DEBUG SHOWQUEUE-ADD :: [21e350c] User-Agent: Medusa/0.5.18 (Windows; 10; f03ad342-2dbe-11ec-a438-9c2976425dfa)
2021-10-16 11:29:02 DEBUG SHOWQUEUE-ADD :: [21e350c] GET URL: https://api.themoviedb.org/3/find/317662?external_source=tvdb_id&api_key=dghjdghj[Status: 200]
2021-10-16 11:29:02 DEBUG SHOWQUEUE-ADD :: [21e350c] Trying other indexer: TMDB get_id_by_external
2021-10-16 11:29:02 DEBUG SHOWQUEUE-ADD :: [21e350c] User-Agent: Medusa/0.5.18 (Windows; 10; f03ad342-2dbe-11ec-a438-9c2976425dfa)
2021-10-16 11:29:02 DEBUG SHOWQUEUE-ADD :: [21e350c] GET URL: https://api.themoviedb.org/3/configuration?api_key=dghjdhj[Status: 200]
2021-10-16 11:29:02 DEBUG SHOWQUEUE-ADD :: [21e350c] User-Agent: Medusa/0.5.18 (Windows; 10; f03ad342-2dbe-11ec-a438-9c2976425dfa)
2021-10-16 11:29:02 DEBUG SHOWQUEUE-ADD :: [21e350c] GET URL: http://api.tvmaze.com/shows/21760 [Status: 200]
2021-10-16 11:29:02 DEBUG SHOWQUEUE-ADD :: [21e350c] User-Agent: Medusa/0.5.18 (Windows; 10; f03ad342-2dbe-11ec-a438-9c2976425dfa)
2021-10-16 11:29:02 DEBUG SHOWQUEUE-ADD :: [21e350c] GET URL: https://api.tvmaze.com/shows/21760 [Status: 200]
2021-10-16 11:29:01 DEBUG SHOWQUEUE-ADD :: [21e350c] User-Agent: Medusa/0.5.18 (Windows; 10; f03ad342-2dbe-11ec-a438-9c2976425dfa)
2021-10-16 11:29:01 DEBUG SHOWQUEUE-ADD :: [21e350c] GET URL: http://api.tvmaze.com/lookup/shows?thetvdb=317662 [Status: 301]
2021-10-16 11:29:01 DEBUG SHOWQUEUE-ADD :: [21e350c] Trying other indexer: TVmaze get_id_by_external
2021-10-16 11:29:01 DEBUG SHOWQUEUE-ADD :: [21e350c] 317662: Loading show info from TVDBv2
2021-10-16 11:29:01 DEBUG SHOWQUEUE-ADD :: [21e350c] User-Agent: Medusa/0.5.18 (Windows; 10; f03ad342-2dbe-11ec-a438-9c2976425dfa)
2021-10-16 11:29:01 DEBUG SHOWQUEUE-ADD :: [21e350c] GET URL: https://api.thetvdb.com/series/317662/episodes/query?page=2 [Status: 200]
2021-10-16 11:29:01 DEBUG SHOWQUEUE-ADD :: [21e350c] User-Agent: Medusa/0.5.18 (Windows; 10; f03ad342-2dbe-11ec-a438-djhdhj)
2021-10-16 11:29:01 DEBUG SHOWQUEUE-ADD :: [21e350c] GET URL: https://api.thetvdb.com/series/317662/episodes/query?page=1 [Status: 200]
2021-10-16 11:29:00 DEBUG SHOWQUEUE-ADD :: [21e350c] Getting all episodes of 317662
2021-10-16 11:29:00 DEBUG SHOWQUEUE-ADD :: [21e350c] User-Agent: Medusa/0.5.18 (Windows; 10; f03ad342-2dbe-11ec-a438-dhdghg)
2021-10-16 11:29:00 DEBUG SHOWQUEUE-ADD :: [21e350c] GET URL: https://api.thetvdb.com/series/317662 [Status: 200]
2021-10-16 11:29:00 DEBUG SHOWQUEUE-ADD :: [21e350c] Getting all show data for 317662
2021-10-16 11:29:00 DEBUG SHOWQUEUE-ADD :: [21e350c] Getting all series data for 317662
2021-10-16 11:29:00 DEBUG SHOWQUEUE-ADD :: [21e350c] Configured language en override show language of en
2021-10-16 11:29:00 DEBUG SHOWQUEUE-ADD :: [21e350c] TVDBv2: {'language': 'en', 'use_zip': True, 'session': <medusa.session.core.IndexerSession object at 0x000001F377F40978>, 'cache': 'C:\\Medusa\\Data\\cache\\indexers\\TVDBv2'}
2021-10-16 11:29:00 INFO SHOWQUEUE-ADD :: [21e350c] 317662: Unable to find the show in the database
2021-10-16 11:29:00 DEBUG SHOWQUEUE-ADD :: [21e350c] 317662: Loading show info from database
2021-10-16 11:29:00 INFO SHOWQUEUE-ADD :: [21e350c] Starting to add show by Indexer Id: 317662
Can you pm me your main.db. then I'll try to reproduce
Can you pm me your main.db. then I'll try to reproduce
This might sound stupid or I am blind, but I cannot find a PM link anywhere, how do I do this ?
Ooh sorry. Use discord
After some debugging it came clear that it's hanging on the imdb-pie api calls. It's strange why it's hanging on them without throwing any errors. But as the imdb-pie client isn't supported anymore, and no issues can be filed. https://pypi.org/project/imdbpie/5.6.4/
@duramato @medariox thoughts about this? Maybe switch to the scraped api client?
BTW found this as a similar issue. https://github.com/pymedusa/Medusa/issues/8863#issuecomment-743732502
What's the scraped api client
? The issue only occurs to some people, right?
https://github.com/alberanid/imdbpy seems to be still maintained
The anoying thing, about the current api. Is that when it fails it just locks up. Not throwing an exception at all.
@p0psicles We used imdbpy
in the past, but it wasn't that great IIRC. Here is the GH repo of imdb-pie: https://github.com/richardARPANET/imdb-pie Can you reproduce the issue locally? Maybe we can fork and fix it?
Yeah would be nice if we could reproduce it
I've reported this before; If the show or episode title has a special character in it (ie : or ') it fails to add show or if it's an older show that was already added before this bug, then it fails on post processing etc where it needs to pull the data from online.
@nydave69 sorry I think your issue is a different issue but it got of my radar. I'll check it out. This issue is really specific because of Imdb connectivity issues.
Can you link me to your issue? I can't find it
@nydave69 I checked your issue with adding the show start trek projet orlan
. It's only added in the french language. If you add the show with the french language selected. It adds fine.
ive got the same problem, adding show and nothing, log is showing Starting to add show by Indexer Id:****, and nothing happens at all, any progress with sorting out this issue?
@ServerGuyHK is this still an issue, else i'm going to close it.
Close it please, I gave up in the end.
I've noticed it's happening when different language for the show are in main setup (general). Obce switched back to English it worked
On Tue, 24 May 2022, 14:38 ServerGuyHK, @.***> wrote:
Close it please, I gave up in the end.
— Reply to this email directly, view it on GitHub https://github.com/pymedusa/Medusa/issues/9928#issuecomment-1135867300, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB743P4HAUJQVVER3L6BCIDVLTETRANCNFSM5FTWHMHQ . You are receiving this because you commented.Message ID: @.***>
Close it please, I gave up in the end.
Hello, I suspect I am experiencing the same issue. What did you eventually end up doing?
Describe the bug Failing to add new shows to the database.
To Reproduce Steps to reproduce the behavior:
Expected behavior I would expect the show to be added and directory created. But when I go to the show list, nothing is there and the directory on disk has not been created.
Medusa (please complete the following information):
Debug logs (at least 50 lines): General > Advanced Settings > Enable debug
Additional context This has been working for months and months without issue, noting has changed on my setup. If I try and add the show as an existing show, I get the same issue. The Windows PC is running just Medusa, uTorrent and SABnzdb All files are written out to a QNAP NAS drive. Existing shows are still being found, downloaded, moved to the correct directories and the database updated OK.