Sabnzbdplus wont run on Ubuntu

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
Paradiss
Newbie
Newbie
Posts: 8
Joined: September 29th, 2011, 11:02 am

Sabnzbdplus wont run on Ubuntu

Post by Paradiss »

I have been using Sabnzbdplus for a few years now, without issue and I rebooted my server today and noticed that I no longer have access to sab via browser on a local machine. After a bit of digging, I noticed that sab wont even run.

Paradiss@STORAGE:/$ sabnzbdplus
Traceback (most recent call last):
File "/usr/bin/sabnzbdplus", line 67, in <module>
import sabnzbd
File "/usr/share/sabnzbdplus/sabnzbd/__init__.py", line 73, in <module>
from sabnzbd.nzbqueue import NzbQueue
File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue.py", line 29, in <module>
from sabnzbd.nzbstuff import NzbObject
File "/usr/share/sabnzbdplus/sabnzbd/nzbstuff.py", line 41, in <module>
from sabnzbd.misc import to_units, cat_to_opts, cat_convert, sanitize_foldername, \
File "/usr/share/sabnzbdplus/sabnzbd/misc.py", line 43, in <module>
import sabnzbd.config as config
File "/usr/share/sabnzbdplus/sabnzbd/config.py", line 29, in <module>
import configobj
ImportError: No module named configobj


Spent a few hours googling and searching, but can not find anything to resolve this issue. Someone please save me?
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Sabnzbdplus wont run on Ubuntu

Post by safihre »

Can you re-install SABnzbd? It seems a file is missing.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Paradiss
Newbie
Newbie
Posts: 8
Joined: September 29th, 2011, 11:02 am

Re: Sabnzbdplus wont run on Ubuntu

Post by Paradiss »

Sudo apt-get install sabnzbdplus
Comes back with it being the most recent version and no update needed.
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbdplus wont run on Ubuntu

Post by sander »

Code: Select all

ImportError: No module named configobj
so

Code: Select all

sudo apt-get install python-configobj
Paradiss
Newbie
Newbie
Posts: 8
Joined: September 29th, 2011, 11:02 am

Re: Sabnzbdplus wont run on Ubuntu

Post by Paradiss »

I appreciate the replies and assistance, thank you for taking time out of your day to help.

Paradiss@STORAGE:~$ sudo apt-get install python-configobj
[sudo] password for Paradiss:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-configobj is already the newest version.
python-configobj set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbdplus wont run on Ubuntu

Post by sander »

Do this:

Code: Select all

$ python
Python 2.7.9 (default, Apr  2 2015, 15:33:21) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import configobj
>>> 
If you get an error, your Ubuntu has a problem. That is not something SABnzbd can solve.

Anyway ... you could try:

Code: Select all

sudo apt-get remove python-configobj
sudo apt-get purge python-configobj
sudo apt-get install python-configobj
Paradiss
Newbie
Newbie
Posts: 8
Joined: September 29th, 2011, 11:02 am

Re: Sabnzbdplus wont run on Ubuntu

Post by Paradiss »

Paradiss@STORAGE:~$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

sudo apt-get remove python-configobj

Code: Select all

Paradiss@STORAGE:~$ sudo apt-get remove python-configobj
[sudo] password for Paradiss:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  python-configobj sabnzbdplus sabnzbdplus-theme-classic sabnzbdplus-theme-smpl
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 6,439kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 69208 files and directories currently installed.)
Removing sabnzbdplus-theme-classic ...
Removing sabnzbdplus-theme-smpl ...
Removing sabnzbdplus ...
 * SABnzbd+ binary newsgrabber: not running
Removing python-configobj ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Processing triggers for python-support ...
sudo apt-get purge python-configobj

Code: Select all

Paradiss@STORAGE:~$ sudo apt-get purge python-configobj
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-configobj is not installed, so not removed
The following packages were automatically installed and are no longer required:
  unrar libjs-mochikit python-openssl unzip python-cheetah libjs-excanvas
  python-chardet python-utidylib wwwconfig-common python-yenc python-feedparser
  javascript-common libtidy-0.99-0 python-libxml2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get install python-configobj

Code: Select all

Paradiss@STORAGE:~$ sudo apt-get install python-configobj
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  unrar libjs-mochikit python-openssl unzip python-cheetah libjs-excanvas
  python-chardet python-utidylib wwwconfig-common python-yenc python-feedparser
  javascript-common libtidy-0.99-0 python-libxml2
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  python-configobj
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/238kB of archives.
After this operation, 1,700kB of additional disk space will be used.
Selecting previously deselected package python-configobj.
(Reading database ... 68804 files and directories currently installed.)
Unpacking python-configobj (from .../python-configobj_4.7.2+ds-1_all.deb) ...
Setting up python-configobj (4.7.2+ds-1) ...
Processing triggers for python-support ...
sudo apt-get install sabnzbdplus

Code: Select all

Paradiss@STORAGE:~$ sudo apt-get install sabnzbdplus
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  sabnzbdplus-theme-classic sabnzbdplus-theme-smpl
Suggested packages:
  sabnzbdplus-theme-mobile python-notify
The following NEW packages will be installed:
  sabnzbdplus sabnzbdplus-theme-classic sabnzbdplus-theme-smpl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1,249kB of archives.
After this operation, 4,739kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously deselected package sabnzbdplus.
(Reading database ... 68861 files and directories currently installed.)
Unpacking sabnzbdplus (from .../sabnzbdplus_0.7.11-0ubuntu1~jcfp1~maverick_all.deb) ...
Selecting previously deselected package sabnzbdplus-theme-classic.
Unpacking sabnzbdplus-theme-classic (from .../sabnzbdplus-theme-classic_0.7.11-0ubuntu1~jcfp1~maverick_all.deb) ...
Selecting previously deselected package sabnzbdplus-theme-smpl.
Unpacking sabnzbdplus-theme-smpl (from .../sabnzbdplus-theme-smpl_0.7.11-0ubuntu1~jcfp1~maverick_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up sabnzbdplus (0.7.11-0ubuntu1~jcfp1~maverick) ...
 * Starting SABnzbd+ binary newsgrabber                                          Traceback (most recent call last):
  File "/usr/bin/sabnzbdplus", line 67, in <module>
    import sabnzbd
  File "/usr/share/sabnzbdplus/sabnzbd/__init__.py", line 73, in <module>
    from sabnzbd.nzbqueue import NzbQueue
  File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue.py", line 29, in <module>
    from sabnzbd.nzbstuff import NzbObject
  File "/usr/share/sabnzbdplus/sabnzbd/nzbstuff.py", line 41, in <module>
    from sabnzbd.misc import to_units, cat_to_opts, cat_convert, sanitize_foldername, \
  File "/usr/share/sabnzbdplus/sabnzbd/misc.py", line 43, in <module>
    import sabnzbd.config as config
  File "/usr/share/sabnzbdplus/sabnzbd/config.py", line 29, in <module>
    import configobj
ImportError: No module named configobj
                                                                          [fail]
invoke-rc.d: initscript sabnzbdplus, action "start" failed.
dpkg: error processing sabnzbdplus (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of sabnzbdplus-theme-classic:
 sabnzbdplus-theme-classic depends on sabnzbdplus (= 0.7.11-0ubuntu1~jcfp1~maverick); however:
  Package sabnzbdplus is not configured yet.
dpkg: error processing sabnzbdplus-theme-classic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sabnzbdplus-theme-smpl:
 sabnzbdplus-theme-smpl depends on sabnzbdplus (= 0.7.11-0ubuntu1~jcfp1~maverick); however:
  Package sabnzbdplus is not configured yet.
dpkg: error processing sabnzbdplus-theme-smpl (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                         No apport report written because the error message indicates its a followup error from a previous failure.
                                                  Errors were encountered while processing:
 sabnzbdplus
 sabnzbdplus-theme-classic
 sabnzbdplus-theme-smpl
E: Sub-process /usr/bin/dpkg returned an error code (1)

Heh, trying to provide the most information as possible, and make it as easy to read as possible. I know my Ubuntu install is a bit old, but its mind boggling how it just derped and stopped working.
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbdplus wont run on Ubuntu

Post by sander »

Please reread my post:

Code: Select all

$ python
Python 2.7.9 (default, Apr  2 2015, 15:33:21) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import configobj
>>>
So:
start python
type "import configobj"
post the output here
If you get an error message, it's a problem with your setup, which you have to solve first.
Paradiss
Newbie
Newbie
Posts: 8
Joined: September 29th, 2011, 11:02 am

Re: Sabnzbdplus wont run on Ubuntu

Post by Paradiss »

Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import configobj
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named configobj


Sorry, I missed that command line on the first read, not familiar with how python works.


apt-get install python-configobj

Code: Select all

Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import configobj
>>>
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbdplus wont run on Ubuntu

Post by sander »

Which Ubuntu version are you running?

It looks like Ubuntu 10.10. If so, support for that version ended in 2012.
Paradiss
Newbie
Newbie
Posts: 8
Joined: September 29th, 2011, 11:02 am

Re: Sabnzbdplus wont run on Ubuntu

Post by Paradiss »

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"

:P Playing with a fossil here!
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbdplus wont run on Ubuntu

Post by sander »

Yep, a fossil indeed. Support ended in 2012. See https://en.wikipedia.org/wiki/List_of_U ... f_versions
Paradiss
Newbie
Newbie
Posts: 8
Joined: September 29th, 2011, 11:02 am

Re: Sabnzbdplus wont run on Ubuntu

Post by Paradiss »

I went down the highly advised against path, and updated the kernal through ssh. 11.04 now, and reinstalled python/sab (following your test suggestions), and it seems to be working! Although the update might of tweaked a permission or two with directories, but that is a groundbreaking issue.

I risked the upgrade, due to if anything failed, I would just install a fresh Ubuntu on a USB stick and boot of that, to verify it would work before wiping the OS drive. I should honestly still continue with this plan, but I am glad that sab is back up and running. Time to get additional scripts running again.
Post Reply