Page 1 of 1

500 Error After install

Posted: November 11th, 2016, 9:48 pm
by Guiguy
Recently I "upgraded" a Ubuntu server to 16.04 LTS. The unit runs headless.

After the upgrade reboot SABNZBDSPLUS give me a 500 error :

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/share/sabnzbdplus/cherrypy/_cprequest.py", line 618, in respond
  File "/usr/share/sabnzbdplus/cherrypy/_cpdispatch.py", line 25, in __call__
  File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 299, in index
  File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1259, in __init__
    self._compile(source, file, compilerSettings=compilerSettings)
  File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1546, in _compile
    self._fileMtime = os.path.getmtime(file)
  File "/usr/lib/python2.7/genericpath.py", line 62, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/usr/share/sabnzbdplus/interfaces/Plush/templates/main.tmpl'

Powered by CherryPy 3.2.0 


I purged and tried a re-install but get the same error. I saw this, https://forums.sabnzbd.org/viewtopic.php?f=16&t=13901

However the OPs solution makes no sense, since purging and re-installing simply re-invokes the same error.

In any case, '/usr/share/sabnzbdplus/interfaces/Plush/templates/main.tmpl' exists on the server.

Any assistance, anyone?

Thanks

Re: 500 Error After install

Posted: November 12th, 2016, 1:49 am
by safihre
Remove sabnzbd, make sure the /usr/share/sabnzbd directory is gone, update the PPA and install sabnzbd again. Usually helps to resolve these kind of errors.

Re: 500 Error After install

Posted: November 12th, 2016, 5:32 am
by Guiguy
safihre wrote:Remove sabnzbd, make sure the /usr/share/sabnzbd directory is gone, update the PPA and install sabnzbd again. Usually helps to resolve these kind of errors.
Thanks. That got it going again, sort of.

Now it starts OK, but goes to PAUSE automatically after 2 minutes exactly. Must be a new feature?

Re: 500 Error After install

Posted: November 12th, 2016, 5:34 am
by safihre
No that's not a new feature. Something must be triggering that.. Maybe a error? Or scheduler?

Set logging to Debug in Status window and check the log, can always send the log to bugs@sabnznd.org in case can't find it :)

Also I would quest you to switch to the new Glitter skin, Plush is no longer really supported.

Re: 500 Error After install

Posted: November 12th, 2016, 5:42 am
by Guiguy
Log is showing me too little disk space, which is unusual because there's are shed loads for Gigathingies available in the partion. Anyway, I suspect that problem is between the back of the chair and keyboard. Will double check stuff.

NB: The "feature" quip was tongue in cheek, yea? :P

I don't see the "Glitter" sking option so have gone "Classic"

Thanks for the help and heads up.

Cheers

Re: 500 Error After install

Posted: November 12th, 2016, 5:48 am
by Guiguy
FOund the problem: Minimum Free Space for Temporary Download Folder

I had the temp folder on boot drive and specified a gazillion Gigabytes :( - Once I set it something sensible it was all good.

Thanks again...

Re: 500 Error After install

Posted: November 12th, 2016, 10:25 am
by safihre
Classic? You can use that skin? That's impossible.. That skin isn't working for a long time.
Glitter isn't there? Maybe reinstall sabnzbd from the PPA?

Re: 500 Error After install

Posted: November 12th, 2016, 5:42 pm
by Guiguy
safihre wrote:Classic? You can use that skin? That's impossible..
Curious. The config > general says
Version: 0.7.20
Uptime: 12h
Config File: /home/user/.sabnzbd/sabnzbd.ini
Used cache: Cached 0 articles (0 B)
Parameters: /usr/bin/sabnzbdplus -p
Python Version: 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609]
Image

You may be right, however, because no matter which skin I choose the displayed one stays the same, which is plush.

I did a clean sabnzdb install from the repository on an xubuntu 16.04 desktop machine and get exactly the same thing. There is no "Glitter" skin.

Anyway, it is working for now.

Re: 500 Error After install

Posted: November 13th, 2016, 2:59 am
by sander
*ubuntu 16.04 offers SABnzbd 0.7.20. See http://packages.ubuntu.com/xenial/sabnzbdplus

So, like Safihre said: install the PPA version. Then you always have the uptodate SABnzbd. See https://sabnzbd.org/wiki/installation/i ... buntu-repo for instructions.

Re: 500 Error After install

Posted: November 13th, 2016, 12:17 pm
by safihre
Ohh I missed that.. You were still on the super-old SAB version :D