TornadoScheduler not found


#1

Hi,

I just upgraded and somehow I killed my installation. So I reinstalled and now I’m having problems to get the service running. If I start manually everything seems to run as it should. If I try to start the service (I copied the runscripts/init.systemd to /etc/systemd/system/sickrage.service) and I get the following error:

● sickrage.service - SickRage Daemon
Loaded: loaded (/etc/systemd/system/sickrage.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Sun 2018-11-04 21:33:16 CET; 8s ago
Process: 31539 ExecStart=/usr/bin/python2.7 /opt/sickrage/SiCKRAGE.py -q --daemon --nolaunch --datadir=/opt/sickrage (code=exited, status=0/SUCCESS)

Nov 04 21:33:16 machine systemd[1]: Starting SickRage Daemon...
Nov 04 21:33:16 machine python2.7[31539]: Traceback (most recent call last):
Nov 04 21:33:16 machine python2.7[31539]:   File "/opt/sickrage/sickrage/__init__.py", line 219, in main
Nov 04 21:33:16 machine python2.7[31539]:     from sickrage.core import Core
Nov 04 21:33:16 machine python2.7[31539]:   File "/opt/sickrage/sickrage/core/__init__.py", line 35, in <module>
Nov 04 21:33:16 machine python2.7[31539]:     from apscheduler.schedulers.tornado import TornadoScheduler
Nov 04 21:33:16 machine python2.7[31539]: ImportError: No module named apscheduler.schedulers.tornado
Nov 04 21:33:16 machine python2.7[31539]: Failed to import required libs, please run 'pip install --user -U -r /opt/sickrage/requirements.txt' from c
Nov 04 21:33:16 machine systemd[1]: Started SickRage Daemon.

But If I run the suggested pip install all requirements are met (I ran it already).

Does somebody has an idea how to fix this?

And another question if this is fixed: Is there an option to migrate from an old database?

Thanks for your help!

OS: Ubuntu 16.04
Python: 2.7.12
PIP: 18.1


#2

is the app running as another user other then root ?


#3

Yes, the service should start as a sickrage user and I saw now, that the python libraries where just installed for my regular user.

Thanks for the tip!

For anybody else who have this problem: The trick is to change to a root terminal with

sudo su

and then get the requirements

pip install  -U -r /opt/sickrage/requirements.txt