Error using Newsbin with Couchpotato

Technical support and discussion of Newsbin Version 6 series.

Error using Newsbin with Couchpotato

Postby ppan » Tue Aug 23, 2016 11:01 pm

I switched from SABnzbd to Newsbin to use with Couchpotato;
However, I have not been able to download anything since the switch. Here is an example of the couchpotato log:

INFO [.core.downloaders.sabnzbd] Sending "xxxNZBxxxx" to SABnzbd.

ERROR[.core.downloaders.sabnzbd] Failed sending release, use API key, NOT the NZB key: Traceback (most recent call last):
ConnectionError: ('Connection aborted.', BadStatusLine('\xdc\x87\xb5\x8bO\x15\xc6\xaa\xac\xbfK\x9d<4\xe9\x05\x98l\xa5~\xcf\x84\x87\xdb>"\xc6\xb3\x0c\x18\xeb^\xe6\xfa\x8e]\x86L\xa5\x16\x8eg\xda\xfb-\xf6\x19\xb1\xdb\xcd\x8a\x13r\xafn{X\xb3\xba\xce\x8b\xd6\x9c\x02',))


I followed the instructions to set it up here: http://help.newsbin.com/index.php/V660-NewFeatures
Note that I did not use an API key, and there is no username/password in Couchpotato
ppan
Seasoned User
Seasoned User
 
Posts: 245
Joined: Mon Jun 20, 2011 6:49 pm

Registered Newsbin User since: 08/24/09

Re: Error using Newsbin with Couchpotato

Postby Quade » Tue Aug 23, 2016 11:07 pm

I'd set the same API key on both ends and see what happens. It's an arbitrary string. It just has to be the same on both sides.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44988
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Error using Newsbin with Couchpotato

Postby ppan » Tue Aug 23, 2016 11:41 pm

I added the API key and fiddled around with the port;
Seems to connect fine now now, but Newsbin throws an error:

[19:38:24] ERROR SB - Failed to add New NZB to Download list.SomeMovie.rar
ppan
Seasoned User
Seasoned User
 
Posts: 245
Joined: Mon Jun 20, 2011 6:49 pm

Registered Newsbin User since: 08/24/09

Re: Error using Newsbin with Couchpotato

Postby ppan » Tue Aug 23, 2016 11:59 pm

I turned on debug mode (in case that helps you):

[19:48:04] DEBUG GET /api?output=json&apikey=123newsbinapi&limit=15&mode=history HTTP/1.1
[19:48:38] DEBUG Host: localhost:8090
[19:48:38] DEBUG Content-Length: 306
[19:48:38] DEBUG Accept-encoding: gzip
[19:48:38] DEBUG Accept: */*
[19:48:38] DEBUG User-Agent: CouchPotato windows - desktop-3.0.1 - v2
[19:48:38] DEBUG Connection: keep-alive
[19:48:38] DEBUG Referer: http://localhost:8090
[19:48:38] DEBUG Cache-Control: max-age=0
[19:48:38] DEBUG Content-Type: multipart/form-data; boundary=fecfc6ca9b4d49ed86982198bb18355e
[19:48:38] DEBUG SbServer: Read Request POST /api?nzbname=xxxSomeMoviexxx.cp%28tt0401729%29&apikey=123newsbinapi&cat=couchpotato&priority=0&mode=addfile&output=json HTTP/1.1

[19:48:38] DEBUG POST /api?nzbname=xxxSomeMoviexxx.cp%28tt0401729%29&apikey=123newsbinapi&cat=couchpotato&priority=0&mode=addfile&output=json HTTP/1.1
[19:48:38] DEBUG SB - NZB Read - Data received from SB is: 306 Bytes
[19:48:38] DEBUG SB - New NZB notification
[19:48:38] DEBUG SB - NZB Filename Downloaded: xxxSomeMoviexxx.cp(tt0401729).rar
[19:48:38] DEBUG SB - New NZB xxxSomeMoviexxx.cp(tt0401729).rar
[19:48:38] ERROR SB - Failed to add New NZB to Download listxxxSomeMoviexxx.cp(tt0401729).rar
ppan
Seasoned User
Seasoned User
 
Posts: 245
Joined: Mon Jun 20, 2011 6:49 pm

Registered Newsbin User since: 08/24/09

Re: Error using Newsbin with Couchpotato

Postby Quade » Wed Aug 24, 2016 12:29 am

Seems pretty clear. The link Couch is sending is downloading rars and not NZB files. I don't know that that's the problem but I bet it is.

If you'd mentioned this before 6.72 came out, it's probably something that could have been added. As it is, it won't get looked at till the next beta round starts and I have no idea how long that'll be.

You might see if you can tell your search site not to send rars but to send NZB's instead.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44988
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Error using Newsbin with Couchpotato

Postby ppan » Wed Aug 24, 2016 12:41 am

That is strange. Other users have used Couchpotato with Newsbin.
See here for example:
viewtopic.php?f=44&t=38588&p=210756&hilit=couchpotato#p210756
and
viewtopic.php?f=43&t=38193&p=211057&hilit=couchpotato#p211057

However, they used an older version of Newsbin. Maybe it is broken in v6.72?

EDIT: Note that SABnzbd receives the NZBs from Couchpotato in the format Mymovie.nzb.gz (at least that is how they are saved in the SABnzbd folder)
ppan
Seasoned User
Seasoned User
 
Posts: 245
Joined: Mon Jun 20, 2011 6:49 pm

Registered Newsbin User since: 08/24/09

Re: Error using Newsbin with Couchpotato

Postby Quade » Wed Aug 24, 2016 1:45 am

That is strange. Other users have used Couchpotato with Newsbin.


They might not be using the same search engine you are though. Ultimately it's the search engine that's sending RARS or NZB's. Couch isn't sending NZBS (though you might want to check the options to see if it can) it's sending URL's that Newsbin then downloads for couch.

I don't know if I'm right either. It's just the first thing that stood out.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44988
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Error using Newsbin with Couchpotato

Postby ppan » Wed Aug 24, 2016 2:23 am

This is the Couchpotato log:

08-23 22:12:16INFO[hpotato.core.plugins.base] Opening url: get https://www.nzbfinder.ws/api?t=get&id=a ... apikey=xxx
08-23 22:12:17INFO[.core.downloaders.sabnzbd] Sending "MyMovie" to SABnzbd.
08-23 22:12:17INFO[hpotato.core.plugins.base] Opening url: post http://localhost:8090/api?nzbname=Mymov ... utput=json, data: []
08-23 22:12:17INFO[.core.downloaders.sabnzbd] NZB sent to SAB successfully.
08-23 22:12:17INFO[tato.core.plugins.release] Snatched "MyMovie": MyMovie in 1080p from Newznab, http://www.nzbfinder.ws

Any ideas if NZB is supposed to be sent to SAB/Newsbin?

If it is RAR files, why is only one file shown "Mymoviexx.rar? It is a set with many rars..
ppan
Seasoned User
Seasoned User
 
Posts: 245
Joined: Mon Jun 20, 2011 6:49 pm

Registered Newsbin User since: 08/24/09

Re: Error using Newsbin with Couchpotato

Postby Quade » Wed Aug 24, 2016 9:01 am

The RAR contains the NZB.

The protocol allows NZB's to be sent or URLS to be sent. Sonaar sends the NZB, Sickbeard sends the URL.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44988
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Error using Newsbin with Couchpotato

Postby ppan » Wed Aug 31, 2016 3:56 pm

OK. so maybe this can be fixed in the next release so that Newsbin accepts the compressed NZB like SABnzbd.

BTW, I tried Sonarr and that works fine with Newsbin :)
ppan
Seasoned User
Seasoned User
 
Posts: 245
Joined: Mon Jun 20, 2011 6:49 pm

Registered Newsbin User since: 08/24/09

Re: Error using Newsbin with Couchpotato

Postby Quade » Wed Aug 31, 2016 4:54 pm

OK. so maybe this can be fixed in the next release so that Newsbin accepts the compressed NZB like SABnzbd.


Yeah, it already does every place else. This didn't look like a "thing" till you discovered it.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44988
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97


Return to V6 Technical Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests