Zyxel NSA320 and SickRage

Marvell Kirkwood based
Post Reply
mayrp2001
Posts: 2
Joined: Tue Feb 24, 2015 11:29 am

Zyxel NSA320 and SickRage

Post by mayrp2001 » Tue Feb 24, 2015 11:32 am

Hi,

I am hoping someone can help me. I managed to get Sickbeard working with my nas through alot of stumbling through tutorials and copy and paste. Unfortunately Sickbeard doesn't seem to offer the ability to work with torrents. I was hoping that someone could help me with the installation on Sickrage https://github.com/SiCKRAGETV/SickRage

Im pretty lost when it comes to this.

Any help would be greatly appreciated.

Cheers

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: Zyxel NSA320 and SickRage

Post by barmalej2 » Tue Feb 24, 2015 9:56 pm

Here you are :)
Following command is one-liner:

Code: Select all

wget http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/scripts/sickrage.sh -O /ffp/start/sickrage.sh

Code: Select all

sh /ffp/start/sickrage.sh install

Code: Select all

sh /ffp/start/sickrage.sh start
Enable autostart on NAS boot:

Code: Select all

chmod 755 /ffp/start/sickrage.sh
Disable autostart:

Code: Select all

chmod 644 /ffp/start/sickrage.sh
Uninstall:

Code: Select all

sh /ffp/start/sickrage.sh uninstall

mayrp2001
Posts: 2
Joined: Tue Feb 24, 2015 11:29 am

Re: Zyxel NSA320 and SickRage

Post by mayrp2001 » Wed Feb 25, 2015 12:37 am

You sir are a gentleman and a scholar.

Thank you very much. :D :D

tpt1989
Posts: 3
Joined: Thu Feb 26, 2015 3:20 pm

Re: Zyxel NSA320 and SickRage

Post by tpt1989 » Thu Feb 26, 2015 3:25 pm

Hey, I just managed to get ffp 0.7 installed on my Zyxel NSA325 and happened by this post.

When I try to install Sickrage using your code I get this:

root@TomsMedia:~# sh /ffp/start/sickrage.sh install
/ffp/start/sickrage.sh: line 147: git: command not found
Installing SickRage...
/ffp/start/sickrage.sh: line 153: git: command not found
ERROR WARNING: failed to download SickRage source. Aborting install!
SickRage is not installed ...

Any ideas?

Mijzelf
Posts: 6196
Joined: Mon Jun 16, 2008 10:45 am

Re: Zyxel NSA320 and SickRage

Post by Mijzelf » Thu Feb 26, 2015 3:42 pm

Install git.

Helsing001
Posts: 4
Joined: Sat Oct 24, 2015 6:53 pm

Re: Zyxel NSA320 and SickRage

Post by Helsing001 » Tue Dec 29, 2015 4:07 pm

I know this post is old, but for anyone stumbling upon it, like I did today, and not knowing exactly how to continue after the git error, I did the following:

Install git:

Code: Select all

slacker -a git
Select the git package and press OK.

Then, I needed curl:

Code: Select all

slacker -Ua curl
Select the curl package and press OK.

Then, I got an error of certificates from git. The easiest (but not recommended way) to solve it is to disable the SSL verification. Anyone following these steps should first try to install sickrage, if it doesn't work you could:

Code: Select all

git config --system http.sslverify false
Install Sickrage:

Code: Select all

sh /ffp/start/sickrage.sh install
Then sickrage wouldn't start, because it was looking for python on the FFP stick. Maybe because I actually have NSA540, I have python preinstalled in /usr/bin/python, so I edited sickrage.sh with this value:

Code: Select all

python="/usr/bin/python"
Then I started sickrage:

Code: Select all

sh /ffp/start/sickrage.sh start
And the URL is:
NAS_IP:8081/home

nickster
Posts: 40
Joined: Mon Oct 27, 2014 2:33 pm

Re: Zyxel NSA320 and SickRage

Post by nickster » Mon Nov 20, 2017 8:26 pm

After updating sickrage a couple of days ago it did not start again. After renaming the Sickrage folder in ffp/opt/ I tried the above steps a couple of times but keep getting this error:

Code: Select all

root@NSA325:/ffp/start# sh /ffp/start/sickrage.sh start
/ffp/opt/sickrage/SickBeard.py: Required file not found or not readable
root@NSA325:/ffp/start#
It is correct that the file is not there. There is a file called SiCKRAGE.py. When changing the command in the sickrage.sh file I get the following error:

Code: Select all

root@NSA325:/ffp/start# sh /ffp/start/sickrage.sh start
Starting SickRage...done! [ OK ]
root@NSA325:/ffp/start# Traceback (most recent call last):
  File "/usr/local/zy-pkgs/ffproot/ffp/opt/sickrage/sickrage/__init__.py", line                                                                                                                      211, in main
    from sickrage.core import Core
  File "/usr/local/zy-pkgs/ffproot/ffp/opt/sickrage/sickrage/core/__init__.py",                                                                                                                      line 35, in <module>
    import adba
  File "/usr/local/zy-pkgs/ffproot/ffp/opt/sickrage/sickrage/libs/adba/__init__.                                                                                                                     py", line 21, in <module>
    from aniDBAbstracter import Anime, Episode
  File "/usr/local/zy-pkgs/ffproot/ffp/opt/sickrage/sickrage/libs/adba/aniDBAbst                                                                                                                     racter.py", line 23, in <module>
    import aniDBfileInfo as fileInfo
  File "/usr/local/zy-pkgs/ffproot/ffp/opt/sickrage/sickrage/libs/adba/aniDBfile                                                                                                                     Info.py", line 30, in <module>
    import requests
ImportError: No module named requests
Failed to import required libs, please run 'pip install --user -U -r /usr/local/                                                                                                                     zy-pkgs/ffproot/ffp/opt/sickrage/requirements.txt' from console
What am I doing wrong?

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: Zyxel NSA320 and SickRage

Post by barmalej2 » Tue Nov 21, 2017 12:09 pm

nickster wrote:ImportError: No module named requests
Failed to import required libs, please run 'pip install --user -U -r /usr/local/ zy-pkgs/ffproot/ffp/opt/sickrage/requirements.txt' from console
[/code]

What am I doing wrong?
Red statement should be understood directly. You need to install additional python modules from PyPi for your current Sickrage version to function correctly. For that purpose you need to update ffp first.
Here is instructions:
# Login as root user
# Skip this step if you have slapt-get installed already.
# Create funpkg cache dir for br2 repo if it not exists and install new slapt-get package manager:

Code: Select all

[ -d /ffp/funpkg/cache/br2 ] || mkdir -p /ffp/funpkg/cache/br2
cd /ffp/funpkg/cache/br2
/ffp/bin/wget -nv http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/packages/slapt-get-0.10.2t-arm-2.txz
funpkg -i slapt-get-0.10.2t-arm-2.txz
# Update slapt-get lists and upgrade core packages:

Code: Select all

slapt-get -u
slapt-get --upgrade
# Restart sshd daemon service after upgrading, if you are using it for ssh connection to NAS:

Code: Select all

sh /ffp/start/sshd.sh restart
# Install pip with dependant packages together:

Code: Select all

slapt-get -i pip
Then install python modules from PyPi, reguired for Sickrage

Code: Select all

pip install -U -r /ffp/opt/sickrage/requirements.txt
If you are getting unexpected errors on any step, then stop and report to me.
BTW. Which clone of Sickrage you are using right now?

nickster
Posts: 40
Joined: Mon Oct 27, 2014 2:33 pm

Re: Zyxel NSA320 and SickRage

Post by nickster » Tue Nov 21, 2017 8:42 pm

thx for the help. So I did all the steps above and then followed the sickrage steps from your second post from this thread again. And I have exactely the same messages as I had yesterday:

Code: Select all

SickRage source successfully downloaded to /ffp/opt/sickrage
Installation of SickRage is completed!

#########################################################################
Now you can start SickRage with command - sh /ffp/start/sickrage.sh start
#########################################################################

root@NSA325:/ffp/funpkg/cache/br2# sh /ffp/start/sickrage.sh start
/ffp/opt/sickrage/SickBeard.py: Required file not found or not readable
root@NSA325:/ffp/funpkg/cache/br2#
Should I rename the command parameter in the sickrage.sh file again?

Code: Select all

command="$home_dir/SickBeard.py"

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: Zyxel NSA320 and SickRage

Post by barmalej2 » Tue Nov 21, 2017 9:46 pm

Yes. Early it was SickBeard.py, now it is changed to SiCKRAGE.py. Besides it requires now a lot additional python modules installed with pip, which wasn't requirement earlier too.

nickster
Posts: 40
Joined: Mon Oct 27, 2014 2:33 pm

Re: Zyxel NSA320 and SickRage

Post by nickster » Wed Nov 22, 2017 6:07 pm

Ok. Sickrage is running... BUT, I cannot connect...
root@NSA325:/home/shares# sh /ffp/start/sickrage.sh start
Starting SickRage...done! [ OK ]
root@NSA325:/home/shares# sh /ffp/start/sickrage.sh status
PROCESS STATUS INFO: SickRage is running with process ID(s):4727
The thing is, I cannot connect to the webinterface. I'm assuming the port is still 8081. I tried Chrome and IE. I tried by name and by ip. I can reach the zyxel webinterface and also the sabnzb interface... I restarted the nas once and started sickrage again... no improvement...

Edit:
Can it be that my router is blocking the port?

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: Zyxel NSA320 and SickRage

Post by barmalej2 » Thu Nov 23, 2017 8:37 pm

I don't think so, unless you are connecting from outside. Keep in mind program starts and processes request slowly. So wait a minute or so, before login into web interface. If you still not able to connect then uninstall sickrage and remove startup script:

Code: Select all

rm /ffp/start/sickrage.sh
I will try to revise and update sickrage script tomorrow.
Meanwhile you can test sickgear-another fork of sickbeard:

Code: Select all

/ffp/bin/wget http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/scripts/sickgear.sh -O /ffp/start/sickgear.sh
sh /ffp/start/sickgear.sh install
pip install cheetah lxml regex scandir
sh /ffp/start/sickgear.sh start
Wait about 1 minute, then restart process:

Code: Select all

sh /ffp/start/sickgear.sh restart
Wait a bit again and try to login.

nickster
Posts: 40
Joined: Mon Oct 27, 2014 2:33 pm

Re: Zyxel NSA320 and SickRage

Post by nickster » Fri Nov 24, 2017 6:07 am

Ok, I'll give it a try when I come home. I searched around a bit yesterday. The browser (Chrome) gives an error message that the connection is refused. When I google for the error message in combination with Sickrage there are plenty of hits but so far I could not find a solution....

Thx again for your help!

nickster
Posts: 40
Joined: Mon Oct 27, 2014 2:33 pm

Re: Zyxel NSA320 and SickRage

Post by nickster » Fri Nov 24, 2017 5:31 pm

YES! SickGear is working fine!! :mrgreen:

Edit:

2017-11-24 18:29:10 TORNADO :: Unable to add show because can't create folder: /i-data/md0/video/Uitzoeken/SickGear/The Big Bang Theory

some issue with rights now... :(

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: Zyxel NSA320 and SickRage

Post by barmalej2 » Fri Nov 24, 2017 10:34 pm

You need to give write rights for sickgear daemon service to download directory, before adding downloads. Remove your currently added download tasks first. Then assuming, that you set download directory-/i-data/md0/video/Uitzoeken/SickGear in SickGear preferences:

Code: Select all

chmod 777 /i-data/md0/video/Uitzoeken/SickGear
Restart sickgear service after this action.
BTW. I uploaded updated sickrage script. You can re-download it, if you want to test.it And keep in mind-only one of these programs can be running at the same time. So, stop and disable sickgear, in case of testing sickrage.

Post Reply