Transmission – two instances.

Leave a comment

June 18, 2018 by aubreykloppers

I am writing this blog-entry as I am doing the actual work. You will need
to know how to pre-install OMV and OMV EXTRAS, so a bit of knowledge is
required, but then, this is not why you are reading this...

Background:

I have been running OpenMediaVault (OMV) for many years and one of the things that always gets me is the wait to upgrade due to my customization of the system.  In particular the EXTRAS plugin I run and the massive delay in the updates to the packages supported by not only OMV but also OMV EXTRAS.  To my horror I found, when upgrading one of my servers, the lack of support for:

  • SickRage, SABnzb,  possibility of loosing Transmission, changes to MySQL and many more…

I then discovered the ability to run docker on top of OMV (4.x) .  The OMV forum, although filled with questions, do not give you much of an answer and I had to search far to get the answers of how to achieve this on top of OMV 4.x…

Synopsis:

I have one server managing my Movies and my TV Series at the same time.  The problem is that you will find some of your movies goes into the TV folders and vice-versa.  On top of that, running all this through docker, jackett, sickrage, radarr and transmission becomes a management nightmare!

To do this, you will unfortunately have to “hand-rear” your configurations.  This will enable you to split your “Movies” and “TV” management systems into two separate entities.

OS setup:

I am running this on OMV 4.x, but believe you will be able to follow the recipe  on Ubuntu, Debian, or any other Linux distribution.

  • 8GB RAM.
  • 4 Processors.
  • 20GB HDD for OS.
  • 13TB RAID for data.
  1. Download OMV 4.x and OMV EXTRAS.
  2. Install OMV4.x and add the OMV EXTRAS Plugins.
  3. In OMV EXTRAS, enable “Docker CE”.
  4. From your SSH runapt-get clean && apt-get update && apt-get upgrade
  5. From your console do an “Upgrade from yourUpdate Manager” if you have any held-back packages.
  6. Add your DATA STORAGE (HDD) you will use for data, create a file system and mount it
  7. Add a new user called docker and add to “ssh” and “sudo” groups.
  8. Check the id with “id docker” mine came up as: uid=1000(docker) gid=100(users)

Disk (HDD) and folder setup:

Check what your disk came up as.  Mine came up as /srv/dev-disk-by-label-DATA/ Replace {DISK} with yours.  Then create folders to separate your Transmission files into two different folders, namely “sickrage” and “radarr“:

{DISK} = your disk.

mkdir /srv/{DISK}/TV
mkdir /srv/{DISK}/MOVIES
mkdir /srv/{DISK}/docker
mkdir /srv/{DISK}/docker/sickrage
mkdir /srv/{DISK}/docker/sickrage/downloads
mkdir /srv/{DISK}/docker/sickrage/complete
mkdir /srv/{DISK}/docker/sickrage/incomplete
mkdir /srv/{DISK}/docker/sickrage/watch
mkdir /srv/{DISK}/docker/radarr
mkdir /srv/{DISK}/docker/radarr/downloads
mkdir /srv/{DISK}/docker/radarr/complete
mkdir /srv/{DISK}/docker/radarr/incomplete
mkdir /srv/{DISK}/docker/radarr/watch

Installing transmission (sickrage/radarr), sickrage, radarr and jackett:

Before I start, I use jackett due to the fact that API's are not supported
by most the trackers I use.  jackett gives you the ability to inject said
API support.

The code:

This will not only pull the sickrage docker image, but also set everything up for you.

{TZ} = Time Zone, i.e. Europe/London or Africa/Joahnnesburg
{DISK} = your disk.

docker create –name=transmission-radarr –restart=always \
-v /home/docker/transmission-radarr/config:/config \
-v /srv/{DISK}/docker/radarr/downloads:/downloads \
-v /srv/{DISK}/docker/radarr/watch:/watch \
-v /srv/{DISK}/docker/radarr/incomplete:/incomplete \
-v /srv/{DISK}/docker/radarr/complete:/complete \
-e PGID=100 -e PUID=1000 -e TZ={TZ} \
-p 9092:9092 -p 51414:51414 -p 51414:51414/udp \
linuxserver/transmission

docker create –name=transmission-sickrage –restart=always \
-v /home/docker/transmission-sickrage/config:/config \
-v /srv/{DISK}/docker/sickrage/downloads:/downloads \
-v /srv/{DISK}/docker/sickrage/watch:/watch \
-v /srv/{DISK}/docker/sickrage/incomplete:/incomplete \
-v /srv/{DISK}/docker/sickrage/complete:/complete \
-e PGID=100 -e PUID=1000 -e TZ={TZ} \
-p 9091:9091 -p 51413:51413 -p 51413:51413/udp \
linuxserver/transmission

docker create –name=sickrage –restart=always \
-v /home/docker/sickrage/config:/config \
-v /srv/{DISK}/docker/sickrage/downloads:/downloads \
-v /srv/{DISK}/docker/sickrage/downloads/watch:/watch \
-v /srv/{DISK}/docker/sickrage/downloads/incomplete:/incomplete \
-v /srv/{DISK}/docker/sickrage/downloads/complete:/complete \
-v /srv/{DISK}/tv:/tv \
-e PGID=100 -e PUID=1000 -e TZ={TZ} \
-p 8081:8081 \
linuxserver/sickrage

create –name=radarr –restart=always \
-v /home/docker/radarr/config:/config \
-v /srv/{DISK}/docker/radarr/downloads:/downloads \
-v /srv/{DISK}/docker/radarr/downloads/watch:/watch \
-v /srv/{DISK}/docker/radarr/downloads/complete:/complete \
-v /srv/{DISK}/docker/radarr/downloads/incomplete:/incomplete \
-v /srv/{DISK}/movies:/movies \
-e PGID=100 -e PUID=1000 -e TZ={TZ} \
-p 7878:7878 \
linuxserver/radarr

docker create –name=jackett –restart=always \
-v /home/docker/jackett/config:/config \
-v /srv/{DISK}/docker/radarr/downloads/watch:/downloads \
-e PGID=1001 -e PUID=1001 -e TZ={TZ} \
-p 9117:9117 \
linuxserver/jackett

Check your configuration in /home/docker/transmission-(radarr/sickrage)/config.  The file’s name is “settings.json” and you should look for the “rpc-port” settings.  This should match your setup above.  (9091 and 9092).  Changes should only be made when the service is not running.

Additional info:

There is one issue with the new release of Transmission and that is you might get REMOTELY locked out of the system.  I rectified this by changing the “settings.json” file and switched:

“rpc-host-whitelist-enabled”: true, to “rpc-host-whitelist-enabled”: false,

Restarting and monitoring a docker (SickRage in this example):

docker restart/stop/start sickrage
docker logs –tail=10 -f sickrage

Links:
https://hub.docker.com/r/linuxserver/sickrage/ (radarr/jacket/transmission)
https://www.smarthomebeginner.com/install-sickrage-using-docker/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: