Page 1 of 1

2 small (I hope) issues

Posted: May 10th, 2008, 2:18 pm
by JonNuttNTL
New User Alert!

I've just got a NSLU2 and have unslung it and installed and got SABNZBD installed and running, however I have two problems, hope someone can help!

I can edit all settings, except for the Servers section. I get
500 Internal error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Powered by CherryPy 2.2.1
In the log I get
11/May/2008:20:03:52 HTTP INFO Traceback (most recent call last):
  File "/sabnzbd/cherrypy/_cphttptools.py", line 110, in _run
    applyFilters('before_finalize')
  File "/sabnzbd/cherrypy/filters/__init__.py", line 151, in applyFilters
    method()
  File "/sabnzbd/sabnzbd/utils/multiauth/filter.py", line 59, in beforeFinalize
    cherrypy.response.body = rsrc.callable(rsrc.instance,
  File "/sabnzbd/sabnzbd/interface.py", line 1016, in addServer
    sabnzbd.CFG['servers'][server] = {}
TypeError: object does not support item assignment
Also I can only use SABNZBD only when I am logged into a putty session. If I exit the session, I lose the program...

I'm a Linux newbie but am a windows guru.

Any help appreciated.

Jon.

Re: 2 small (I hope) issues

Posted: May 11th, 2008, 4:38 am
by shypike
Which SAbnzbd release are you using?

For problem one:
As a work around you may edit the sabnzbd.ini file with VI.

Code: Select all

[servers]
    [[server:119]]
        host = server
        port = 119
        username = 
        password = 
        connections = 4
        timeout = 120
        fillserver = 0
        ssl = 0
For problem two:
Read the Wiki! You need to use the --daemon command line parameter.

Re: 2 small (I hope) issues

Posted: May 11th, 2008, 5:35 am
by JonNuttNTL
Hi,

I am using 0.3.4 release.

I've tried editing it but my server hangs if I edit it, here is my sabnzbd.ini if it helps...
__version__ = 18
servers = ""
[misc]
log_dir = logs
auto_browser = 1
permissions = ""
check_new_rel = 1
fail_on_crc = 0
create_group_folders = 0
enable_filejoin = 0
enable_unzip = 1
enable_unrar = 1
enable_save = 1
auto_disconnect = 0
enable_par_cleanup = 1
config_lock = 0
safe_postproc = 0
cleanup_list = ,
send_group = 0
download_dir = /share/flash/data/public/download/
download_free = 0
complete_dir = /share/flash/data/public/complete/
nzb_backup_dir = ""
cache_dir = cache
dirscan_dir = ""
dirscan_speed = 5
refresh_rate = 0
rss_rate = 1
extern_proc = ""
bandwith_limit = 0.0
cache_limit = 0
email_server = *****
email_to = *****
email_from = ******
email_account = ""
email_pwd = ""
email_endjob = 1
email_full = 1
schedlines = 16 0 * pause, 21 0 * resume
dirscan_opts = 0
top_only = 1
auto_sort = 0
host = 192.168.1.77
port = 8080
web_dir = Plush
username = *****
password = *****
[logging]
enable_cherrypy_logging = 1
log_level = 1
max_log_size = 5M
log_backups = 5
[newzbin]
username = ""
password = ""
create_category_folders = 0
I don't know where I can put the servers bit...

Ok will look into the daemon switch.

Jon.

Re: 2 small (I hope) issues

Posted: May 11th, 2008, 6:06 am
by JonNuttNTL
Issue two sorted now running perfectly, my script although copied from the how to, had an incorrect . instead of a - when viewed in vi.

Jon.

Re: 2 small (I hope) issues

Posted: May 11th, 2008, 6:09 am
by shypike
At the end of the INI file.

Re: 2 small (I hope) issues

Posted: May 11th, 2008, 6:18 am
by JonNuttNTL
When adding this to the end I get a fatal error
# /opt/etc/init.d/S99SABnzbd

Fatal error:
  "/home/user/guest/.sabnzbd/sabnzbd.ini" is not a valid configuration file.
Specify a correct file or delete this file.
When removing it I can restart no problems  ???

Jon.

Re: 2 small (I hope) issues

Posted: May 12th, 2008, 2:24 am
by shypike
Please email the INI file (with the [server] section included) to bugs@sabnzbd.org.
Make sure you remove any passwords !

Re: 2 small (I hope) issues

Posted: May 12th, 2008, 6:41 am
by switch
Remove the servers = "" from the top of the file.
I have no idea why that is there??

Re: 2 small (I hope) issues

Posted: May 12th, 2008, 2:03 pm
by JonNuttNTL
switch wrote: Remove the servers = "" from the top of the file.
I have no idea why that is there??
Sorted! That was the same file that was installed, who knows how it got like that! 

Cheers for the help guys!

Jon.