NZBUnity issues on Sab

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • 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
tymanthius
Jr. Member
Jr. Member
Posts: 74
Joined: March 6th, 2012, 9:35 pm

NZBUnity issues on Sab

Post by tymanthius »

I use the Android App Nzb Unity that can be found at Livingtype.net. I like it, it works well. Except now it's broken.


Last night everything was running fine. This morning, Sab won't log in from Unity. I can access Sab fine via the web interface.

I'm running Unity 4.0, Sab 0.7.0Beta3, Zentyal 2.2/Ubuntu 10.04. It is possible that my automatic update scripts ran last night and updated from Beta2 to Beta3 on Sab, but I'm not sure. I know earlier this week I was running Beta2 tho.

Any thoughts?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: NZBUnity issues on Sab

Post by shypike »

Do you update straight from the github develop branch?
tymanthius
Jr. Member
Jr. Member
Posts: 74
Joined: March 6th, 2012, 9:35 pm

Re: NZBUnity issues on Sab

Post by tymanthius »

shypike wrote:Do you update straight from the github develop branch?

No, I update from the ppa. Also, on the Unity forum the author has stated he is having issues w/ Beta3 as well.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: NZBUnity issues on Sab

Post by shypike »

There is a small difference in the AUTH API-call.
It previously returned "login" when you set a username and password for the web-interface.
It should have returned "apikey", which Beta3 now does.
This reflects the behaviour of the actual API, which always accepts the bare api-key without username/password.

Did you enter a username/password in Unity?
If so, remove those and only enter SABnzbd's api-key (to be found on Config->General).
tymanthius
Jr. Member
Jr. Member
Posts: 74
Joined: March 6th, 2012, 9:35 pm

Re: NZBUnity issues on Sab

Post by tymanthius »

shypike wrote:There is a small difference in the AUTH API-call.
It previously returned "login" when you set a username and password for the web-interface.
It should have returned "apikey", which Beta3 now does.
This reflects the behaviour of the actual API, which always accepts the bare api-key without username/password.

Did you enter a username/password in Unity?
If so, remove those and only enter SABnzbd's api-key (to be found on Config->General).

I did this, but it didn't work. However, I cross posted your suggestion to Unity's forum in order to help the developer. :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: NZBUnity issues on Sab

Post by shypike »

Are you using a username and password for the web interface?
tymanthius
Jr. Member
Jr. Member
Posts: 74
Joined: March 6th, 2012, 9:35 pm

Re: NZBUnity issues on Sab

Post by tymanthius »

shypike wrote:Are you using a username and password for the web interface?
Yes I am, b/c I have the web interface facing the world - aka accessable from the internet.
User avatar
sander
Release Testers
Release Testers
Posts: 9113
Joined: January 22nd, 2008, 2:22 pm

Re: NZBUnity issues on Sab

Post by sander »

FWIW:

I just installed NZBunity, and it works with my 070b2 with both API key and username/password filled out.
I also tested against 070b3, and no problems at all.

A look at the stdout of SABnzbd shows that only the apikey is used (and not username/password), so I don't understand shypike's question and I don't understand why NZBunity's fill out form wants the SAB password/username...

Code: Select all

::ffff:blablaba - - [19/Apr/2012:08:03:26] "GET /sabnzbd/api?apikey=blabla&output=json&mode=queue&start=0&limit=1 HTTP/1.1" 200 1084 "" "Mozilla/5.0 (Linux; U; Android 2.3.7; en-us; HTC Wildfire Build/GRI40; CyanogenMod-7.2.0) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: NZBUnity issues on Sab

Post by shypike »

When you don't have a username/password, the AUTH API-call will always return "apikey".
When you do have them, AUTH will return "login" (Beta2 and earlier) or "apikey" (Beta3).
I can imagine that an app will start behaving differently when it now gets "apikey" instead of "login".
Its logic would be flawed, but it is a possibility.
tymanthius
Jr. Member
Jr. Member
Posts: 74
Joined: March 6th, 2012, 9:35 pm

Re: NZBUnity issues on Sab

Post by tymanthius »

The developer has fixed the issue in Unity, however due to issues beyond his control it is taking longer than average to post the update to google play.

http://livingtype.net/?p=115 for details.
Piznablo
Newbie
Newbie
Posts: 3
Joined: November 5th, 2012, 5:23 am

Re: NZBUnity issues on Sab

Post by Piznablo »

I'm new to all of this and it's probably something incredibly simple, but I cant get NZB Unity to connect to sabnzbd. I enter all of the info from General menu in "Config" and all I get is "Testing SabNZBd Connection". I never get passed that. I connected NZBMatrix just fine but I can't get this to work. Any help will be greatly appreciated.

Thanks.
tymanthius
Jr. Member
Jr. Member
Posts: 74
Joined: March 6th, 2012, 9:35 pm

Re: NZBUnity issues on Sab

Post by tymanthius »

Piznablo wrote:I'm new to all of this and it's probably something incredibly simple, but I cant get NZB Unity to connect to sabnzbd. I enter all of the info from General menu in "Config" and all I get is "Testing SabNZBd Connection". I never get passed that. I connected NZBMatrix just fine but I can't get this to work. Any help will be greatly appreciated.

Thanks.


Are you trying to use Unity on your local network (wireless), or are you connecting thru your cell network (normal data)? If thru your cell network, try via your wireless. If that works, then what you need to do is port forward from your router to your sab server.
Piznablo
Newbie
Newbie
Posts: 3
Joined: November 5th, 2012, 5:23 am

Re: NZBUnity issues on Sab

Post by Piznablo »

Thank you for the reply. I tried connecting through my local wireless network just now and I get the same results: "Testing SabNZBd Connection". Maybe there's something I'm missing when entering the information for Host and Port.

So far I enter in the info exactly as it appears under the General Menu:

Host:
127.0.0.1
Port:
8080

Then I copy and paste the API, and I enter the user name and password for SABnzbd.
tymanthius
Jr. Member
Jr. Member
Posts: 74
Joined: March 6th, 2012, 9:35 pm

Re: NZBUnity issues on Sab

Post by tymanthius »

Host 127.0.0.1 ALWAYS means the computer you are typing it into. In this case, your cell phone.

If you only want to use Unity on your internal/wireless network, on your sab server get the IP address. If it's a windows machine, open a command prompt & type "ipconfig". The most likely address will be something like 192.168.1.xxx. Try that in your Unity settings.
Piznablo
Newbie
Newbie
Posts: 3
Joined: November 5th, 2012, 5:23 am

Re: NZBUnity issues on Sab

Post by Piznablo »

tymanthius wrote:Host 127.0.0.1 ALWAYS means the computer you are typing it into. In this case, your cell phone.

If you only want to use Unity on your internal/wireless network, on your sab server get the IP address. If it's a windows machine, open a command prompt & type "ipconfig". The most likely address will be something like 192.168.1.xxx. Try that in your Unity settings.
Thanks again for the quick response. I found my IPv4 Address and my Router IP address, tried both and it still will not connect. I am trying both using my local wireless connection and my cell network. Ideally I would want to connect through my cell network so that I can control it remotely. Any other suggestions? Apparently I have no idea what I'm doing. Thanks for all of the help so far.

Edit:
I'm also using a Apple Computer.
Post Reply