[SOLVED]Quick Start Wizard Stuck in Loop Missing Session key

Get help with all aspects of SABnzbd

[SOLVED]Quick Start Wizard Stuck in Loop Missing Session key

Postby Crimjob » November 12th, 2011, 12:18 pm

Hi All,

Is there a way to manually disable the quick start wizard?

I seem to be caught in a loop, every time I go to <host>:8080/sabnzbd/, it just brings me back to the wizard.
Last edited by Crimjob on November 13th, 2011, 9:20 am, edited 1 time in total.
Crimjob
Newbie
Newbie
 
Posts: 4
Joined: November 12th, 2011, 12:16 pm

Re: Disable Quick Start Wizard?

Postby shypike » November 12th, 2011, 12:45 pm

The only reason it does that is because the sabnzbd.ini file cannot be saved.
Run "c:\program files\SABnzbd\SABnzbd-console.exe" from a command prompt and look for error messages.
(Assuming you use Windows).
User avatar
shypike
Administrator
Administrator
 
Posts: 18580
Joined: January 18th, 2008, 1:49 pm

Re: Disable Quick Start Wizard?

Postby Crimjob » November 13th, 2011, 8:43 am

shypike wrote:The only reason it does that is because the sabnzbd.ini file cannot be saved.
Run "c:\program files\SABnzbd\SABnzbd-console.exe" from a command prompt and look for error messages.
(Assuming you use Windows).


Thanks for the super quick response shypike!

I am using Linux but your suggestion made me think I should triple check. I had double checked that the file was owned by sabnzbd user before, but I didn't double check the mode. Here I was thinking I did something horribly wrong, when I just changed the ownership the wrong way (using sabnzbd group instead of user) and failed to update the mode to reflect that. I sure feel slow :)
Crimjob
Newbie
Newbie
 
Posts: 4
Joined: November 12th, 2011, 12:16 pm

Re: Disable Quick Start Wizard?

Postby Crimjob » November 13th, 2011, 8:50 am

Hmm I feel worse now, as it didn't correct my issue.

I can see the ini is being written now and I confirmed the user can modify the file (it also updated it with my username, password, NZBMatrix API key, etc.), yet it still loops me back to the wizard :(

***EDIT***

Every time the wizard restarts sabnzbd and asks me to go to it, it throws this log line just before it loops me back to the wizard again.

I ran some searches but came up empty. I'm just trying to access the GUI, and I noticed most of the posts were related to API. I also cleared my cache as you suggested to another user in October, as well as tried a new browser, all to no avail.

Code: Select all
2011-11-13 08:02:56,112::WARNING::[interface:165] Missing Session key
Crimjob
Newbie
Newbie
 
Posts: 4
Joined: November 12th, 2011, 12:16 pm

Re: Disable Quick Start Wizard?

Postby Crimjob » November 13th, 2011, 9:17 am

And alas all resolved now.

After poking through the python scripts I found the following
Code: Select all
def check_session(kwargs):
    """ Check session key """
    key = kwargs.get('session')
    if not key:
        key = kwargs.get('apikey')
    msg = None
    if not key:
        logging.warning(Ta('Missing Session key'))
        msg = T('Error: Session Key Required')
    elif key != cfg.api_key():
        logging.warning(Ta('Error: Session Key Incorrect'))
        msg = T('Error: Session Key Incorrect')
    return msg


Which made me realize it was really looking for an API Key. After I checked my config before, it had saved my API Key for NZBMatrix, but the API Key for SABnzbd was blank. I believe there was definite confusion with SAB's "api_key = " and the one for NZBMatrix, "apikey = ".

I temporarily set my API key to 1 and ran the following
Code: Select all
http://Aurora.brokencouch:8080/api?mode=config&name=set_apikey&apikey=1


After which a new API Key was generated and the ini file updated automatically. After running the wizard one last time, I'm in SAB's GUI.

Thanks again for your quick response and assistance :)

P.S. don't take this as a bug or anything, I was using a home brewed ebuild for Gentoo on an experimental portage overlay which was likely the source of the issue. I will inform the author of the ebuild of this issue and don't believe it to be an issue with SABnzbd itself.
Crimjob
Newbie
Newbie
 
Posts: 4
Joined: November 12th, 2011, 12:16 pm


Return to General Help