Page 1 of 1

Error: Session Key Incorrect

Posted: July 19th, 2011, 9:36 am
by jofu
Hi guys,

first of all many thanks for this great peace of software, I am using it for years.

I did some server upgrading and reinstalled my complete system, sabnzbd now seems to run except that I get the error:

Code: Select all

Error: Session Key Incorrect
when trying to enable a added RSS feed in the configuration panel.

I already tried changing interfaces as well as the api key (also tried to disable it completely), but nothing changed.
The api key in the url seems to be the right one as well:

Code: Select all

http://192.168.1.5:8080/config/rss/toggle_rss_feed?session=75d16971b39a2bcaa3696e07bd0af1c5
Maybe someone has an idea.

Cheers

Jonathan

Re: Error: Session Key Incorrect

Posted: July 19th, 2011, 10:00 am
by shypike
Is toggle RSS feed the only place you get the error message?
Have you cleaned your browser's cache?

Re: Error: Session Key Incorrect

Posted: July 19th, 2011, 10:08 am
by jofu
Yes it's the only, I didn't try everything but there wasn't any problem during my whole configuration except for the RSS feed.
The weird thing now is, I manually edited /usr/local/sabnzbd/sabnzbd.ini and enabled my feed by hand.
After that Error: Session Key Incorrect messages were popping up every 2 second or so.
When cleaning my cache again they somehow disappeared, but the toggle RSS function still is broken for me. ???

Re: Error: Session Key Incorrect

Posted: July 19th, 2011, 10:30 am
by shypike
Which skin are you using (Plush, smpl or Classic)?

Re: Error: Session Key Incorrect

Posted: July 19th, 2011, 10:34 am
by jofu
I am using the classic one, but changing it doesn't seem to help. Everything runs on FreeBSD 8.2 with Python 2.7.2 if that helps.

Re: Error: Session Key Incorrect

Posted: July 19th, 2011, 10:43 am
by shypike
I cannot reproduce it.
However, you list a URL that contains the apikey.
Where do you get that from, because the address bar does not contain it.
The session key is a hidden field in a form.
The HTML code looks like this:

Code: Select all

<form action="upd_rss_feed" method="post">
        <input type="hidden" name="session" value="blablabla">
        <input type="hidden" value="FEED-NAME" name="feed">
        <input type="hidden" value="1" name="table">
        <input type="checkbox" onclick="this.form.action='toggle_rss_feed?session=blablabla';  this.form.submit(); return false;" name="enable" />
</form>
Check the source of the page (Control-U) for consistent use of the key "blablabla".

You didn't mention your browser.

BTW: don't edit sabnzbd.ini while SABnzbd is still running.

Re: Error: Session Key Incorrect

Posted: July 19th, 2011, 11:17 am
by jofu
For me in this case I get the session key in the address bar (http://www.s.netic.de/berndf/jofu/sabnzbd.jpg).
The key in the source code is always the same and the proper one.
I use Safari, but the same appears with Firefox.

Re: Error: Session Key Incorrect

Posted: July 19th, 2011, 3:13 pm
by shypike
Well, I have no idea what's wrong, but your installation is seriously screwed.
It's not supposed to look like this. Which release are you using?
Consider removing SABnzbd altogether and re-installing it.