morpheus65535 / bazarr

Bazarr is a companion application to Sonarr and Radarr. It manages and downloads subtitles based on your requirements. You define your preferences by TV show or movie and Bazarr takes care of everything for you.
https://www.bazarr.media
GNU General Public License v3.0
2.78k stars 218 forks source link

Can't sync from Sonarr #71

Closed faulander closed 6 years ago

faulander commented 6 years ago

After a needed reinstall, i cannot sync from Sonarr anymore. In the logs i only get: Execution of job "Update series list from Sonarr (trigger: interval[0:01:00], next run at: 2018-05-27 08:19:09 CEST)" skipped: maximum number of running instances reached (1)

What's the problem?

Sonarr: Version 2.0.0.5212 Bazarr: Version: 0.4.1

faulander commented 6 years ago

additional info: I changed the Sonarr API Key (to make sure) and now i get: 'Traceback (most recent call last):\n File "/usr/lib/python2.7/site-packages/apscheduler/executors/base.py", line 125, in run_job\n retval = job.func(*job.args, **job.kwargs)\n File "/bazarr/get_series.py", line 20, in update_series\n get_profile_list()\n File "/bazarr/get_series.py", line 87, in get_profile_list\n profiles_list.append([profile[\'id\'], profile[\'language\'].capitalize()])\nTypeError: string indices must be integers'

and this: 'Traceback (most recent call last):\n File "/usr/lib/python2.7/site-packages/apscheduler/executors/base.py", line 125, in run_job\n retval = job.func(*job.args, **job.kwargs)\n File "/bazarr/get_episodes.py", line 35, in sync_episodes\n if episode[\'hasFile\'] and episode[\'episodeFile\'][\'size\'] > 20480:\nTypeError: string indices must be integers'

faulander commented 6 years ago

and now i am back to the first error: 2018-05-27 09_56_46-window

morpheus65535 commented 6 years ago

Sorry for the delay. It looks like Bazarr is not able to connect to Sonarr API. Could be a metwork related problem. Have you enabled Sonarr authentication?

faulander commented 6 years ago

no Sonarr Authentification. I didn't change anything with Sonarr, just reinstalled the docker container with Bazarr. What i additionally tried:

and i don't think it's networking, it runs on the same machine AND can access the shows.

morpheus65535 commented 6 years ago

I've just notice you are running a development version of Sonarr. Latest master is 2.0.0.5163. Maybe they have done some change to the API that is breaking something on Bazarr side. Let me take a look at it.

morpheus65535 commented 6 years ago

I've got no problem at all with version 2.0.0.5212. Can you send me the stack trace you got in logs?

faulander commented 6 years ago

No stacktrace, just: 2018-05-30 18_41_01-window

and the exception: Execution of job "Update series list from Sonarr (trigger: interval[0:01:00], next run at: 2018-05-30 10:49:09 CEST)" skipped: maximum number of running instances reached (1)

this was the last one for today, 8 hours ago ...

morpheus65535 commented 6 years ago

Look like it's been taking more than a minute to get series list from Sonarr and process it to DB... Unless you got 10000 series, it's highly improbable.

Anyway, for the last 8 hours, this task is running smootly every minute. I wouldn't be scared if it doesn't happen again.

I suggest we close this one and you open another one if you run into this or another problem. Is this ok for you?

faulander commented 6 years ago

no, it doesn't sync the series! Let me give you some details

faulander commented 6 years ago

2018-05-30 18_48_14-

It didn't write any Logfiles for today, although it's running since a while - check docker ps

morpheus65535 commented 6 years ago

The logfile for the current day is bazarr.log

The screenshot you sent me 10 minutes ago is only the web interface reading this file (and you see what have been done since midnight).

morpheus65535 commented 6 years ago

You wont see any mention of series updating process in log if everything went smoothly. Add a fake show to Sonarr and you should get it in the next minute.

faulander commented 6 years ago

I don't know how to give you details without mentioning shows. Sonarr downloaded the red woman in a cape, season 02 episode 07. it doesn't show up in bazarr.

faulander commented 6 years ago

aaaaaah, i got it! It's just missing in the history in Bazarr. When i check the detail page of the show, it's correct.

morpheus65535 commented 6 years ago

lol ok. It should be in Bazarr five minutes after a file have been saved on this for this episode.

morpheus65535 commented 6 years ago

History in Bazarr show subtitles downloaded or deleted from the web interface.

faulander commented 6 years ago

nope, it's been downloaded at: 2018-05-30 18_57_01-window

faulander commented 6 years ago

So, 10:52 - but doesn't show up in Bazarr History, although it shows it's subtitle in the overview page of the show itself.

morpheus65535 commented 6 years ago

That's the Sonarr history. You won't see episode download in Bazarr history if Bazarr haven't downloaded a subtitles for it. If you see a subtitles for it in series page it's because it is internal to the mkv (hint: there's no "x" on it to delete it).

faulander commented 6 years ago

aaaaaaaaaaaaaaaaaaaaaaaaaaaah, i am SO dumb! of course you are absolutely right. I though about internal subtitles, but i thought i read somewhere that you have no means to see if it has subtitles in it 👍

thanks for your support - as always. I am sorry for stealing your time. where can i send some money to? It's an awesome product that saves me alot of time.

faulander commented 6 years ago

and i learned alot about bazarr and python today - thanks for that aswell :)

morpheus65535 commented 6 years ago

I got no way to detect if a subtitles is hearign impaired or not. That's propably what you've read.

For the money, give it to a good cause! I don't accept donation, Bazarr is my way of giving back to the community for the good tools I've used over years.