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.79k stars 276 forks source link

Error connecting to sab, no data returned #5972

Closed digitalnaiveDE closed 5 years ago

digitalnaiveDE commented 5 years ago

Describe the bug Although i have a working connection between my sabnzbdplus api and medusa, it is giving me an error in the log file of medusa for all my selected data in backlog.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'View Log'
  2. Click on 'View Log'
  3. Scroll down to 'Line xyz'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Medusa (please complete the following information):

Logs:

``` 019-01-08 21:21:00 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Error connecting to sab, no data returned 2019-01-08 21:21:00 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Sending NZB to SABnzbd ```

Additional context Add any other context about the problem here.

medariox commented 5 years ago

Please post a complete debug log.

digitalnaiveDE commented 5 years ago

Please post a complete debug log.

Unfortunately I am pretty new to Medusa and Linux/raspberry so I am uncertain where to find debug log. Do you mean application log in /opt/medusa/Logs ? If so, how many lines should I copy?

Thanks and sorry for the circumstances

p0psicles commented 5 years ago

Enable debug logging: Config - General - advanced tab - logging - check enable debug. Then restart. Reproduce the issue. Now you have two options.

  1. image

  2. locate you medusa data folder (probably the same as where medusa is installed. And search for Logs\application.log. Copy this file and post here.

digitalnaiveDE commented 5 years ago

@p0psicles should i really post the whole file? i copy&pasted the logfile content to a textfile which is now 4,5 mb

medariox commented 5 years ago

Post 20 lines before and after the error as debug.

digitalnaiveDE commented 5 years ago

Before the error: 2019-01-09 21:41:34 INFO FINDSUBTITLES :: [918cfe7] Finished checking for missed subtitles 2019-01-09 21:41:30 INFO FINDSUBTITLES :: [918cfe7] Checking for missed subtitles 2019-01-09 21:21:39 INFO SEARCHQUEUE-DAILY-SEARCH :: [918cfe7] Using daily search providers 2019-01-09 21:21:31 INFO SEARCHQUEUE-DAILY-SEARCH :: [918cfe7] Beginning daily search for new episodes 2019-01-09 20:41:32 INFO MAIN :: [918cfe7] Building internal name cache for all shows 2019-01-09 20:41:32 INFO MAIN :: [918cfe7] Finished processing 2910 scene exceptions. 2019-01-09 20:41:30 INFO MAIN :: [918cfe7] Updating exception_cache and exception_season_cache 2019-01-09 20:41:30 INFO TORNADO :: [918cfe7] Starting Medusa on http://0.0.0.0:8081/ 2019-01-09 20:41:30 INFO MAIN :: [918cfe7] Starting Medusa [master] using u'/opt/medusa/config.ini' 2019-01-09 20:41:15 INFO MAIN :: [918cfe7] Broken providers found: [u'torrent9', u'newpct']

2019-01-09 22:02:19 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Error connecting to sab, no data returned 2019-01-09 22:02:19 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Sending NZB to SABnzbd 2019-01-09 22:02:19 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Downloading xxx with size: 1.39 GB from NZBGeek, through a SearchType.DAILY_SEARCH search 2019-01-09 22:02:19 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Beginning to snatch release: xxx 2019-01-09 22:02:18 INFO SEARCHQUEUE-DAILY-SEARCH :: [918cfe7] Downloading xxx with size: 2.08 GB from NZBGeek 2019-01-09 22:02:16 INFO SEARCHQUEUE-DAILY-SEARCH :: [918cfe7] Downloading xxx with size: 1.39 GB from NZBGeek 2019-01-09 22:02:16 INFO SEARCHQUEUE-DAILY-SEARCH :: [Omgwtfnzbs] :: [918cfe7] Picked xxx as the best result. 2019-01-09 22:02:16 INFO SEARCHQUEUE-DAILY-SEARCH :: [Omgwtfnzbs] :: [918cfe7] Quality of xxx is 1080p WEB-DL

and afterwards it just repeats infinite

p0psicles commented 5 years ago

Enable debug logs

digitalnaiveDE commented 5 years ago

2019-01-09 20:03:29 INFO SEARCHQUEUE-DAILY-SEARCH :: [Omgwtfnzbs] :: [918cfe7] Picked xxx as the best result. 2019-01-09 20:03:29 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [918cfe7] Combining single and multi-episode results 2019-01-09 20:03:29 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [918cfe7] No results to sort. 2019-01-09 20:03:29 INFO SEARCHQUEUE-DAILY-SEARCH :: [918cfe7] Downloading xxx with size: 1.39 GB from NZBGeek 2019-01-09 20:03:31 INFO SEARCHQUEUE-DAILY-SEARCH :: [918cfe7] Downloading xxx with size: 2.08 GB from NZBGeek 2019-01-09 20:03:32 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Beginning to snatch release: xxx 2019-01-09 20:03:32 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Downloading xxx with size: 1.39 GB from NZBGeek, through a SearchType.DAILY_SEARCH search 2019-01-09 20:03:32 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Sending NZB to SABnzbd 2019-01-09 20:03:32 DEBUG SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Error requesting url api Error: Invalid URL 'api': No schema supplied. Perhaps you meant http://api? 2019-01-09 20:03:32 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Error connecting to sab, no data returned 2019-01-09 20:03:33 INFO SEARCHQUEUE-DAILY-SEARCH :: [918cfe7] Downloading xxx with size: 1.41 GB from NZBGeek 2019-01-09 20:03:35 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Beginning to snatch release: xxx 2019-01-09 20:03:35 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Downloading xxx with size: 2.08 GB from NZBGeek, through a SearchType.DAILY_SEARCH search 2019-01-09 20:03:35 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Sending NZB to SABnzbd 2019-01-09 20:03:35 DEBUG SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Error requesting url api Error: Invalid URL 'api': No schema supplied. Perhaps you meant http://api? 2019-01-09 20:03:35 INFO SNATCHQUEUE-SNATCH-311714 :: [918cfe7] Error connecting to sab, no data returned

digitalnaiveDE commented 5 years ago

I found the mistake myself. I had a checkbox ticked with the value true at HTTPS certificate verification in sabnzbd. That caused my error. Thanks for your help anyway!

blackenedvoodoo commented 5 years ago

I have the same problem.

2019-03-20 10:51:10 INFO SNATCHQUEUE-SNATCH-353561 :: [94fae84] Error connecting to sab, no data returned 2019-03-20 10:51:10 INFO SNATCHQUEUE-SNATCH-353561 :: [94fae84] Sending NZB to SABnzbd 2019-03-20 10:51:10 INFO SNATCHQUEUE-SNATCH-353561 :: [94fae84] Downloading XXX with size: 299.74 MB from YYY, through a SearchType.MANUAL_SEARCH search 2019-03-20 10:51:10 INFO SNATCHQUEUE-SNATCH-353561 :: [94fae84] Beginning to snatch release: XXX 2019-03-20 10:51:07 INFO SNATCHQUEUE-SNATCH-353561 :: [94fae84] Error connecting to sab, no data returned 2019-03-20 10:51:07 INFO SNATCHQUEUE-SNATCH-353561 :: [94fae84] Sending NZB to SABnzbd 2019-03-20 10:51:07 INFO SNATCHQUEUE-SNATCH-353561 :: [94fae84] Downloading XXX with size: 310.28 MB from YYY, through a SearchType.MANUAL_SEARCH search 2019-03-20 10:51:07 INFO SNATCHQUEUE-SNATCH-353561 :: [94fae84] Beginning to snatch release: XXX

blackenedvoodoo commented 5 years ago

I have my SSL unchecked. all ports forwarded. I am using a synology 1019+.

p0psicles commented 5 years ago

Still an issue with your infrastructure. Does testing the connectivity in Medusa search settings work?

blackenedvoodoo commented 5 years ago

Yes.

Success. Connected and authenticated

so i AM CONNECTED. Not sure what is happening.

blackenedvoodoo commented 5 years ago

I set it up exactly like my last synology

blackenedvoodoo commented 5 years ago

Nothing I do makes this work

p0psicles commented 5 years ago

Enable debug logging. Restart. And reproduce. Also check for logs in sabnzbd

blackenedvoodoo commented 5 years ago

ok

blackenedvoodoo commented 5 years ago

Writing settings to INI file /volume1/@appstore/sabnzbd/var/config.ini version = 19 encoding = utf-8 [misc] permissions = 777 auto_browser = 0 host = 0.0.0.0 port = 8080 nice = -n15 ionice = "" download_dir = /volume1/Downloads/incomplete complete_dir = /volume1/Downloads/complete script_dir = /usr/local/sabnzbd/var/scripts win_menu = 1 queue_complete = "" https_port = "" folder_rename = 1 password_file = "" movie_rename_limit = 100M https_key = server.key cleanup_list = , notified_new_skin = 2 rating_filter_enable = 0 cache_limit = 1G rating_enable = 0 fail_hopeless_jobs = 1 par_option = "" web_color = Default inet_exposure = 0 enable_recursive = 1 selftest_host = self-test.sabnzbd.org pre_check = 0 replace_spaces = 0 host_whitelist = the1019, dirscan_speed = 5 enable_filejoin = 1 api_key = eb8f1e5 no_penalties = 0 load_balancing = 2 rating_filter_abort_video = 0 osx_speed = 1 dirscan_dir = /volume1/Downloads/complete/nzb disable_api_key = 0 quota_period = m overwrite_files = 0 enable_7zip = 1 rating_filter_pause_audio = 0 rss_filenames = 0 password= check_new_rel = 1 require_modern_tls = 0 ssl_ciphers = "" auto_disconnect = 1 use_pickle = 0 quota_size = 500G warn_empty_nzb = 1 movie_extra_folder = 0 history_limit = 10 rating_filter_pause_encrypted_confirm = 0 enable_all_par = 0 enable_https_verification = 0 replace_dots = 0 win_process_prio = 3 ipv6_hosting = 0 series_propercheck = 1 enable_bonjour = 1 movie_sort_extra = -cd%1 https_chain = "" warned_old_queue = 10 enable_unzip = 1 download_free = "" email_dir = "" wait_ext_drive = 5 pre_script = None ipv6_servers = 1 quick_check_ext_ignore = nfo, sfv, srr enable_date_sorting = 0 email_full = 0 enable_tsjoin = 1 log_dir = logs rating_filter_pause_encrypted = 0 queue_limit = 20 admin_dir = admin nzb_backup_dir = "" tv_sort_countries = 1 date_categories = tv, ignore_empty_files = 0 osx_menu = 1 show_sysload = 2 no_dupes = 0 date_sort_string = "" schedlines = , ignore_unrar_dates = 0 rating_filter_pause_video = 0 ignore_samples = 1 sanitize_safe = 1 req_completion_rate = 100.2 language = en movie_sort_string = "" rating_filter_pause_spam_confirm = 0 multipar = 0 html_login = 1 direct_unpack_tested = 1 api_logging = 1 pause_on_post_processing = 0 debug_log_decoding = 0 allow_incomplete_nzb = 0 rating_filter_abort_keywords = "" enable_unrar = 1 enable_meta = 1 direct_unpack = 0 url_base = /sabnzbd email_account = email_server = "" converted_nzo_pickles = 1 config_lock = 0 quota_resume = 1 api_warnings = 1 wait_for_dfolder = 0 tv_sort_string = "" rating_filter_abort_encrypted = 0 rating_filter_pause_keywords = "" warn_dupl_jobs = 1 username= email_rss = 0 no_series_dupes = 0 propagation_delay = 0 size_limit = 0 enable_par_cleanup = 1 safe_postproc = 1 new_nzb_on_failure = 0 nzb_key = c8e1500 x_frame_options = 1 rating_filter_pause_downvoted = 0 replace_illegal = 1 rating_filter_abort_audio = 0 nomedia_marker = "" max_art_opt = 0 rating_filter_abort_encrypted_confirm = 0 quota_day = 1 bandwidth_max = "" local_ranges = , enable_https = 0 email_to = direct_unpack_threads = 3 sfv_check = 1 keep_awake = 1 top_only = 0 email_from = "" unwanted_extensions = , max_art_tries = 3 rating_filter_abort_spam_confirm = 0 email_endjob = 0 movie_categories = movies, tv_categories = , rss_odd_titles = nzbindex.nl/, nzbindex.com/, nzbclub.com/ pause_on_pwrar = 1 rating_filter_pause_spam = 0 backup_for_duplicates = 1 fixed_ports = 1 rss_rate = 60 refresh_rate = 1 sched_converted = 2 history_retention = 0 rating_filter_abort_downvoted = 0 script_can_fail = 0 bandwidth_perc = 0 email_pwd = empty_postproc = 0 ignore_wrong_unrar = 0 email_cats = , rating_host = "" enable_movie_sorting = 0 fast_fail = 1 https_cert = server.cert max_url_retries = 10 fsys_type = 0 action_on_unwanted_extensions = 0 rating_api_key = reject_duplicate_files = 0 flat_unpack = 0 auto_sort = 0 ampm = 0 rating_filter_abort_spam = 0 start_paused = 0 web_dir = Glitter folder_max_length = 256 enable_tv_sorting = 0 queue_complete_pers = 0 [ncenter] ncenter_prio_download = 0 ncenter_prio_warning = 0 ncenter_cats = , ncenter_prio_new_login = 0 ncenter_prio_queue_done = 1 ncenter_prio_startup = 1 ncenter_prio_failed = 1 ncenter_prio_disk_full = 1 ncenter_prio_error = 0 ncenter_enable = 0 ncenter_prio_complete = 1 ncenter_prio_pp = 0 ncenter_prio_other = 0 [logging] max_log_size = 5242880 log_level = 2 log_backups = 5 [nscript] nscript_cats = , nscript_prio_complete = 1 nscript_prio_other = 0 nscript_prio_warning = 0 nscript_prio_queue_done = 1 nscript_prio_failed = 1 nscript_prio_pp = 0 nscript_prio_new_login = 0 nscript_script = "" nscript_prio_download = 0 nscript_prio_error = 0 nscript_prio_startup = 1 nscript_parameters = "" nscript_enable = 0 nscript_prio_disk_full = 1 [pushover] pushover_prio_error = 1 pushover_enable = 0 pushover_cats = , pushover_prio_new_login = -3 pushover_prio_complete = -1 pushover_prio_warning = 1 pushover_prio_startup = -3 pushover_prio_queue_done = -1 pushover_prio_other = -3 pushover_prio_disk_full = 1 pushover_prio_pp = -3 pushover_emergency_expire = 3600 pushover_device = "" pushover_token = pushover_emergency_retry = 60 pushover_prio_failed = -1 pushover_prio_download = -2 pushover_userkey = [growl] growl_prio_disk_full = 1 growl_enable = 0 growl_prio_new_login = 0 growl_prio_other = 0 growl_prio_download = 0 growl_server = growl_prio_startup = 1 growl_prio_failed = 1 growl_prio_queue_done = 1 growl_prio_warning = 0 growl_prio_error = 0 growl_prio_complete = 1 growl_cats = , growl_prio_pp = 0 growl_password = [prowl] prowl_prio_disk_full = 1 prowl_prio_error = -3 prowl_prio_download = -3 prowl_apikey = prowl_prio_failed = 1 prowl_prio_pp = -3 prowl_cats = , prowl_prio_new_login = -3 prowl_enable = 0 prowl_prio_startup = -3 prowl_prio_warning = -3 prowl_prio_other = -3 prowl_prio_complete = 0 prowl_prio_queue_done = 0 [acenter] acenter_prio_warning = 0 acenter_prio_disk_full = 1 acenter_prio_new_login = 0 acenter_cats = , acenter_prio_startup = 0 acenter_prio_download = 0 acenter_prio_error = 0 acenter_prio_queue_done = 1 acenter_enable = 0 acenter_prio_failed = 1 acenter_prio_complete = 1 acenter_prio_pp = 0 acenter_prio_other = 0 [ntfosd] ntfosd_prio_queue_done = 1 ntfosd_enable = 1 ntfosd_cats = , ntfosd_prio_error = 0 ntfosd_prio_startup = 1 ntfosd_prio_complete = 1 ntfosd_prio_pp = 0 ntfosd_prio_warning = 0 ntfosd_prio_other = 0 ntfosd_prio_disk_full = 1 ntfosd_prio_new_login = 0 ntfosd_prio_download = 0 ntfosd_prio_failed = 1 [pushbullet] pushbullet_prio_error = 0 pushbullet_prio_download = 0 pushbullet_prio_queue_done = 0 pushbullet_cats = , pushbullet_prio_complete = 1 pushbullet_enable = 0 pushbullet_device = "" pushbullet_prio_failed = 1 pushbullet_prio_other = 0 pushbullet_apikey = pushbullet_prio_disk_full = 1 pushbullet_prio_new_login = 0 pushbullet_prio_pp = 0 pushbullet_prio_startup = 0 pushbullet_prio_warning = 0 [servers] [[news.newshosting.com]] username= priority = 0 enable = 1 displayname = news.newshosting.com name = news.newshosting.com ssl_ciphers = "" notes = "" connections = 30 ssl = 1 host = news.newshosting.com timeout = 60 ssl_verify = 1 send_group = 0 password= optional = 0 port = 563 retention = 0 [categories] [[software]] priority = -100 pp = "" name = software script = Default newzbin = "" order = 0 dir = "" [[]] priority = 0 pp = 3 name = * script = None newzbin = "" order = 0 dir = "" [[audio]] priority = -100 pp = "" name = audio script = Default newzbin = "" order = 0 dir = "" [[movies]] priority = -100 pp = "" name = movies script = Default newzbin = movies order = 0 dir = Movies [[tv]] priority = 2 pp = "" name = tv script = Default newzbin = tv order = 0 dir = tv

blackenedvoodoo commented 5 years ago

That is what the end of the log says but it does not have the name of the file I am trying to download anywhere. Like it isn't making it to sab