Page 1 of 1

Linux error 500 error after upgrade

Posted: May 5th, 2013, 3:19 am
by rendez2k
Hi all, I install sabnzbd+ yesterday on my Ubuntu x64 and it was a v0.6x version. So, I upgraded to the latest 0.7x but I'm now getting:

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
    cherrypy.response.body = self.handler()
  File "/usr/share/sabnzbdplus/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 276, 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 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/usr/share/sabnzbdplus/interfaces/Plush/templates/main.tmpl'
I've tried apt-get purge sabnzbdplus and several reinstalls but its not clearing the error. Any ideas? Many thanks!

Re: Linux error 500 error after upgrade

Posted: May 5th, 2013, 3:30 am
by sander
Solution is easy (probably): install the package "sabnzbdplus-theme-plush"

Code: Select all

sander@flappie:~$ dpkg -S /usr/share/sabnzbdplus/interfaces/Plush/templates/main.tmpl
sabnzbdplus-theme-plush: /usr/share/sabnzbdplus/interfaces/Plush/templates/main.tmpl
sander@flappie:~$
But even if so, I wonder why sabnzbdplus-theme-plush was not installed during installing sabnzbdplus ... And maybe the other needed packages aren't installed neither ...

Re: Linux error 500 error after upgrade

Posted: May 5th, 2013, 3:35 am
by rendez2k
Did this and got the following message (I am a fairly novice Linux user I'm afraid so I may not be doing things correctly!)

Code: Select all

prisonerz@ns344:~$ sudo apt-get install sabnzbdplus-theme-plush
Reading package lists... Done
Building dependency tree
Reading state information... Done
sabnzbdplus-theme-plush is already the newest version.
sabnzbdplus-theme-plush set to manually installed.

Re: Linux error 500 error after upgrade

Posted: May 5th, 2013, 3:43 am
by sander
Ah. And what is the output of

Code: Select all

ls -al /usr/share/sabnzbdplus/interfaces/Plush/templates/main.tmpl

Re: Linux error 500 error after upgrade

Posted: May 5th, 2013, 3:46 am
by rendez2k
ls -al /usr/share/sabnzbdplus/interfaces/Plush/templates/main.tmpl

Checked the directory and it is indeed missing! How do I force install then?

Re: Linux error 500 error after upgrade

Posted: May 5th, 2013, 3:57 am
by rendez2k
Its OK - fixed! Ran the install command again and it worked :-)