Unable to send nzb file to SABnzbd

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
Blokie
Posts: 8
Joined: Thu Jan 02, 2014 12:45 am

Unable to send nzb file to SABnzbd

Post by Blokie »

Hi,

I'm having an issue on Linux getting Mylar to pass hits to Sab.

SickBeard and CouchPotato both work fine with my Sab install, and there is nothing in the Sab logs related to Mylar, so I think it's not getting as far as passing the info over.

The connection test works fine:

Code: Select all

02-Jan-2014 00:39:36 - INFO    :: CP Server Thread-8 : testing SABnzbd connection
02-Jan-2014 00:39:36 - INFO    :: CP Server Thread-8 : testing connection to SABnzbd @ https://192.168.0.40:9090/
02-Jan-2014 00:39:36 - INFO    :: CP Server Thread-8 : SAB API Key (FULL API KEY):xxxxxxxxxxxxxxxxxxxxxx
02-Jan-2014 00:39:36 - INFO    :: CP Server Thread-8 : API KEY provided is FULL API KEY
02-Jan-2014 00:39:36 - INFO    :: CP Server Thread-8 : Connection to SABnzbd tested sucessfully
..but when a successful hit from a newznab server is attempted (it's doing the same thing with 3 different providers) to be passed to Sab it fails (I've modified api keys with some xxxxxx's!) but with no useful error:

Code: Select all

02-Jan-2014 00:40:13 - INFO    :: Thread-13 : Found The xxxxxx (2014) issue: 6 using nzbs.in (newznab)
02-Jan-2014 00:40:13 - DEBUG   :: Thread-13 : link given by: newznab
02-Jan-2014 00:40:13 - DEBUG   :: Thread-13 : cache directory successfully found at : /home/xxxx/mylar/cache
02-Jan-2014 00:40:13 - DEBUG   :: Thread-13 : link to retrieve via api:https://nzbs.in/getnzb/5434fcf9313adfb5bc24ffe173681c4e.nzb%26i=644%26r=2833xxxxxxxxxx4f34303a2fd793db
02-Jan-2014 00:40:13 - DEBUG   :: Thread-13 : nzbname used for post-processing:The.Comic.006.(2013).(Digital).(Darkness-Empire)
02-Jan-2014 00:40:13 - DEBUG   :: Thread-13 : send-to-SAB host string: https://192.168.0.40:9090/
02-Jan-2014 00:40:13 - DEBUG   :: Thread-13 : ...selecting API type: https://192.168.0.40:9090//api?mode=addurl&name=
02-Jan-2014 00:40:13 - DEBUG   :: Thread-13 : ...attaching nzb provider link: https://192.168.0.40:9090//api?mode=addurl&name=https://nzbs.in/getnzb/5434fcf9313adfb5bc24ffe173681c4e.nzb%26i=644%26r=2833e66a06c87d924f34303a2fd793db
02-Jan-2014 00:40:13 - DEBUG   :: Thread-13 : ...setting priority: https://192.168.0.40:9090//api?mode=addurl&name=https://nzbs.in/getnzb/5434fcf9313adfb5bc24ffe173681c4e.nzb%26i=644%26r=2833xxxxxxxxxxxx4303a2fd793db&priority=-100
02-Jan-2014 00:40:13 - DEBUG   :: Thread-13 : ...attaching category: https://192.168.0.40:9090//api?mode=addurl&name=https://nzbs.in/getnzb/5434fcf9313adfb5bc24ffe173681c4e.nzb%26i=644%26r=2833e66a06c87d924f34303a2fd793db&priority=-100&cat=comics
02-Jan-2014 00:40:13 - DEBUG   :: Thread-13 : Completed send-to-SAB link: https://192.168.0.40:9090//api?mode=addurl&name=https://nzbs.in/getnzb/5434fcf9313adfb5bc24ffe173681c4e.nzb%26i=644%26r=2833xxxxxxxxxx4f34303a2fd793db&priority=-100&cat=comics&apikey=aff94xxxxxxxxxxxx13574673d8
[b]02-Jan-2014 00:40:13 - ERROR   :: Thread-13 : Unable to send nzb file to SABnzbd[/b]
02-Jan-2014 00:40:13 - DEBUG   :: Thread-13 : using Newznab host of : NzbGeekVIP
02-Jan-2014 00:40:13 - INFO    :: Thread-13 : Shhh be very quiet...I'm looking for
Any thoughts?
User avatar
evilhero
Site Admin
Posts: 2904
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Unable to send nzb file to SABnzbd

Post by evilhero »

Just popping in really quickly, but based on that log you have a trailing slash in your Sabnzbd address within Mylar. I've been meaning to add in a check for that, but obviously it's not in there currently.

Try removing the trailing slash from the sab address, restart Mylar and see if that helps.

The test connection uses a different parsed value than the search module, in case you were wondering why it worked for the Test Connection but not for the search results. ;)
Blokie
Posts: 8
Joined: Thu Jan 02, 2014 12:45 am

Re: Unable to send nzb file to SABnzbd

Post by Blokie »

That sorted it thanks :-)
pdxwrex
Posts: 3
Joined: Fri Jul 11, 2014 9:56 pm

Re: Unable to send nzb file to SABnzbd

Post by pdxwrex »

I'm getting the same error.

I used Mylar for a year or so and then kinda let it fizzle because I just didn't have enough time to read anything. When it's working this thing is amazing.

So, today I went ahead and grabbed the mylar-development.zip and extracted the contents(just like I did last time).

I've checked for the very common trailing slash issue. I've tried using the FULL API key from SABnzbd, the NZB key, and even disabling the API Key Req in SABnzbd. I don't know how to "test" the connection like the OP.

I'm not sure what else it could be...

Python Version 2.7.8
Windows 7 Enterprise x64

LOG:

Code: Select all

11-Jul-2014 18:41:32 - INFO    :: Thread-13 : Found Batman Eternal (2014) issue: 1 using nzb.su
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : new linkit:.nzb%26i=32580%26r=b47807ce713c6d24339a6da7ebaf91ed
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : link given by: nzb.su
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : cache directory successfully found at : C:\Users\XXX\mylar-development\mylar-development\cache
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : link to retrieve via api:https://api.nzb.su/getnzb/2d7bb366f1eed0009e712bf2e31f452a.nzb%26i=32580%26r=b4xxx7ebaf91ed
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : [SEARCHER] entry[title]: Batman Eternal 001 (2014) (Digital) (Nahga-Empire)
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : [SEARCHER] nzbname (\s): Batman Eternal 001 (2014) (Digital) (Nahga-Empire)
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : [SEARCHER] nzbname (space to .): Batman.Eternal.001.(2014).(Digital).(Nahga-Empire)
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : [SEARCHER] end nzbname: Batman.Eternal.001.(2014).(Digital).(Nahga-Empire)
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : nzbname used for post-processing:Batman.Eternal.001.(2014).(Digital).(Nahga-Empire)
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : send-to-SAB host string: http://localhost8080
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : ...selecting API type: http://localhost8080/api?mode=addurl&name=
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : ...attaching nzb provider link: http://localhost8080/api?mode=addurl&name=https://api.nzb.su/getnzb/2d7bb366f1eed0009e712bf2e31f452a.nzb%26i=32580%26r=b47xxxda7ebaf91ed
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : ...setting priority: http://localhost8080/api?mode=addurl&name=https://api.nzb.su/getnzb/2d7bb366f1eed0009e712bf2e31f452a.nzb%26i=32580%26r=b47xxxda7ebaf91ed&priority=0
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : ...attaching category: http://localhost8080/api?mode=addurl&name=https://api.nzb.su/getnzb/2d7bb366f1eed0009e712bf2e31f452a.nzb%26i=32580%26r=b47xxxda7ebaf91ed&priority=0&cat=Default
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : ...attaching rename script: http://localhost8080/api?mode=addurl&name=https://api.nzb.su/getnzb/2d7bb366f1eed0009e712bf2e31f452a.nzb%26i=32580%26r=b47xxxda7ebaf91ed&priority=0&cat=Default&script=ComicRN.py
11-Jul-2014 18:41:32 - DEBUG   :: Thread-13 : Completed send-to-SAB link: http://localhost8080/api?mode=addurl&name=https://api.nzb.su/getnzb/2d7bb366f1eed0009e712bf2e31f452a.nzb%26i=32580%26r=b47xxxda7ebaf91ed&priority=0&cat=Default&script=ComicRN.py&apikey=5700xxx09dea5
11-Jul-2014 18:41:35 - ERROR   :: Thread-13 : Unable to send nzb file to SABnzbd
CONFIG:

Code: Select all

[General]
config_version = 5
comicvine_api = X
cvapi_count = 0
cvapi_time = 2014-07-11 18:38:42
http_port = 8090
http_host = 0.0.0.0
http_username = ""
http_password = ""
http_root = /
https_force_on = 0
api_enabled = 1
api_key = X
launch_browser = 1
log_dir = C:\Users\XXXXX\mylar-development\mylar-development\logs
max_logsize = 1000000
logverbose = 0
git_path = ""
cache_dir = C:\Users\XXXXX\mylar-development\mylar-development\cache
annuals_on = 0
cv_only = 1
cv_onetimer = 1
cvapifix = 0
check_github = 1
check_github_on_startup = 1
check_github_interval = 360
destination_dir = C:\Users\XXXXX\Downloads\mylar_comics
chmod_dir = 0777
chmod_file = 0660
usenet_retention = 1500
search_interval = 360
nzb_startup_search = 1
libraryscan = 1
libraryscan_interval = 300
add_comics = 0
comic_dir = ""
imp_move = 0
imp_rename = 0
imp_metadata = 0
download_scan_interval = 5
check_folder = ""
interface = default
autowant_all = 0
autowant_upcoming = 1
preferred_quality = 0
comic_cover_local = 0
correct_metadata = 0
move_files = 0
rename_files = 0
folder_format = $Series ($Year)
file_format = $Series $Issue ($Year)
blackhole_dir = ""
replace_spaces = 0
replace_char = .
zero_level = 0
zero_level_n = none
lowercase_filenames = 0
ignore_havetotal = 0
syno_fix = 0
search_delay = 1
grabbag_dir = C:\Users\XXXXX\Downloads\mylar_comics
highcount = 0
read2filename = 0
storyarcdir = 0
use_minsize = 0
minsize = ""
use_maxsize = 0
maxsize = ""
add_to_csv = 1
cvinfo = 0
log_level = 0
enable_extra_scripts = 0
extra_scripts = ""
enable_pre_scripts = 0
pre_scripts = ""
post_processing = 0
weekfolder = 0
locmove = 0
newcom_dir = ""
fftonewcom_dir = 0
enable_meta = 0
cmtagger_path = ""
ct_tag_cr = 1
ct_tag_cbl = 1
ct_cbz_overwrite = 0
indie_pub = 75
biggie_pub = 55
enable_rss = 0
rss_checkinterval = 20
rss_lastrun = 2014-07-11 13:43:38
provider_order = 0, nzb.su
nzb_downloader = 0
[Torrents]
enable_torrents = 0
minseeds = 0
torrent_local = 0
local_watchdir = ""
torrent_seedbox = 0
seedbox_host = ""
seedbox_port = ""
seedbox_user = ""
seedbox_pass = ""
seedbox_watchdir = ""
enable_torrent_search = 0
enable_kat = 0
kat_proxy = ""
enable_cbt = 0
cbt_passkey = ""
snatchedtorrent_notify = 0
[SABnzbd]
sab_host = http://localhost8080
sab_username = XXXXXXX
sab_password = XXXXXXX
sab_apikey = X
sab_category = Default
sab_priority = Normal
sab_directory = ""
[NZBGet]
nzbget_host = ""
nzbget_port = ""
nzbget_username = ""
nzbget_password = ""
nzbget_category = ""
nzbget_priority = Default
nzbget_directory = ""
[NZBsu]
nzbsu = 1
nzbsu_uid = ""
nzbsu_apikey = X
[DOGnzb]
dognzb = 0
dognzb_uid = ""
dognzb_apikey = ""
[Experimental]
experimental = 0
altexperimental = 1
[Newznab]
newznab = 0
extra_newznabs = ,
[Prowl]
prowl_enabled = 0
prowl_keys = ""
prowl_onsnatch = 0
prowl_priority = 0
[NMA]
nma_enabled = 0
nma_apikey = ""
nma_priority = 0
nma_onsnatch = 0
[PUSHOVER]
pushover_enabled = 0
pushover_apikey = ""
pushover_userkey = ""
pushover_priority = 0
pushover_onsnatch = 0
[BOXCAR]
boxcar_enabled = 0
boxcar_onsnatch = 0
boxcar_token = ""
[PUSHBULLET]
pushbullet_enabled = 0
pushbullet_apikey = ""
pushbullet_deviceid = ""
pushbullet_onsnatch = 0
[Raw]
raw = 0
raw_provider = None
raw_username = None
raw_password = None
raw_groups = None
Any help is greatly appreciated.
User avatar
evilhero
Site Admin
Posts: 2904
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Unable to send nzb file to SABnzbd

Post by evilhero »

[SABnzbd]
sab_host = http://localhost8080
Just noticed really quickly that you're missing the ':' in the http://localhost:8080

As well, you probably want to set a category for comics within Mylar and Sabnzbd just to keep things isolated to just comics ;)

Aside from that everything else looks ok (glancing really quickly). Mylar uses the nzbkey from Sabnzbd, but if you give it the full apikey, it will downgrade it to just the nzbkey or if you just give your username/password for sabnzbd and click on the altogether button it will attempt to autoload in the nzbkey from your Sabnzbd.

If it's still giving problems, shoot a msg back and I can help out with troubleshooting to get it all working for you.


Hopefully once you get this straightened out, Mylar will be able to save you some work ;) Thanks for trying it again!
pdxwrex
Posts: 3
Joined: Fri Jul 11, 2014 9:56 pm

Re: Unable to send nzb file to SABnzbd

Post by pdxwrex »

Just noticed really quickly that you're missing the ':' in the http://localhost:8080
Guess I just needed a second set of eyes to look over my config.

Working again!

However, it is downloading duplicates... not a big deal tho.

Thanks again for a great tool!
pdxwrex
Posts: 3
Joined: Fri Jul 11, 2014 9:56 pm

Re: Unable to send nzb file to SABnzbd

Post by pdxwrex »

Just another quick update: after setting the category and download location in Mylar it is no longer downloading doubles of every issue.

Thanks again for your help.
Post Reply