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

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
Crimjob
Newbie
Newbie
Posts: 7
Joined: November 12th, 2011, 11:16 am

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

Post by Crimjob »

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, 8:20 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Disable Quick Start Wizard?

Post by shypike »

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).
Crimjob
Newbie
Newbie
Posts: 7
Joined: November 12th, 2011, 11:16 am

Re: Disable Quick Start Wizard?

Post by Crimjob »

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: 7
Joined: November 12th, 2011, 11:16 am

Re: Disable Quick Start Wizard?

Post by Crimjob »

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: 7
Joined: November 12th, 2011, 11:16 am

Re: Disable Quick Start Wizard?

Post by Crimjob »

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.
Post Reply