Install Sickrage Debian Linux

SickRage is a popular fork of SickBeard the classic automated periodic show grabber. SickRage can send index files to your usenet or torrent downloader and post process the releases for you. SickRage can do Anime just like Sonarr. You can integrate SickRage with Sabnzbd and NZBGet for usenet downloads. If you prefer torrents you can use Transmission, Deluge and other clients. Personally I prefer Transmission for torrent downloads. This guide to install Sickrage on Debian Wheezy or Jessie and later with an init.d script or systemd script on the Ubuntu guide page.

Note SickRage has two major branches, this one is maintained by a group of developers, the original is maintained by echel0n. It is up to you which one you choose to use.

If you are a torrent fan use a VPN like Private Internet Access, also read about the benefits of usenet

Usenet Provider
Backbone
Retention
Speed
Connections
VPN
Monthly
Annual
UsenetServer
UsenetServer
2265
Unlimited
20
Yes
$10
$95.40
Usenetlink
Cloudgate
2000
100 Mbit
30
No
$15
$140
Astraweb
Astraweb
2264
Unlimited
20
No
$7.50
$96.00
UsenetBucket
XS News
1100
40 Mbit
25
No
€4.95
€60.00
Frugal
Blocknews
600
Unlimited
60
No
$4.99
$50.00

Install SickRage Debian Linux

Update the Debian repositories

sudo apt-get update

Upgrade any software packages

sudo apt-get upgrade -y

Install SickRage dependencies

sudo apt-get install python-pip python-dev git-core libssl-dev libxslt1-dev libxslt1.1 libxml2-dev libxml2 libssl-dev libffi-dev -y

Install pyopenssl

sudo pip install pyopenssl

Build the latest unrar from source

sudo apt-get install build-essential -y
wget http://rarlab.com/rar/unrarsrc-5.2.7.tar.gz
tar -xvf unrarsrc-5.2.7.tar.gz
cd unrar
sudo make -f makefile
sudo install -v -m755 unrar /usr/bin

Git clone the SickRage installation onto your Debian machine, this is one of two repositories you can use

Only use one repository!

sudo git clone https://github.com/SickRage/SickRage.git /opt/sickrage

The other repository is maintained by echel0n

sudo git clone https://github.com/SickRageTV/SickRage.git /opt/sickrage

Make your user the owner of the SickRage folder

sudo chown -R user:user /opt/sickrage

Test to see if it works

python /opt/sickrage/SickBeard.py -d

You should be able to access SickRage at http://ip.address:8081

You can press Ctrl+Z to kill the process if SickRage did run

No handlers could be found for logger "sickbeard"

You may also see this error because the changing permissions didn’t work, redo the sudo chown command

Autostart SickRage on Debian

You should use the init.d script if you are on Wheezy and the systemd script if you are on Debian Jessie or later.

Do not use both scripts, only one is necessary. To determine if you are using init.d or systemd use this command

sudo stat /proc/1/exe

SickRage init.d Script

Create the SickRage default file

sudo nano /etc/default/sickrage

Paste this code, adjust user to your Debian user

SR_USER=user
SR_HOME=/opt/sickrage
SR_DATA=/opt/sickrage
SR_PIDFILE=/home/user/.sickrage.pid

Copy the default SickRage init.d script

sudo cp /opt/sickrage/runscripts/init.ubuntu /etc/init.d/sickrage

If you get an error the sickrage script may have moved in their git repo, find it with this command

sudo find / -name init.ubuntu

So the new copy command would look like this, use the source location form the find command.

sudo cp /path/to/init.ubuntu /etc/init.d/sickrage

Make the SickRage init.d script executable

sudo chmod +x /etc/init.d/sickrage

Update the SickRage init.d script defaults

sudo update-rc.d sickrage defaults

Start SickRage like this

sudo service sickrage start

SickRage systemd Script

Create the SickRage default file for Debian jessie and later

sudo nano /etc/systemd/system/sickrage.service

Paste the SickRage systemd service, change your user and group to your username and group

[Unit]
Description=SickRage Daemon

[Service]
User=username
Group=username
Type=forking
GuessMainPID=no
ExecStart=/usr/bin/python /opt/sickrage/SickBeard.py -q --daemon --nolaunch --datadir=/opt/sickrage

[Install]
WantedBy=multi-user.target

Enable the SickRage systemd script

sudo systemctl enable sickrage.service

Start the SickRage service

sudo service sickrage start

Now you can configure Sickrage.