Page 1 of 1

Error: Session Key Required

Posted: February 4th, 2012, 9:29 pm
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.

Re: Error: Session Key Required

Posted: February 5th, 2012, 1:45 am
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.

Re: Error: Session Key Required

Posted: February 5th, 2012, 2:29 am
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.

Re: Error: Session Key Required

Posted: February 5th, 2012, 9:15 am
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. :)