Stopped working... help?

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
absteeve
Newbie
Newbie
Posts: 21
Joined: January 3rd, 2014, 12:57 pm

Stopped working... help?

Post by absteeve »

I tried installing a music app (beets) on my Linux box and that didn't go so well so I uninstalled it. Since then, my SAB doesn't work. When I run:

sudo service sabnzbdplus status

I get this:
● sabnzbdplus.service - LSB: SABnzbd+ binary newsgrabber
Loaded: loaded (/etc/init.d/sabnzbdplus; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2018-02-08 23:55:41 PST; 12h ago
Docs: man:systemd-sysv-generator(8)
Process: 1443 ExecStart=/etc/init.d/sabnzbdplus start (code=exited, status=1/FAILURE)

Feb 08 23:55:41 server sabnzbdplus[1443]: File "/usr/share/sabnzbdplus/cherrypy/__init__.py", line 66, in <module>
Feb 08 23:55:41 server sabnzbdplus[1443]: from cherrypy._cperror import HTTPError, HTTPRedirect, InternalRedirect # noqa
Feb 08 23:55:41 server sabnzbdplus[1443]: File "/usr/share/sabnzbdplus/cherrypy/_cperror.py", line 124, in <module>
Feb 08 23:55:41 server sabnzbdplus[1443]: import six
Feb 08 23:55:41 server sabnzbdplus[1443]: ImportError: No module named six
Feb 08 23:55:41 server sabnzbdplus[1443]: ...fail!
Feb 08 23:55:41 server systemd[1]: sabnzbdplus.service: Control process exited, code=exited status=1
Feb 08 23:55:41 server systemd[1]: Failed to start LSB: SABnzbd+ binary newsgrabber.
Feb 08 23:55:41 server systemd[1]: sabnzbdplus.service: Unit entered failed state.
Feb 08 23:55:41 server systemd[1]: sabnzbdplus.service: Failed with result 'exit-code'.
That's all greek to me. Any tips?
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: Stopped working... help?

Post by jcfp »

The relevant line is this one:
absteeve wrote: February 9th, 2018, 3:46 pmFeb 08 23:55:41 server sabnzbdplus[1443]: ImportError: No module named six
That module should be in a package called python-six.

Without further details (operating system and sab versions, install method for that other app, etc) it's hard to know for sure what happened here, but for now my best guess is someone been busy forcefully uninstalling hard dependencies?
absteeve
Newbie
Newbie
Posts: 21
Joined: January 3rd, 2014, 12:57 pm

Re: Stopped working... help?

Post by absteeve »

I've detailed what I've done over on Stack Overflow. I'll paste that here.
I've googled everything I can think of and I keep hitting deadends.

A couple days ago I followed these (seemingly simple) instructions for installing Beets onto my Ubuntu 16.04 server:

Code: Select all

sudo apt-get install python-dev python-pip
sudo pip install beets
I got a bunch of errors and figured it wasn't worth the hassle. I absent-mindedly reversed the above, including removing python-dev. After having more troubles (described below), I reinstalled python-dev.

Troubles? I noticed two of my services weren't working: headphones and sabnzbdplus. sudo service sabnzbdplus status gives me this:

Code: Select all

Loaded: loaded (/etc/init.d/sabnzbdplus; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2018-02-09 21:23:39 PST; 16min ago
Docs: man:systemd-sysv-generator(8)
Process: 10273 ExecStart=/etc/init.d/sabnzbdplus start (code=exited, status=1/FAILURE)

Feb 09 21:23:39 server sabnzbdplus[10273]:   File "/usr/share/sabnzbdplus/cherrypy/__init__.py", line 66, in <module>
Feb 09 21:23:39 server sabnzbdplus[10273]:     from cherrypy._cperror import HTTPError, HTTPRedirect, InternalRedirect  # noqa
Feb 09 21:23:39 server sabnzbdplus[10273]:   File "/usr/share/sabnzbdplus/cherrypy/_cperror.py", line 124, in <module>
Feb 09 21:23:39 server sabnzbdplus[10273]:     import six
Feb 09 21:23:39 server sabnzbdplus[10273]: ImportError: No module named six
Feb 09 21:23:39 server sabnzbdplus[10273]:    ...fail!
Feb 09 21:23:39 server systemd[1]: sabnzbdplus.service: Control process exited, code=exited status=1
Feb 09 21:23:39 server systemd[1]: Failed to start LSB: SABnzbd+ binary newsgrabber.
Feb 09 21:23:39 server systemd[1]: sabnzbdplus.service: Unit entered failed state.
Feb 09 21:23:39 server systemd[1]: sabnzbdplus.service: Failed with result 'exit-code'.
and for headphones I get this:

Code: Select all

Loaded: loaded (/etc/init.d/headphones; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2018-02-08 23:55:40 PST; 21h ago
Docs: man:systemd-sysv-generator(8)

Feb 08 23:55:40 server headphones[1445]:   File "lib/pkg_resources.py", line 1401, in get_metadata
Feb 08 23:55:40 server headphones[1445]:     return self._get(self._fn(self.egg_info, name))
Feb 08 23:55:40 server headphones[1445]:   File "lib/pkg_resources.py", line 1512, in _get
Feb 08 23:55:40 server headphones[1445]:     with open(path, 'rb') as stream:
Feb 08 23:55:40 server headphones[1445]: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/Unidecode-
Feb 08 23:55:40 server headphones[1445]:    ...fail!
Feb 08 23:55:40 server systemd[1]: headphones.service: Control process exited, code=exited status=1
Feb 08 23:55:40 server systemd[1]: Failed to start LSB: starts instance of Headphones.
Feb 08 23:55:40 server systemd[1]: headphones.service: Unit entered failed state.
Feb 08 23:55:40 server systemd[1]: headphones.service: Failed with result 'exit-code'.
Neither of these issues were present prior to the attempted Beets install.

I've tried about everything Google has dug up for me, including:

pip install --upgrade pip
easy_install six
apt-get install ubuntu-server
apt-get install python-sabyenc
apt-get install par2-tbb
python -c "import six; print (six.__version__)"
pip install six
pip --upgrade six
pip install urllib3 --upgrade
pip install six-1.11.0-py2.py3-none-any.whl
install --ignore-installed six
From various comments/answers to other people looking for the solution to this, it seems I may have "corrupted" Python. Aside from starting from scratch (which I'll probably do before I get any answers, but we'll see)... what can I do?
You also asked about SAB version. As I can't start it, I'm not certain how to retrieve that, but I keep things up to date so it was probably the latest release.

Thank you.
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: Stopped working... help?

Post by jcfp »

That pip stuff can pollute the global python install, we've come across some hard to track errors from that before. Assuming you never used pip before this adventure, my instinct would be to get rid of the changes it made:

Code: Select all

sudo rm -rf /usr/local/lib/python2.7/
After that, depending on the damage to the global python install, you may or may not have to reinstall some of the affected files from their standard packages along the lines of this:

Code: Select all

sudo apt-get clean
sudo apt-get install --reinstall python-six
Best of luck, and double check you have a backup >:D
absteeve
Newbie
Newbie
Posts: 21
Joined: January 3rd, 2014, 12:57 pm

Re: Stopped working... help?

Post by absteeve »

I scoff at backups! Who needs em?

I'm going in. Report back soon.
absteeve
Newbie
Newbie
Posts: 21
Joined: January 3rd, 2014, 12:57 pm

Re: Stopped working... help?

Post by absteeve »

That was scary! lol. That did WAY more than I thought it would. I guess that reinstalled every app that depended on python-six (or one of its dependencies)? That took several minutes as it installed hundreds of items.

BUT IT WORKED!

Thank you thank you thank you.

If you have a stackexchange account (and if you care), you could go to the link I gave above and post your answer to get credit. If you don't want to, I'll post your answer in case it helps someone else.
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: Stopped working... help?

Post by jcfp »

absteeve wrote: February 10th, 2018, 12:56 pmBUT IT WORKED!
Good to hear. 8)

Don't have a stackexchange account though, so that part is up to you.
Aleq
Newbie
Newbie
Posts: 3
Joined: October 25th, 2019, 4:30 pm

Re: Stopped working... help?

Post by Aleq »

This has helped me too, thank you very much!
Post Reply