Page 1 of 1

error: Session Key Required... Whatever i do :(

Posted: June 18th, 2009, 4:13 pm
by mettosjester
Hi, i'm using sabnzbd (which seems to be a very very nice tool) on my NAS (synology DS209+). I can access the web interface but when i try to re-configure some stuff i get the "error: Session Key Required" error message when being redirect to : http://my_nas_adress:8080/sabnzbd/config/general/saveGeneral
May the bug be caused by my conf ? (SABnzbd+ 0.4.11)

Just for info, ps -x :

Code: Select all

 3745 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3746 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3747 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3748 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3749 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3750 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3751 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3752 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3753 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3754 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3755 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3756 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3759 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3760 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3761 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3762 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3763 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3764 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3765 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
 3766 root      13040 S   /opt/bin/python /opt/share/SABnzbd/SABnzbd.py -f /opt
And, SABnzbd.ini :

Code: Select all

__version__ = 18
[misc]
log_dir = logs
auto_browser = 0
permissions = ""
api_key = 83d8c2aa4f3e03589f264b77e4528dda
disable_api_key = 0
check_new_rel = 1
replace_spaces = 0
replace_illegal = 1
fail_on_crc = 0
enable_filejoin = 0
enable_unzip = 1
enable_unrar = 1
auto_disconnect = 1
enable_par_cleanup = 1
enable_par_multicore = 1
par_option = ""
no_dupes = 0
config_lock = 0
safe_postproc = 0
pause_on_post_processing = 0
cleanup_list = ""
ignore_samples = 0
send_group = 0
download_dir = downloads/incomplete
download_free = 0
complete_dir = downloads/complete
script_dir = ""
nzb_backup_dir = ""
cache_dir = cache
dirscan_dir = ""
dirscan_speed = 5
refresh_rate = 0            
rss_rate = 60
bandwith_limit = 0
cache_limit = 0
email_server = ""
email_to = ""
email_from = ""
email_account = ""
email_pwd = ""
email_endjob = 0
email_full = 0
schedlines = ,
dirscan_opts = 3
dirscan_script = ""
top_only = 1
auto_sort = 0
enable_tv_sorting = 0
tv_sort_string = ""
ionice = ""
web_color = ""
web_color2 = ""
host = ""
port = 8080
web_dir = Default
web_dir2 = ""
username = ""
password = ""
[logging]
enable_cherrypy_logging = 1
log_level = 1
max_log_size = 5M
log_backups = 5
[newzbin]
username = ""               
password = ""
bookmarks = 0
unbookmark = 0
bookmark_rate = 60
[servers]
[rss]
[categories]
[[unknown]]
newzbin = Unknown
dir = Unknown
[[anime]]
newzbin = Anime
dir = Anime
[[apps]]
newzbin = Apps
dir = Apps
[[books]]
newzbin = Books
dir = Books
[[consoles]]
newzbin = Consoles
dir = Consoles
[[emulation]]
newzbin = Emulation
dir = Emulation
[[games]]
newzbin = Games
dir = Games
[[misc]]
newzbin = Misc
dir = Misc
[[movies]]
newzbin = Movies            
dir = Movies
[[music]]
newzbin = Music
dir = Music
[[pda]]
newzbin = PDA
dir = PDA
[[resources]]
newzbin = Resources
dir = Resources
[[tv]]
newzbin = TV
dir = TV
Thanks a lot,

Re: error: Session Key Required... Whatever i do :(

Posted: June 19th, 2009, 2:10 am
by shypike
I suspect you are using a very recent version of Cheetah (and not 2.01).
Cheetah has broken backwards compatibility.
The quick way out is to change a setting in sabnzbd.ini:

Code: Select all

[misc]
disable_key = 1

Re: error: Session Key Required... Whatever i do :(

Posted: June 19th, 2009, 2:48 am
by mettosjester
Perfect !!! It's working, thanks a lot... You were right, i indeed use some latest version of Cheetah (downloaded yesterday).
Just for information (or others who may encounter the same issue), the value to set is disable_api_key (not disable_key).
However, all seems to be working perfectly, thanks again.

Re: error: Session Key Required... Whatever i do :(

Posted: June 19th, 2009, 2:57 am
by shypike
mettosjester wrote: However, all seems to be working perfectly, thanks again.
Except for the fact that the security vulnerability that 0.4.11 solves is back now.
It's likely that we need to publish a 0.4.12 soon  >:(

Re: error: Session Key Required... Whatever i do :(

Posted: June 19th, 2009, 3:11 am
by mettosjester
Indeed, sorry about that... Another last question, may be not linked ? The ssl option is inactive (my usenet provider is ssl enabled !), what's the reason for that ? Thanks

Re: error: Session Key Required... Whatever i do :(

Posted: June 19th, 2009, 6:11 am
by shypike
You did not install the required pyOpenSSL module (and/or OpenSSL).

Re: error: Session Key Required... Whatever i do :(

Posted: June 19th, 2009, 7:12 am
by mettosjester
Yes, it's working thanks again... Just to share with others, i juste have to install py25-openssl package on my synology DS209 (ipkg install py-openssl), and of course restart sabnzbd and... magic ;)