Internal Server Error / MemoryError

Report & discuss bugs found in 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.
marshy919
Newbie
Newbie
Posts: 2
Joined: December 9th, 2016, 5:28 pm

Internal Server Error / MemoryError

Post by marshy919 »

Hi,

I keep getting this error every few hours.
Need to force close sab and reopen for it to work again.

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 "cherrypy\_cprequest.pyo", line 670, in respond
  File "cherrypy\lib\encoding.pyo", line 220, in __call__
  File "cherrypy\_cpdispatch.pyo", line 60, in __call__
  File "sabnzbd\interface.pyo", line 407, in index
  File "_Program_Files__x86__SABnzbd_interfaces_Glitter_templates_main_tmpl.py", line 526, in respond
  File "Cheetah\DummyTransaction.pyo", line 57, in getvalue
MemoryError
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Internal Server Error

Post by safihre »

It's what it says.. You ran out of memory. How do you run SAB? As a service?
How large have you set your Article cache?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
marshy919
Newbie
Newbie
Posts: 2
Joined: December 9th, 2016, 5:28 pm

Re: Internal Server Error / MemoryError

Post by marshy919 »

Strange, the PC has 32GB of memory and barely gets over 10GB usage.
I am running Process Lassoo, so I just then excluded that from Smart Balance Restraints.

The article cache is set to 1024M, just changed to 2048M to see if that helps.
There are a tonne of nzbs with 20% completion rate, probably 50ish.
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Internal Server Error / MemoryError

Post by safihre »

Setting the article cache higher is actually worse, because that leaves no memory for the Webserver.
Indeed it seems the OS is limiting the memory usage of Sab, it should not crash until it reaches a couple of GB of memory (in super worst case).

Try and restart sabnzbd from time to time (once a day), that should help to if you have lots of incomplete jobs.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Internal Server Error / MemoryError

Post by sander »

safihre wrote: Indeed it seems the OS is limiting the memory usage of Sab,
I would suspect Process Lasso, for example its "SmartTrim (selective 'intelligent' virtual memory trimming)".

So: disable Process Lasso temporarily and see what happens.
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Internal Server Error / MemoryError

Post by sander »

Worth a try: use an older version of SAB: 1.1.0, and try again.
flyfoam
Newbie
Newbie
Posts: 35
Joined: January 9th, 2011, 10:09 pm

Re: Internal Server Error / MemoryError

Post by flyfoam »

I keep getting this error also. Win 10x64 16gb or ram, over 8gb free when it bombs.

Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 670, in respond
File "cherrypy\lib\encoding.pyo", line 220, in __call__
File "cherrypy\_cpdispatch.pyo", line 60, in __call__
File "sabnzbd\interface.pyo", line 407, in index
File "_Program_Files__x86__SABnzbd_interfaces_Glitter_templates_main_tmpl.py", line 526, in respond
File "Cheetah\DummyTransaction.pyo", line 57, in getvalue
MemoryError
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Internal Server Error / MemoryError

Post by safihre »

Same questions:
Do you run it as a service?
What do you have set as article cache?
Do you run any process management software?
Did you exclude sabnzbd from your virus scanner?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
flyfoam
Newbie
Newbie
Posts: 35
Joined: January 9th, 2011, 10:09 pm

Re: Internal Server Error / MemoryError

Post by flyfoam »

Article cache is 1G
Not run as a service
No process mgmt software
No on virus, but just added to Malware bytes
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Internal Server Error / MemoryError

Post by safihre »

Try setting article cache to 600M, just to be sure.
MemoryError is not something we can avoid, it's the system (or something else on the system) telling Python that it cannot reserve any more memory.
Like in your case, clearly there is memory available, so something else is limiting SAB's usage.. But what..
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
flyfoam
Newbie
Newbie
Posts: 35
Joined: January 9th, 2011, 10:09 pm

Re: Internal Server Error / MemoryError

Post by flyfoam »

Got the same error today

Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 670, in respond
File "cherrypy\lib\encoding.pyo", line 220, in __call__
File "cherrypy\_cpdispatch.pyo", line 60, in __call__
File "sabnzbd\interface.pyo", line 407, in index
File "_Program_Files__x86__SABnzbd_interfaces_Glitter_templates_main_tmpl.py", line 526, in respond
File "Cheetah\DummyTransaction.pyo", line 57, in getvalue
MemoryError

SABnzb was using 1,492 meg of RAM (Task Manager).
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Internal Server Error / MemoryError

Post by safihre »

Did you reduce the article cache setting to 600M?
I will try to reproduce: did you have a lot of jobs in the queue?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
flyfoam
Newbie
Newbie
Posts: 35
Joined: January 9th, 2011, 10:09 pm

Re: Internal Server Error / MemoryError

Post by flyfoam »

Did not reduce the cache size. There was 10 jobs in the queue.
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Internal Server Error / MemoryError

Post by safihre »

Wow, then it really went over it's limit.. Hmm, I'll have to try and reproduce somehow.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
flyfoam
Newbie
Newbie
Posts: 35
Joined: January 9th, 2011, 10:09 pm

Re: Internal Server Error / MemoryError

Post by flyfoam »

It's intermittent, yesterday when it crashed the process is still running, I have to kill it from the TM. When I restarted it crashed again in less than a minute. Started it up again it was fine. I had 10 files in the queue, average size of each file was 3.8gig if that matters?
Post Reply