Page 1 of 2
Internal Server Error / MemoryError
Posted: December 10th, 2016, 3:16 am
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
Re: Internal Server Error
Posted: December 10th, 2016, 4:11 am
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?
Re: Internal Server Error / MemoryError
Posted: December 10th, 2016, 4:49 pm
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.
Re: Internal Server Error / MemoryError
Posted: December 11th, 2016, 1:57 am
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.
Re: Internal Server Error / MemoryError
Posted: December 11th, 2016, 3:50 am
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.
Re: Internal Server Error / MemoryError
Posted: December 11th, 2016, 4:15 pm
by sander
Worth a try: use an older version of SAB: 1.1.0, and try again.
Re: Internal Server Error / MemoryError
Posted: December 28th, 2016, 9:25 am
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
Re: Internal Server Error / MemoryError
Posted: December 28th, 2016, 11:11 am
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?
Re: Internal Server Error / MemoryError
Posted: December 28th, 2016, 11:20 am
by flyfoam
Article cache is 1G
Not run as a service
No process mgmt software
No on virus, but just added to Malware bytes
Re: Internal Server Error / MemoryError
Posted: December 28th, 2016, 1:27 pm
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..
Re: Internal Server Error / MemoryError
Posted: January 4th, 2017, 7:10 pm
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).
Re: Internal Server Error / MemoryError
Posted: January 5th, 2017, 2:16 am
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?
Re: Internal Server Error / MemoryError
Posted: January 5th, 2017, 7:31 am
by flyfoam
Did not reduce the cache size. There was 10 jobs in the queue.
Re: Internal Server Error / MemoryError
Posted: January 5th, 2017, 8:25 am
by safihre
Wow, then it really went over it's limit.. Hmm, I'll have to try and reproduce somehow.
Re: Internal Server Error / MemoryError
Posted: January 5th, 2017, 11:45 am
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?