Can't open /config/ web page - 500 error

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
fsu4life
Newbie
Newbie
Posts: 1
Joined: July 28th, 2014, 4:44 pm

Can't open /config/ web page - 500 error

Post by fsu4life »

From the sabnzbd web interface, I get a "500 internal server error" every time I click on either the "config" or "status" button. Could someone help me with this problem? Is anyone else experiencing this same problem?

Here is my install information:
Version: 0.7.18
OS: Arch Linux: kernel 3.15.7-1-ARCH x86_64
Install-type: AUR (Arch User Repository)
Skin: default
Firewall: none (is accessible from any computer on LAN)
IPV6: no, IPV4 only
Reproducible: yes (rebooted, updated then rebooted again, still same result)

Extra Install Info:
This is a bare minimum install of vanilla arch in a KVM based VM on Proxmox VE 3.2-4 running on an Intel Xeon E3-1276v3 w/16GB ECC Ram. The VM is provisioned with 2 cores and 512 MB Ram. Sabnzbd is the only app/service running on this VM above what is needed for the base OS.
Also, sabnzbd is using python version 2.7.8-1.

Here is the error page w/ traceback:

Code: Select all

500 Internal Server Error

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

Traceback (most recent call last):
  File "/opt/sabnzbd/cherrypy/_cprequest.py", line 618, in respond
    cherrypy.response.body = self.handler()
  File "/opt/sabnzbd/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/opt/sabnzbd/sabnzbd/interface.py", line 1097, in index
    conf['folders'] = sabnzbd.nzbqueue.scan_jobs(all=False, action=False)
  File "/opt/sabnzbd/sabnzbd/decorators.py", line 43, in call_func
    return func(*params, **kparams)
  File "/opt/sabnzbd/sabnzbd/decorators.py", line 31, in newFunction
    return f(*args, **kw)
  File "/opt/sabnzbd/sabnzbd/nzbqueue.py", line 959, in scan_jobs
    return NzbQueue.do.scan_jobs(all, action)
  File "/opt/sabnzbd/sabnzbd/nzbqueue.py", line 137, in scan_jobs
    for folder in globber(cfg.download_dir.get_path()):
  File "/opt/sabnzbd/sabnzbd/misc.py", line 78, in globber
    return glob.glob(os.path.join(path, pattern).replace('[', '[[]'))
  File "/usr/lib/python2.7/glob.py", line 27, in glob
    return list(iglob(pathname))
  File "/usr/lib/python2.7/glob.py", line 59, in iglob
    for name in glob_in_dir(dirname, basename):
  File "/usr/lib/python2.7/glob.py", line 77, in glob1
    names = filter(lambda x: x[0] != '.', names)
  File "/usr/lib/python2.7/glob.py", line 77, in <lambda>
    names = filter(lambda x: x[0] != '.', names)
IndexError: string index out of range
Powered by CherryPy 3.2.0
Thanks in advance!
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Can't open /config/ web page - 500 error

Post by sander »

Things to try:

Very brute force: Stop SABnzbd, delete everything in ~/.sabnzbd/ (you will loose your settings and queue!), and start sabnzbd again.

Or via analysis:

Code: Select all

$ cat ~/.sabnzbd/sabnzbd.ini | grep -i download_dir
download_dir = Downloads/incomplete
... and then "ls -al <directory_name>. Post the output here.
Post Reply