Getting 500 error on Web UI of Sabnzbd

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
engkazim2000
Newbie
Newbie
Posts: 1
Joined: May 14th, 2020, 7:16 pm

Getting 500 error on Web UI of Sabnzbd

Post by engkazim2000 »

Hello,

We are using Sabnzbd form last few months its working perfectly fine but today its giving me 500 error on webUI can you please guide me how to fix that issue
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Getting 500 error on Web UI of Sabnzbd

Post by safihre »

Well, what is the error? It should show you more than just 500.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
slvrdragn
Newbie
Newbie
Posts: 17
Joined: April 29th, 2013, 12:38 pm

Re: Getting 500 error on Web UI of Sabnzbd

Post by slvrdragn »

I restarted today to get a 500, this was after a patch and reboot.
pip3 install -r requirements.txt shows all satisfied.

NameMapper.NotFound: cannot find 'apikey'

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 "/usr/local/lib/python3.8/site-packages/cherrypy/_cprequest.py", line 638, in respond
    self._do_respond(path_info)
  File "/usr/local/lib/python3.8/site-packages/cherrypy/_cprequest.py", line 697, in _do_respond
    response.body = self.handler()
  File "/usr/local/lib/python3.8/site-packages/cherrypy/lib/encoding.py", line 219, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/opt/sabnzbd/sabnzbd/interface.py", line 119, in internal_wrap
    return internal_wrap
  File "/opt/sabnzbd/sabnzbd/interface.py", line 399, in index
  File "_opt_sabnzbd_interfaces_Glitter_templates_main_tmpl.py", line 157, in respond
NameMapper.NotFound: cannot find 'apikey'
Powered by CherryPy 18.6.0
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Getting 500 error on Web UI of Sabnzbd

Post by safihre »

You need to restart your SABnzbd, it has updated the template files but the SABnzbd itself isnt updated yet,
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
slvrdragn
Newbie
Newbie
Posts: 17
Joined: April 29th, 2013, 12:38 pm

Re: Getting 500 error on Web UI of Sabnzbd

Post by slvrdragn »

Weird, it does work now, but the first thing i tried was a restart.
Thanks for fixing my stupid :)
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Getting 500 error on Web UI of Sabnzbd

Post by safihre »

Great!
Let us know if you experience any bugs or weird behavior on the Python 3 version. It's still a testing-release!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
OneCD
Hero Member
Hero Member
Posts: 596
Joined: March 4th, 2017, 3:47 pm

Re: Getting 500 error on Web UI of Sabnzbd

Post by OneCD »

If I can add a "me too!" ... ;D

I've been seeing the same thing while testing installation of the new SABnzbd package on QNAP NAS. Sometimes, I'll get a 500 error - which can be fixed by restarting SABnzbd. But sometimes it starts OK.

This only happens when starting SABnzbd for Python 3 for the first time.

Subsequent startups always seem to be OK.
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Getting 500 error on Web UI of Sabnzbd

Post by safihre »

I just did some changes this week that can cause this. It depends on the cached template-files or the program not beeing restarted truely.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
OneCD
Hero Member
Hero Member
Posts: 596
Joined: March 4th, 2017, 3:47 pm

Re: Getting 500 error on Web UI of Sabnzbd

Post by OneCD »

safihre wrote: May 27th, 2020, 7:36 am It depends on the cached template-files or the program not beeing restarted truely.
I'm not sure what to make of that. ???

Is there anything I can do to ensure SAB3 will start correctly first time?
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Getting 500 error on Web UI of Sabnzbd

Post by safihre »

Not sure.. on Windows I never experience these problems, a simple restart of SABnzbd after applying changes is enough.
But you are sure this isn't always working for you?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Getting 500 error on Web UI of Sabnzbd

Post by safihre »

Maybe it's some caching that the Cheetah-template system does.. Not sure about that or if we can even control it :/

Maybe SABnzbd needs an external restart to get it to really clear its cache, not just the internal restart.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
jwhitt12
Full Member
Full Member
Posts: 114
Joined: April 18th, 2012, 6:44 pm

Re: Getting 500 error on Web UI of Sabnzbd

Post by jwhitt12 »

thank you all for the replies.

Today I turned on the machine and then ran sabnzbd+ again and things have changed. Still got an error but its waay different with a trace back:
ERROR a few seconds ago [03/Dec/2020:12:33:17] ENGINE Error in HTTPServer.tick

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cherrypy/wsgiserver/__init__.py", line 2021, in start self.tick()
File "/usr/lib/python3/dist-packages/cherrypy/wsgiserver/__init__.py", line 2090, in tick s, ssl_env = self.ssl_adapter.wrap(s)
File "/usr/lib/python3/dist-packages/cherrypy/wsgiserver/ssl_builtin.py", line 66, in wrap s = self.context.wrap_socket(sock,do_handshake_on_connect=True,
File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket return self.sslsocket_class._create(
File "/usr/lib/python3.8/ssl.py", line 1040, in _create self.do_handshake()
File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake self._sslobj.do_handshake()
OSError: [Errno 0] Error

INFO Glitter has some (new) features you might like! Glitter Tips and Tricks

I have absolutely no idea what I am looking at but it all seems connected to python3 & 3.8
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Getting 500 error on Web UI of Sabnzbd

Post by safihre »

This is a different problem:
viewtopic.php?f=2&t=24900
It is a bug in Python which is fixed in the latest Python 3.8 and 3.9
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply