2 small (I hope) issues

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
JonNuttNTL
Newbie
Newbie
Posts: 5
Joined: May 10th, 2008, 2:13 pm

2 small (I hope) issues

Post 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.
Last edited by JonNuttNTL on May 10th, 2008, 2:20 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: 2 small (I hope) issues

Post 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.
JonNuttNTL
Newbie
Newbie
Posts: 5
Joined: May 10th, 2008, 2:13 pm

Re: 2 small (I hope) issues

Post 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.
JonNuttNTL
Newbie
Newbie
Posts: 5
Joined: May 10th, 2008, 2:13 pm

Re: 2 small (I hope) issues

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: 2 small (I hope) issues

Post by shypike »

At the end of the INI file.
JonNuttNTL
Newbie
Newbie
Posts: 5
Joined: May 10th, 2008, 2:13 pm

Re: 2 small (I hope) issues

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: 2 small (I hope) issues

Post by shypike »

Please email the INI file (with the [server] section included) to bugs@sabnzbd.org.
Make sure you remove any passwords !
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: 2 small (I hope) issues

Post by switch »

Remove the servers = "" from the top of the file.
I have no idea why that is there??
JonNuttNTL
Newbie
Newbie
Posts: 5
Joined: May 10th, 2008, 2:13 pm

Re: 2 small (I hope) issues

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