Page 1 of 1

[0.7.0RC2] RSS Feed authentication error FP

Posted: June 7th, 2012, 2:09 am
by Sypher
Since the update to RC2, my nzbs*org RSS feed is not being downloaded anymore. When I click the "Force Download" button it shows an error:
Do not have valid authentication for feed
There is no authentication on the RSS feed and it works just fine in my browser and it even contains the items the RSS is looking for.

Re: [0.7.0RC2] RSS Feed authentication error FP

Posted: June 7th, 2012, 5:34 am
by shypike
Generate a new RSS URL from nzbs.org's website.
That you can show the feed in the browser is no proof, because you're already logged in.

Re: [0.7.0RC2] RSS Feed authentication error FP

Posted: June 7th, 2012, 5:41 am
by Sypher
AFAIK you cannot generate a new one, but there does not appear to be need for that either.
I've tried it in a browser (and in cognito mode) - so I'm not logged in to the site - and its showing all proper results.

The feed doesn't have authentication (HTTP Auth), yet Sab somehow thinks it does.

This was working fine with ( at least beta 8 ), just confirmed this with someone else using that version.

Re: [0.7.0RC2] RSS Feed authentication error FP

Posted: June 7th, 2012, 8:23 am
by shypike
Nothing in that area has changed, I used it even yesterday successfully.
Does the problem go away if you go back to Beta8?
If not, then there's something going on at the site's side.

Re: [0.7.0RC2] RSS Feed authentication error FP

Posted: June 7th, 2012, 8:44 am
by Sypher
Not sure if this helps but this is what the logs of RC2 indicate:
2012-06-07 15:25:22,353::INFO::[rss:488] Starting scheduled RSS read-out
2012-06-07 15:25:22,356::DEBUG::[rss:324] Running feedparser on http://nzbs.org/rss?t=5040&dl=1&i=XXXX& ... mt=2&res=2
2012-06-07 15:25:22,370::DEBUG::[rss:326] Done parsing http://nzbs.org/rss?t=5040&dl=1&i=XXXX& ... mt=2&res=2
2012-06-07 15:25:22,370::INFO::[rss:335] Do not have valid authentication for feed TVNZB
2012-06-07 15:25:37,386::INFO::[__init__:880] Saving data for rss_data.sab in /home/username/.sabnzbd/admin/rss_data.sab
2012-06-07 15:25:37,433::INFO::[rss:502] Finished scheduled RSS read-out
I haven't changed anything recently, just upgraded to RC2 (via Ubuntu PPA) and this was broken.
This is very interesting:

I reset my API/RSS key on the website and changed the link in Sabnzbd, then ticked the box to enable the feed again. It started reading immediately:
2012-06-07 15:37:25,458::INFO::[rss:502] Finished scheduled RSS read-out
2012-06-07 15:38:45,245::DEBUG::[interface:1632] RSS READOUT = False
2012-06-07 15:38:45,300::DEBUG::[rss:392] Trying title XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2012-06-07 15:38:45,309::DEBUG::[rss:392] Trying title XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2012-06-07 15:38:45,310::DEBUG::[rss:420] Filter rejected on rule 5
....
2012-06-07 15:39:22,755::DEBUG::[interface:1632] RSS READOUT = True
.....
2012-06-07 15:39:22,778::INFO::[rss:335] Do not have valid authentication for feed TVNZB
Did it just read from a cached file, or did it actually read the RSS file successfully?

Re: [0.7.0RC2] RSS Feed authentication error FP

Posted: June 7th, 2012, 9:14 am
by Sypher
Just tried beta3 on my Windows PC (Rc2 runs on my Ubuntu 12.04 server) and it reads just fine.
I'm testing with RC2 on Windows now.

Re: [0.7.0RC2] RSS Feed authentication error FP

Posted: June 7th, 2012, 9:22 am
by shypike
When you see "readout=False", the existing entries evaluated again.
After "readout=True", I see the error message appearing again.

All of the feed access and parsing is done by a third-party module that hasn't changed for years.
The RCs contain no changes in RSS handling.
I'll do some tests again, but I'm still thinking that it's a site issue.

Re: [0.7.0RC2] RSS Feed authentication error FP

Posted: June 7th, 2012, 9:23 am
by Sypher
Ok! I figured it out by using the commandline interpreter...
It was indeed a local issue on my server. For some reason everything passes trough my apt proxy, which raises a 403.

Problem solved, not a bug!

Re: [0.7.0RC2] RSS Feed authentication error FP

Posted: June 7th, 2012, 9:31 am
by shypike
Thanks, one item less on my to-do.

Re: [0.7.0RC2] RSS Feed authentication error FP

Posted: June 7th, 2012, 9:53 am
by Sypher
One follow up question though, do you have any idea where Sabnzbd / Python gets the proxy information from?
As far as I can see there is no proxy configured, its working fine from the Python Intepreter but simply not from Sabnzbd (not even after a restart of the process)

Re: [0.7.0RC2] RSS Feed authentication error FP

Posted: June 7th, 2012, 10:32 am
by shypike
It's a side effect of the Python runtime library.
I know that on Windows it looks at IE's proxy settings.

Re: [0.7.0RC2] RSS Feed authentication error FP

Posted: June 7th, 2012, 10:44 am
by Sypher
But why would this work just fine then?

Code: Select all

import feedparser
print feedparser.parse('http://..........')
but not from SABnzbd? Is there anything I can debug further to see what is loading it? There is no mention of the proxy on any of the files in /etc. Rather odd.

Re: [0.7.0RC2] RSS Feed authentication error FP

Posted: June 7th, 2012, 10:53 am
by Sypher
Aha, sabnzbd restart is not the same as shutdown & start. Fixed!