Error: Session Key Required

Report & discuss bugs found in 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
BitMaster
Newbie
Newbie
Posts: 2
Joined: February 4th, 2012, 9:02 pm

Error: Session Key Required

Post by BitMaster »

Version: 0.6.15
OS: Gentoo Linux (kernel 3.1.0-rc9)
Install-type: python source (ebuild)
Skin (if applicable): Plush and Classic - darkblue
Firewall Software: None
Are you using IPV6? no
Is the issue reproducible? yes

I successfully installed SABnzbd on Gentoo Linux given this ebuild, but when i try to perform any action which requires the session key I get the following error:
Error: Session Key Required
If i look in the url there is just session= but no actual session key.
  • I'm temporarily running it as root to be sure there are no permission issues.
  • I tried firefox and internet explorer. Both don't have significant configuration changes or extensions installed.
  • Both the Plush and Classic - darkblue theme have the same problem
  • The log files don't show anything worth mentioning

Code: Select all

* dependency graph for net-nntp/sabnzbd-0.6.15
 `--  net-nntp/sabnzbd-0.6.15  unknown
   `--  dev-python/celementtree-1.0.5-r1  (>=dev-python/celementtree-1.0.5) amd64
   `--  dev-python/cheetah-2.4.4  (>=dev-python/cheetah-2.0.1) amd64
   `--  app-arch/par2cmdline-0.4-r2  (>=app-arch/par2cmdline-0.4) amd64
   `--  app-arch/unrar-4.0.7  (>=app-arch/unrar-3.9.0) amd64
   `--  dev-python/yenc-0.3  (>=dev-python/yenc-0.3)
   `--  app-text/dos2unix-5.2.1  (app-text/dos2unix) amd64
   `--  app-admin/eselect-python-20100321  (>=app-admin/eselect-python-20091230) amd64
[ net-nntp/sabnzbd-0.6.15 stats: packages (8), max depth (1) 
Does anyone know where to look for this problem?

P.S.
I know my code (not python specifically), so it's no problem if I have to debug something.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Error: Session Key Required

Post by sander »

BitMaster wrote:
I successfully installed SABnzbd on Gentoo Linux given this ebuild, but when i try to perform any action which requires the session key I get the following error:
Error: Session Key Required
If i look in the url there is just session= but no actual session key.
The above looks 100% correct by itself. But what are you doing that asks for a session key? API programming? Because the normal web interface does not need a session key AFAIK.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Error: Session Key Required

Post by shypike »

Check the ~/.sabzbd/sabnzbd.ini file.
Check if there is an apikey defined.
Look for
api_key =
If all fails you can disable the key:
disable_api_key = 1

BTW: stop SABnzbd before editing the ini file.
BitMaster
Newbie
Newbie
Posts: 2
Joined: February 4th, 2012, 9:02 pm

Re: Error: Session Key Required

Post by BitMaster »

shypike wrote:Check the ~/.sabzbd/sabnzbd.ini file.
Check if there is an apikey defined.
Look for
api_key =
Yes! That actually works! There was no API key, so I temporarily copied the NZB key to the API key and generated a new one afterwards.

I found that in the installation sabnzbd.ini there is also no API key. Nonetheless, this is no bug, and i'm sorry I made it look like it was.
Thank you. :)
Post Reply