Jump to content

using binhex apps, sab and sb, wrong api


jang430

Recommended Posts

I'm using binhex's docker apps, sab and sb.  I changed host port of sab to 8081, and sb to 8082.  I didn't change the container port.  I've successfully tested authentication of sickbeard to sab.  I've placed sab's api onto sickbeard.  But it's having error when sending to sab.  See attachment please.

wrong_api.png.7b2533a5f4445ae29a7e404ee305143b.png

Link to comment

I suspect my sab and sb not talking.  I've tried to generate a new api from sabnzbd, and placed it inside sickbeard.  Once again, test connectivity was successful.  But when snatching tv episodes, the following error persists:

 

2015-06-28 07:17:33 SEARCHQUEUE-MANUAL-SEARCH :: Unknown failure sending NZB to sab. Return text is: {

    "data": {},

    "message": "API :: 127.0.0.1 - gave WRONG API KEY e5b82271b75cdfcc5e9e835b7ff9fa51. ACCESS DENIED",

    "result": "denied"

}

 

Furthermore, post processing sabnzbd using nzbtosickbeard yields me the following error:

 

*** This has been cut short ***

 

[07:11:27] [WARNING]::MAIN: Data from SABnzbd could not be parsed

[07:11:27] [iNFO]::MAIN: Auto-detected SECTION:SickBeard

[07:11:27] [iNFO]::MAIN: Calling SickBeard:tv to post-process:Suits.S05E01.HDTV.x264-KILLERS.nzb

[07:11:27] [ERROR]::SICKBEARD: Server did not respond. Exiting

[07:11:27] [ERROR]::MAIN: A problem was reported in the /config/scripts/nzbToSickBeard.py script.

SickBeard: Failed to post-process - SickBeard did not respond.!

 

 

My sab's configuration on the webui states that it's port 8080, and my sickbeard's webui states that it's web interface listens to port 8081.  My docker app's host port mapping for sabnzbd is 8081, while for sickbeard is 8082.

 

Lastly, my post processing script has the following details:

 

[sickBeard]

    #### autoProcessing for TV Series

    #### tv - category that gets called for post-processing with SB

    [[tv]]

        enabled = 1

        host = localhost

        port = 8082

        username = ""

        password = ""

        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######

        web_root = ""

        ssl = 0

        fork = auto

        delete_failed = 1

        # Enable/Disable linking for Torrents

        Torrent_NoLink = 0

        process_method = ""

        # force processing of already processed content when running a manual scan.

        force = 0

        extract = 1

        nzbExtractionBy = Downloader

        # Set this to minimum required size to consider a media file valid (in MB)

        minSize = 0

        # Enable/Disable deleteing ignored files (samples and invalid media files)

        delete_ignored = 1

        ##### Enable if SickBeard is on a remote server for this category

        remote_path = 0

        ##### Set to path where download client places completed downloads locally for this category

        watch_dir = ""

 

Is all these too much?  Sickbeard is not sending to sab, while sab fails to inform sickbeard.  Hope someone can shed some light to this soon as possible. 

Link to comment

I suspect my sab and sb not talking.  I've tried to generate a new api from sabnzbd, and placed it inside sickbeard.  Once again, test connectivity was successful.  But when snatching tv episodes, the following error persists:

 

2015-06-28 07:17:33 SEARCHQUEUE-MANUAL-SEARCH :: Unknown failure sending NZB to sab. Return text is: {

    "data": {},

    "message": "API :: 127.0.0.1 - gave WRONG API KEY e5b82271b75cdfcc5e9e835b7ff9fa51. ACCESS DENIED",

    "result": "denied"

}

 

Furthermore, post processing sabnzbd using nzbtosickbeard yields me the following error:

 

*** This has been cut short ***

 

[07:11:27] [WARNING]::MAIN: Data from SABnzbd could not be parsed

[07:11:27] [iNFO]::MAIN: Auto-detected SECTION:SickBeard

[07:11:27] [iNFO]::MAIN: Calling SickBeard:tv to post-process:Suits.S05E01.HDTV.x264-KILLERS.nzb

[07:11:27] [ERROR]::SICKBEARD: Server did not respond. Exiting

[07:11:27] [ERROR]::MAIN: A problem was reported in the /config/scripts/nzbToSickBeard.py script.

SickBeard: Failed to post-process - SickBeard did not respond.!

 

 

My sab's configuration on the webui states that it's port 8080, and my sickbeard's webui states that it's web interface listens to port 8081.  My docker app's host port mapping for sabnzbd is 8081, while for sickbeard is 8082.

 

Lastly, my post processing script has the following details:

 

[sickBeard]

    #### autoProcessing for TV Series

    #### tv - category that gets called for post-processing with SB

    [[tv]]

        enabled = 1

        host = localhost

        port = 8082

        username = ""

        password = ""

        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######

        web_root = ""

        ssl = 0

        fork = auto

        delete_failed = 1

        # Enable/Disable linking for Torrents

        Torrent_NoLink = 0

        process_method = ""

        # force processing of already processed content when running a manual scan.

        force = 0

        extract = 1

        nzbExtractionBy = Downloader

        # Set this to minimum required size to consider a media file valid (in MB)

        minSize = 0

        # Enable/Disable deleteing ignored files (samples and invalid media files)

        delete_ignored = 1

        ##### Enable if SickBeard is on a remote server for this category

        remote_path = 0

        ##### Set to path where download client places completed downloads locally for this category

        watch_dir = ""

 

Is all these too much?  Sickbeard is not sending to sab, while sab fails to inform sickbeard.  Hope someone can shed some light to this soon as possible.

don't use localhost or 127.0.0.1 for communication between containers, use the ip of the unraid box itself.
Link to comment

Sparklyballs, johnc, but why is it when I allow sickbeard to test authentication, it actually says successful?

 

Btw, both sab and sickbeard are configured as bridge.  I assume if my unraid box is 192.168.1.103, the ip for both sab and sickbeard is the same?

 

Lastly, which port shall I be using?  the host port that I declared at the docker setup?  Sab 8081 and sickbeard 8082, or the port set inside the app itseelf?  In this case, this will be 8080 for sab, and 8081 for sickbeard. 

Link to comment

Sparklyballs, johnc, but why is it when I allow sickbeard to test authentication, it actually says successful?

 

Btw, both sab and sickbeard are configured as bridge.  I assume if my unraid box is 192.168.1.103, the ip for both sab and sickbeard is the same?

 

Lastly, which port shall I be using?  the host port that I declared at the docker setup?  Sab 8081 and sickbeard 8082, or the port set inside the app itseelf?  In this case, this will be 8080 for sab, and 8081 for sickbeard.

 

I can't say why it would show successful when you test.  Mine does not...

 

But as for your configuration, based on what you've said above:

1) You should configure sickbeard with a SABnzbd server URL of "http://192.168.1.103:8081/sabnzbd/"

2) For sabnzbd: edit your autoProcessTV.cfg file in your /config/scripts folder.  In that file, set host=192.168.1.103 and port=8082.

 

That should get them talking to each other on the correct IP:port.

Link to comment

Hello Johnc, thanks for your patience.  You are correct, changing the IP to IP of unraid solved the snatching and adding from sickbeard to sab. 

 

I was just about to ask about postprocessing of sab to sickbeard.  I experienced some error though.  So close, but not quite.  Hope you have some more patience left to help :D

 

The following are from autoprocesstv.cfg

 

[sickBeard]

    #### autoProcessing for TV Series

    #### tv - category that gets called for post-processing with SB

    [[tv]]

        enabled = 1

        host = 192.168.1.103

        port = 8082

        username = ""

        password = ""

        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######

        web_root = ""

        ssl = 0

        fork = auto

        delete_failed = 0

        # Enable/Disable linking for Torrents

        Torrent_NoLink = 0

        process_method = ""

        # force processing of already processed content when running a manual scan.

        force = 0

        extract = 1

        nzbExtractionBy = Downloader

        # Set this to minimum required size to consider a media file valid (in MB)

        minSize = 0

        # Enable/Disable deleteing ignored files (samples and invalid media files)

        delete_ignored = 1

        ##### Enable if SickBeard is on a remote server for this category

        remote_path = 0

        ##### Set to path where download client places completed downloads locally for this category

        watch_dir = /mnt/cache/.sabnzbd/Downloads/complete/TV

 

Error encountered in sab post processing

 

[17:47:07] [iNFO]::MAIN: Calling SickBeard:tv to post-process:Ninjago.Masters.of.Spinjitzu.The.Tournament.of.Elements.S04E09.The.Greatest.Fear.of.All.CONVERT.HDTV.x264-W4F.nzb

[17:47:10] [iNFO]::MAIN: Attempting to auto-detect tv fork

[17:47:10] [iNFO]::MAIN: SickBeard:tv fork auto-detection successful ...

[17:47:10] [iNFO]::MAIN: SickBeard:tv fork set to default

[17:47:10] [iNFO]::MAIN: FLATTEN: Flattening directory: /config/Downloads/complete/TV/Ninjago Masters of Spinjitzu The Tournament of Elements S04E09 The Greatest Fear of All CONVERT HDTV x264-W4F

[17:47:10] [postPROCESS]::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request

[17:47:10] [postPROCESS]::SICKBEARD: Processing folder: /config/Downloads/complete/TV/Ninjago Masters of Spinjitzu The Tournament of Elements S04E09 The Greatest Fear of All CONVERT HDTV x264-W4F

[17:47:10] [postPROCESS]::SICKBEARD: Unable to figure out what folder to process. If your downloader and Sick Beard aren't on the same PC make sure you fill out your TV download dir in the config.

[17:47:10] [ERROR]::MAIN: A problem was reported in the /config/scripts/nzbToSickBeard.py script.

SickBeard: Failed to post-process - Returned log from SickBeard was not as expected.!

 

 

My sickbeard settings inside the webui

 

/media/LEGO NinjaGo Masters of Spinjitzu

 

My sickbeard docker app setting

 

/data This path is used retrieve the downloaded files by your downloader application = /mnt/cache/.sabnzbd/Downloads/complete/TV/  <-----------------  Is this pertaining to where sab puts temporarily downloaded files?  Is this so sb knows where to find, and rename to wanted convention?

 

/media This is where sickbeard will scan for media files= /mnt/user/Media/TV/  <-------------------------  Not sure if this line is even necessary? 

 

Something I'd like to clarify:

 

When you add a show, sb asks you what quality, folder you want the show to be in.  Am I right that I should put this /Media/TV (this is my share in the array)

When it finds a show, it adds it to sab.  While the important part in sab is to put in post processing script IP of sb to notify it.  Folder/ path is TV.  SB will then rename the file to wanted format, and tag it to the folder it is supposed to go. 

Mover then moves it at night.

Is this correct? 

 

Link to comment

Hello Johnc, thanks for your patience.  You are correct, changing the IP to IP of unraid solved the snatching and adding from sickbeard to sab. 

 

I was just about to ask about postprocessing of sab to sickbeard.  I experienced some error though.  So close, but not quite.  Hope you have some more patience left to help :D

 

The following are from autoprocesstv.cfg

 

[sickBeard]

    #### autoProcessing for TV Series

    #### tv - category that gets called for post-processing with SB

    [[tv]]

        enabled = 1

        host = 192.168.1.103

        port = 8082

        username = ""

        password = ""

        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######

        web_root = ""

        ssl = 0

        fork = auto

        delete_failed = 0

        # Enable/Disable linking for Torrents

        Torrent_NoLink = 0

        process_method = ""

        # force processing of already processed content when running a manual scan.

        force = 0

        extract = 1

        nzbExtractionBy = Downloader

        # Set this to minimum required size to consider a media file valid (in MB)

        minSize = 0

        # Enable/Disable deleteing ignored files (samples and invalid media files)

        delete_ignored = 1

        ##### Enable if SickBeard is on a remote server for this category

        remote_path = 0

        ##### Set to path where download client places completed downloads locally for this category

        watch_dir = /mnt/cache/.sabnzbd/Downloads/complete/TV

 

Error encountered in sab post processing

 

[17:47:07] [iNFO]::MAIN: Calling SickBeard:tv to post-process:Ninjago.Masters.of.Spinjitzu.The.Tournament.of.Elements.S04E09.The.Greatest.Fear.of.All.CONVERT.HDTV.x264-W4F.nzb

[17:47:10] [iNFO]::MAIN: Attempting to auto-detect tv fork

[17:47:10] [iNFO]::MAIN: SickBeard:tv fork auto-detection successful ...

[17:47:10] [iNFO]::MAIN: SickBeard:tv fork set to default

[17:47:10] [iNFO]::MAIN: FLATTEN: Flattening directory: /config/Downloads/complete/TV/Ninjago Masters of Spinjitzu The Tournament of Elements S04E09 The Greatest Fear of All CONVERT HDTV x264-W4F

[17:47:10] [postPROCESS]::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request

[17:47:10] [postPROCESS]::SICKBEARD: Processing folder: /config/Downloads/complete/TV/Ninjago Masters of Spinjitzu The Tournament of Elements S04E09 The Greatest Fear of All CONVERT HDTV x264-W4F

[17:47:10] [postPROCESS]::SICKBEARD: Unable to figure out what folder to process. If your downloader and Sick Beard aren't on the same PC make sure you fill out your TV download dir in the config.

[17:47:10] [ERROR]::MAIN: A problem was reported in the /config/scripts/nzbToSickBeard.py script.

SickBeard: Failed to post-process - Returned log from SickBeard was not as expected.!

 

 

My sickbeard settings inside the webui

 

/media/LEGO NinjaGo Masters of Spinjitzu

 

My sickbeard docker app setting

 

/data This path is used retrieve the downloaded files by your downloader application = /mnt/cache/.sabnzbd/Downloads/complete/TV/  <-----------------  Is this pertaining to where sab puts temporarily downloaded files?  Is this so sb knows where to find, and rename to wanted convention?

 

/media This is where sickbeard will scan for media files= /mnt/user/Media/TV/  <-------------------------  Not sure if this line is even necessary? 

 

Something I'd like to clarify:

 

When you add a show, sb asks you what quality, folder you want the show to be in.  Am I right that I should put this /Media/TV (this is my share in the array)

When it finds a show, it adds it to sab.  While the important part in sab is to put in post processing script IP of sb to notify it.  Folder/ path is TV.  SB will then rename the file to wanted format, and tag it to the folder it is supposed to go. 

Mover then moves it at night.

Is this correct?

 

I think you may have some problems with your folders in your docker setups.  And there's also a setting for the watch folder in your autoProcessTV.cfg which has a path that won't work inside your docker.  Here are all of the docker paths I have configured for my own sabnzbd and sickrage dockers:

 

sabnzbd:

/config = /mnt/cache/.sabnzbd/

/data = /mnt/cache/.Download/

 

sickrage (will be same as sickbeard settings):

/config = /mnt/cache/.sickrage/

/data = /mnt/cache/.Download/

/media = /mnt/user/

(note: I also have sickrage configured to store all media into a TV folder so it will use /media/TV)

 

Comparing these to yours, I suggest these changes:

1) Configure both dockers to the same /data folder.  In your case, I think that should be "/mnt/cache/.sabnzbd/Downloads".  Do not include the "complete/TV" part - both apps know that structure so you don't specify it here.

2) Since you have sickbeard configured with /media = /mnt/user/Media/TV, make sure that your setting inside sickbeard is just "/media".

3) Edit your autoProcessTV.cfg again and change the watch_dir path to "/data/complete/TV".  I don't actually have that setting at all in mine (but I think my scripts are really old) so I'm not sure if it's used or causing a problem - but that path is definitely wrong from inside the docker.

 

Good luck, I think you're almost there!

 

Link to comment

Johnc,

 

I cut the conversation to make it shorter.

 

I think you may have some problems with your folders in your docker setups.  And there's also a setting for the watch folder in your autoProcessTV.cfg which has a path that won't work inside your docker.  Here are all of the docker paths I have configured for my own sabnzbd and sickrage dockers:

 

sabnzbd:

/config = /mnt/cache/.sabnzbd/

/data = /mnt/cache/.Download/

 

sickrage (will be same as sickbeard settings):

/config = /mnt/cache/.sickrage/

/data = /mnt/cache/.Download/

/media = /mnt/user/

(note: I also have sickrage configured to store all media into a TV folder so it will use /media/TV)

 

Comparing these to yours, I suggest these changes:

1) Configure both dockers to the same /data folder.  In your case, I think that should be "/mnt/cache/.sabnzbd/Downloads".  Do not include the "complete/TV" part - both apps know that structure so you don't specify it here.

2) Since you have sickbeard configured with /media = /mnt/user/Media/TV, make sure that your setting inside sickbeard is just "/media".

3) Edit your autoProcessTV.cfg again and change the watch_dir path to "/data/complete/TV".  I don't actually have that setting at all in mine (but I think my scripts are really old) so I'm not sure if it's used or causing a problem - but that path is definitely wrong from inside the docker.

 

In your suggestion above, where do I configure sickbeard to just be /media?  Is this under "TV Download Dir?"  I thought this folder is just for scan and process, or manual post processing only.  My Scan and process is unticked as of the moment.

 

 

Link to comment

In your suggestion above, where do I configure sickbeard to just be /media?  Is this under "TV Download Dir?"  I thought this folder is just for scan and process, or manual post processing only.  My Scan and process is unticked as of the moment.

 

In Sickrage it's in the General section and is called "Show root directories where the files of shows are located."  It should be the same or similar in Sickbeard.

Link to comment

Johnc,

 

I think I'll follow your convention for simplicity.  I'm getting confused with all the folder path (specially because there's mapping involved). 

 

I have last question though.  In explanation in docker sab app, /data This path is used retrieve the downloaded files by your downloader application, does binhex intend this path to be the location where sab should put downloads by default?  I'm confused by the term used "retrieve," because sab don't retrieve downloaded files. 

Link to comment

Johnc,

 

I think I'll follow your convention for simplicity.  I'm getting confused with all the folder path (specially because there's mapping involved). 

 

I have last question though.  In explanation in docker sab app, /data This path is used retrieve the downloaded files by your downloader application, does binhex intend this path to be the location where sab should put downloads by default?  I'm confused by the term used "retrieve," because sab don't retrieve downloaded files.

 

I'm sure that's just a cut-and-paste error from another docker.  sabnzbd *IS* the downloader.  Just think of /data as your "downloads" folder.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...