Trying to fix a problem with CPv2

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Chirs222555888
Newbie
Newbie
Posts: 8
Joined: November 13th, 2016, 11:58 am

Trying to fix a problem with CPv2

Post by Chirs222555888 »

Hello,
I just made a fresh Installation on my new NAS with SABnzbd (SABnzbdplus_160522 for QNAP). I also installed CouchPotato 2 (QCouchPotato_1.2__20160413) and SickBeard (SickBeard_141207).

I can't configure CP to use SABnzbdb as a Downloader. "Connection failed. Check logs for details." There no logs. Only when I type a wrong URL or give a wring API Key I get a log entry. The same settings work fine with Sickbeard. I am writing in this Forum because if I enter my old NAS sabnzdb installtion into CP2 it works fine. No Error. I am not 100% sure, but I think there might be a Problem between these two Versions.

Any Ideas of what I could try?

So thankfull for any response. I feel like such a noob...
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Trying to fix a problem with CPv2

Post by safihre »

Not your fault, it's a bug in CP that won't detect the version correctly even though the connection is successful.
In SAB, what version does it say you have (first page of the Config).

Just try to send an NZB via CP to really check if it works!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Chirs222555888
Newbie
Newbie
Posts: 8
Joined: November 13th, 2016, 11:58 am

Re: Trying to fix a problem with CPv2

Post by Chirs222555888 »

I was just out for a walk with the dog. Thank for hte fast response!

It says "develop" :-)
I took the newest from the forum post: https://forum.qnap.com/viewtopic.php?f=133&t=86644
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Trying to fix a problem with CPv2

Post by safihre »

That's the correct one and it should soon auto-update SAB to 1.1.1, after this CP won't show an error on the test anymore.
But you should already be able to send NZB's from CP to SAB!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Chirs222555888
Newbie
Newbie
Posts: 8
Joined: November 13th, 2016, 11:58 am

Re: Trying to fix a problem with CPv2

Post by Chirs222555888 »

Okay, first try I did get an error because of the wong API key. So I changed it.
Now I get no error from SAB, but after a few seconds from CP


### Information:
Movie(s) I have this with: ...
Quality of the movie being searched: ...
Providers I use: ...
Version of CouchPotato: git:(CouchPotato:CouchPotatoServer master) d7238913 (2016-11-07 20:37:29)
Running on: ...

### Logs:
```
11-13 19:00:06 ERROR [.core.downloaders.sabnzbd] Error getting data from SABNZBd: {u'status': False, u'nzo_ids': '[]'}
```

Don't think it works

in Addition:

Providers I use: ...
Version of CouchPotato: git:(CouchPotato:CouchPotatoServer master) d7238913 (2016-11-07 20:37:29)
Running on: ...

### Logs:
```
11-13 19:00:06 INFO [tato.core.plugins.release] Tried to download, but the "nzb" downloader gave an error
```
Chirs222555888
Newbie
Newbie
Posts: 8
Joined: November 13th, 2016, 11:58 am

Re: Trying to fix a problem with CPv2

Post by Chirs222555888 »

Hey Safihre,
where you able to reproduce the problem?

Still get the error:

------------------------------------------
### Steps to reproduce:
1. ..
2. ..

### Information:
Movie(s) I have this with: ...
Quality of the movie being searched: ...
Providers I use: ...
Version of CouchPotato: git:(CouchPotato:CouchPotatoServer master) d7238913 (2016-11-07 20:37:29)
Running on: ...

### Logs:
```
11-13 21:10:46 ERROR [.core.downloaders.sabnzbd] Error getting data from SABNZBd: {u'status': False, u'nzo_ids': '[]'}
```

--------------------------------

Let me know if I can provide you with any other informations.

Greetings from Bern ;-)
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Trying to fix a problem with CPv2

Post by safihre »

This means something went wrong when trying to add the job. You sure the API key is correct?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Chirs222555888
Newbie
Newbie
Posts: 8
Joined: November 13th, 2016, 11:58 am

Re: Trying to fix a problem with CPv2

Post by Chirs222555888 »

100% sure,
if I am using the wrong key, i get this error in SAB: API Key incorrect, Use the api key from Config->General in your 3rd party program: 192.168.0.47>CouchPotato linux - git-d7238913 - v2
This error did not occure. Just tested with a bad key and then the right key again.

Yep, don't know what else I could try at this stage...
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Trying to fix a problem with CPv2

Post by safihre »

Go into SABnzbd and set in the Status window the logging from Warnings/Errors to +Debug.
After you add something via CP (you manually click the download-link on a release from a specific movie, right?) check the logs of SABnzbd.
Don't do this while downloading, because then it's very hard to read the logs.
Only the last lines (before a copy of the config) should mention something about the adding.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Chirs222555888
Newbie
Newbie
Posts: 8
Joined: November 13th, 2016, 11:58 am

Re: Trying to fix a problem with CPv2

Post by Chirs222555888 »

Hey safihre,
okay, so I did. Yes, I added it with the direct Download Link, 2 diffrent movies as can be seen from the logs.

SAB Logs:
2016-11-14 07:30:00,547::DEBUG::[interface:523] API-call from 192.168.0.47 [CouchPotato linux - git-d7238913 - v2] {'nzbname': u'Trolls 2016 HDRip XviD AC3-EVO.cp(tt1679335)', 'apikey': u'<HASH>b3e3ce6', 'cat': u'movies', 'priority': u'0', 'mode': u'addfile', 'nzbfile': <cherrypy._cpreqbody.Part object at 0xe64beecc>, 'output': u'json'}
2016-11-14 07:30:00,548::INFO::[__init__:647] Adding Trolls 2016 HDRip XviD AC3-EVO.cp(tt1679335).rar
2016-11-14 07:30:50,944::DEBUG::[interface:523] API-call from 192.168.0.47 [CouchPotato linux - git-d7238913 - v2] {'nzbname': u'Miss Peregrines Home for Peculiar Children 2016 HDRip XviD AC3-EVO.cp(tt1935859)', 'apikey': u'<HASH>b3e3ce6', 'cat': u'movies', 'priority': u'0', 'mode': u'addfile', 'nzbfile': <cherrypy._cpreqbody.Part object at 0xeb3b94ec>, 'output': u'json'}
2016-11-14 07:30:50,945::INFO::[__init__:647] Adding Miss Peregrines Home for Peculiar Children 2016 HDRip XviD AC3-EVO.cp(tt1935859).rar

Logs CP:

[hpotato.core.plugins.base] Opening url: get https://api.themoviedb.org/3/search/mov ... &year=2016, data: []
11-14 07:30:00 INFO
[hpotato.core.plugins.base] Opening url: get https://api.themoviedb.org/3/movie/4164 ... anguage=en, data: []
11-14 07:30:00 INFO
[.core.downloaders.sabnzbd] Sending "Trolls 2016 HDRip XviD AC3-EVO" to SABnzbd.
11-14 07:30:00 INFO
[hpotato.core.plugins.base] Opening url: post http://192.168.0.47:2708/api?nzbname=Tr ... utput=json, data: []
11-14 07:30:00 ERROR
[.core.downloaders.sabnzbd] Error getting data from SABNZBd: {u'status': False, u'nzo_ids': '[]'}
11-14 07:30:00 INFO
[tato.core.plugins.release] Tried to download, but the "nzb" downloader gave an error
11-14 07:30:00 INFO
[providers.info.themoviedb] Found: [u'The Rolling Stones Havana Moon (2016)']
11-14 07:30:00 INFO
[hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/ismovie/tt5929796/?ignore=1, data: []
11-14 07:30:00 INFO
[hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/search/the+lif ... 1/?limit=1, data: []
11-14 07:30:00 INFO
[hpotato.core.plugins.base] Opening url: get http://www.omdbapi.com/?type=movie&y=&t ... bration+-1, data: []
11-14 07:30:00 INFO
[hpotato.core.plugins.base] Opening url: get https://api.themoviedb.org/3/search/mov ... bration+-1, data: []
11-14 07:30:01 INFO
[hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/search/the+rol ... 6/?limit=1, data: []
11-14 07:30:01 INFO
[hpotato.core.plugins.base] Opening url: get http://www.omdbapi.com/?type=movie&y=20 ... oon+deluxe, data: []
11-14 07:30:01 INFO
[hpotato.core.plugins.base] Opening url: get https://api.themoviedb.org/3/search/mov ... &year=2016, data: []
11-14 07:30:01 INFO
[hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/search/beethov ... 2/?limit=1, data: []
11-14 07:30:01 INFO
[hpotato.core.plugins.base] Opening url: get http://www.omdbapi.com/?type=movie&y=20 ... symphonies, data: []
11-14 07:30:01 INFO
[hpotato.core.plugins.base] Opening url: get https://api.themoviedb.org/3/search/mov ... &year=2012, data: []
11-14 07:30:02 INFO
[hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/search/donizet ... 5/?limit=1, data: []
11-14 07:30:02 INFO
[hpotato.core.plugins.base] Opening url: get http://www.omdbapi.com/?type=movie&y=20 ... o+devereux, data: []
11-14 07:30:02 INFO
[hpotato.core.plugins.base] Opening url: get https://api.themoviedb.org/3/search/mov ... &year=2015, data: []
11-14 07:30:02 INFO
[hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/search/verdi%3 ... 1/?limit=1, data: []
11-14 07:30:02 INFO
[hpotato.core.plugins.base] Opening url: get http://www.omdbapi.com/?type=movie&y=&t ... -+tosca+-1, data: []
11-14 07:30:03 INFO
[hpotato.core.plugins.base] Opening url: get https://api.themoviedb.org/3/search/mov ... -+tosca+-1, data: []
11-14 07:30:03 INFO
[hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/search/tchaiko ... 1/?limit=1, data: []
11-14 07:30:03 INFO
[hpotato.core.plugins.base] Opening url: get http://www.omdbapi.com/?type=movie&y=&t ... bolshoi+-1, data: []
11-14 07:30:03 INFO
[hpotato.core.plugins.base] Opening url: get https://api.themoviedb.org/3/search/mov ... bolshoi+-1, data: []
11-14 07:30:03 ERROR
[ couchpotato.core.event] Error in event "automation.get_chart_list", that wasn't caught: Traceback (most recent call last): File "/share/CACHEDEV1_DATA/.qpkg/QCouchPotato/QCouchPotato/couchpotato/core/event.py", line 15, in runHandler return handler(*args, **kwargs) File "/share/CACHEDEV1_DATA/.qpkg/QCouchPotato/QCouchPotato/couchpotato/core/media/movie/providers/automation/base.py", line 44, in _getChartList return self.getChartList() File "/share/CACHEDEV1_DATA/.qpkg/QCouchPotato/QCouchPotato/couchpotato/core/media/movie/providers/automation/bluray.py", line 129, in getChartList movie = self.search(name, year) File "/share/CACHEDEV1_DATA/.qpkg/QCouchPotato/QCouchPotato/couchpotato/core/media/movie/providers/automation/base.py", line 48, in search cache_name = name.decode('utf-8').encode('ascii', 'ignore') File "/opt/QPython2/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode character u'\xfa' in position 21: ordinal not in range(128) encoding=UTF-8 debug=False args=['--data_dir', '/share/CACHEDEV1_DATA/.qpkg/QCouchPotato/config', '--daemon', '--pid_file', '/share/CACHEDEV1_DATA/.qpkg/QCouchPotato/config/couchpotato.pid'] app_dir=/share/CACHEDEV1_DATA/.qpkg/QCouchPotato/QCouchPotato data_dir=/share/CACHEDEV1_DATA/.qpkg/QCouchPotato/config desktop=None options=Namespace(config_file='/share/CACHEDEV1_DATA/.qpkg/QCouchPotato/config/settings.conf', console_log=False, daemon=True, data_dir='/share/CACHEDEV1_DATA/.qpkg/QCouchPotato/config', debug=False, pid_file='/share/CACHEDEV1_DATA/.qpkg/QCouchPotato/config/couchpotato.pid', quiet=False)
11-14 07:30:50 INFO
[hpotato.core.plugins.base] Opening url: get http://api.nzbgeek.info/api?t=get&id=2e ... apikey=xxx
11-14 07:30:50 INFO
[.core.downloaders.sabnzbd] Sending "Miss Peregrines Home for Peculiar Children 2016 HDRip XviD AC3-EVO" to SABnzbd.
11-14 07:30:50 INFO
[hpotato.core.plugins.base] Opening url: post http://192.168.0.47:2708/api?nzbname=Mi ... utput=json, data: []
11-14 07:30:50 ERROR
[.core.downloaders.sabnzbd] Error getting data from SABNZBd: {u'status': False, u'nzo_ids': '[]'}

In CP there was a bigger error with the forst movie, but this happend for the first time "Error in event "automation.get_chart_list" at 11-14 07:30:03.

Do you see anything from these logs?
Hope you have a great start into the new week!
Chirs222555888
Newbie
Newbie
Posts: 8
Joined: November 13th, 2016, 11:58 am

Re: Trying to fix a problem with CPv2

Post by Chirs222555888 »

Hey all,
just a little update... I just installed the newest CP for Windows. I get exact the same error when I want to add any movie in SAB. If I use my old sab installation (from 2013) it works fine.

No idea what else I can try... thank you!
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Trying to fix a problem with CPv2

Post by safihre »

In the Config, if you go to Servers. Is there for each server an option to select certificate validation? (trying to figure out of maybe you are actually on the develop branch)
It seems couchpotato is trying to add a Rar file and something is going wrong.. There is nothing in the sabnzbd logs besides what you posted above? Can always send them to me at safihre@sabnzbd.org
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Chirs222555888
Newbie
Newbie
Posts: 8
Joined: November 13th, 2016, 11:58 am

Re: Trying to fix a problem with CPv2

Post by Chirs222555888 »

Hey Safihre,
did you get my Mail with the Specs? Wrote you last monday 19:30.

Cheers and THX
anxman
Newbie
Newbie
Posts: 1
Joined: May 30th, 2017, 11:42 pm

Re: Trying to fix a problem with CPv2

Post by anxman »

I encountered this problem and was able to fix it. I was over the API limit for the news provider so SabNZBD was unable to retrieve the NZB file even though its information was 100% correct. Once I resolvedthat, it started working again.
Post Reply