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: 3893
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
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: 9
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: 3893
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
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: 9
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: 3893
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
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
Sr. Member
Sr. Member
Posts: 376
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 SickChill Transmission Usenet VirtualBox Watcher3 XFCE

User avatar
safihre
Administrator
Administrator
Posts: 3893
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
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
Sr. Member
Sr. Member
Posts: 376
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 SickChill Transmission Usenet VirtualBox Watcher3 XFCE

User avatar
safihre
Administrator
Administrator
Posts: 3893
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
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
OneCD
Sr. Member
Sr. Member
Posts: 376
Joined: March 4th, 2017, 3:47 pm

Re: Getting 500 error on Web UI of Sabnzbd

Post by OneCD »

Yes. Do you need screenshots as proof or something? ???

Forget it. I’ll see if I can make a workaround for it this weekend.

Thanks.
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 SickChill Transmission Usenet VirtualBox Watcher3 XFCE

User avatar
safihre
Administrator
Administrator
Posts: 3893
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
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

Post Reply