Sickrage wont start

Hey guys,

Hope someone can help me figure this one out. This is the first of two issues i’m having but I want to solve this one first i’m having an issue to get SIckrage run at startup. I have checked the event logs and found errors which i will post below. I’m a noob but i’m learning slowly but this is very frustrating. I have noticed this issue recently also with couchpoato not finding content when you click on the refresh button but that’s another story for another topic I want to solve this one now.

Loaded: loaded (/etc/systemd/system/sickrage.service; enabled)
Active: failed (Result: exit-code) since Mon 2016-12-19 08:10:05 EST; 7min ag o
Process: 258 ExecStart=/opt/sickrage/SickBeard.py -q --daemon --nolaunch --dat adir=/opt/sickrage (code=exited, status=1/FAILURE)

Dec 19 08:10:05 OSMC SickBeard.py[258]: Traceback (most recent call last):
Dec 19 08:10:05 OSMC SickBeard.py[258]: File "/opt/sickrage/SickBeard.py…>
Dec 19 08:10:05 OSMC SickBeard.py[258]: import sickbeard
Dec 19 08:10:05 OSMC SickBeard.py[258]: File "/opt/sickrage/sickbeard/__…1
Dec 19 08:10:05 OSMC SickBeard.py[258]: [9B blob data]
Dec 19 08:10:05 OSMC SickBeard.py[258]: ^
Dec 19 08:10:05 OSMC SickBeard.py[258]: SyntaxError: invalid syntax
Dec 19 08:10:05 OSMC systemd[1]: sickrage.service: control process exit…=1
Dec 19 08:10:05 OSMC systemd[1]: Failed to start SickRage Daemon.
Dec 19 08:10:05 OSMC systemd[1]: Unit sickrage.service entered failed state.

I have also noticed when I tried to start Sickrage with command i noticed another error in the logs

osmc@OSMC:~$ sudo service sickrage start
Job for sickrage.service failed. See ‘systemctl status sickrage.service’ and ‘journalctl -xn’ for details.

Hey there, I think I’m having an incredibly similar issue… wondered if you’d worked it out?

If not, I also tried running it from the python script using “python /opt/sickrage/SickBeard.py”:

Traceback (most recent call last):
  File "/opt/sickrage/SickBeard.py", line 91, in <module>
    import sickbeard
  File "/opt/sickrage/sickbeard/__init__.py", line 37, in <module>
    from sickbeard.indexers import indexer_api
  File "/opt/sickrage/sickbeard/indexers/__init__.py", line 21, in <module>
    from . import indexer_api
  File "/opt/sickrage/sickbeard/indexers/indexer_api.py", line 24, in <module>
    from sickrage.helper.encoding import ek
ImportError: cannot import name ek

Not sure if it’s exactly the same or not, but what you have above I also get with: “sudo service sickrage status”

* sickrage.service - LSB: starts instance of SickRage
   Loaded: loaded (/etc/init.d/sickrage)
   Active: failed (Result: exit-code) since Tue 2017-01-03 23:01:48 GMT; 7min ago
  Process: 21939 ExecStart=/etc/init.d/sickrage start (code=exited, status=1/FAILURE)

Jan 03 23:01:48 osmc sickrage[21939]: File "/opt/sickrage/sickbeard/__init__.py", line 37, in <module>
Jan 03 23:01:48 osmc sickrage[21939]: from sickbeard.indexers import indexer_api
Jan 03 23:01:48 osmc sickrage[21939]: File "/opt/sickrage/sickbeard/indexers/__init__.py", line 21, in <module>
Jan 03 23:01:48 osmc sickrage[21939]: from . import indexer_api
Jan 03 23:01:48 osmc sickrage[21939]: File "/opt/sickrage/sickbeard/indexers/indexer_api.py", line 24, in <module>
Jan 03 23:01:48 osmc sickrage[21939]: from sickrage.helper.encoding import ek
Jan 03 23:01:48 osmc sickrage[21939]: ImportError: cannot import name ek
Jan 03 23:01:48 osmc systemd[1]: sickrage.service: control process exited, code=exited status=1
Jan 03 23:01:48 osmc systemd[1]: Failed to start LSB: starts instance of SickRage.
Jan 03 23:01:48 osmc systemd[1]: Unit sickrage.service entered failed state.

As well as the failure when trying to start the service with “sudo service sickrage start”:

Job for sickrage.service failed. See 'systemctl status sickrage.service' and 'journalctl -xn' for details.

Also pretty new to this stuff so have no idea what to do from here… I’ve had it all up and running for months now with very few issues and this one seems relatively new! I’ve tried re-doing some of the setup steps but haven’t come across anything that’s made a difference; I’m a bit wary about doing too much as I don’t want to completely destroy the setup I had before :confounded: