Volumes and Paths
Sonarr is a multi-platform app to search, download, and manage TV shows. It uses the torrent network as the source and is available for Windows, Linux, and Mac. Go to the download page to get the version and installation instructions that you need. The Torrent Delay line tells Sonarr how long to wait before starting to download via torrents. I personally set this to 360 giving Sonarr six hours to find an episode on Usenet before looking on torrents. This number can be adjusted up or down as you prefer. Once complete, click Save. Its now time to move to the Quality tab. In this tab you. Radarr is an independent fork of Sonarr which is used to download movies via bittorent and UseNet. The fuss is because it the only platform where the user can schedule what movie he/she wants to download at which date and time and Radarr will automatically download it for you, you just have to add it to your schedule.
There are two common problems with Docker volumes: Paths that differ between the Radarr and download client container and paths that prevent fast moves and hard links.
The first is a problem because the download client will report a download's path as /torrents/My.Movie.2018/
, but in the Radarr container that might be at /downloads/My.Movie.2018/
. The second is a performance issue and causes problems for seeding torrents. Both problems can be solved with well planned, consistent paths.
Most Docker images suggest paths like /movies
and /downloads
. This causes slow moves and doesn't allow hard links because they are considered two different file systems inside the container. Some also recommend paths for the download client container that are different from the Radarr container, like /torrents
.
The best solution is to use a single, common volume inside the containers, such as /data
. Your Movies would be in /data/Movies
, torrents in /data/downloads/torrents
and/or usenet downloads in /data/downloads/usenet
.
If this advice is not followed, you may have to configure a Remote Path Mapping in the Radarr web UI (Settings › Download Clients).
Ownership and Permissions
Sonaar is the one-stop shop for artists, music bands and record labels looking to create stunning WordPress websites. More than 15 Music WordPress Theme available with continuous player, discography, events and 24/7 support all included. Note: Sonarr and Radarr are essentially the same, so I will only demonstrate how to setup Sonarr and these steps can be repeated for Radarr. Note: With these steps select the test connection button each time you add an api to ensure that everything is working properly.
Permissions and ownership of files is one of the most common problems for Radarr users, both inside and outside Docker. Most images have environment variables that can be used to override the default user, group and umask, you should decide this before setting up all of your containers. The recommendation is to use a common group for all related containers so that each container can use the shared group permissions to read and write files on the mounted volumes.
Keep in mind that Radarr will need read and write to the download folders as well as the final folders.
For a more detailed explanation of these issues, see The Best Docker Setup and Docker Guide wiki article.
Sonarr is a multi-platform app to search, download, and manage TV shows. It automatically downloads TV shows via Usenet and BitTorrent. Sonarr can integrate directly into your media server setup and integrates directly with most modern download clients: uTorrent, Deluge, rTorrent, NZBGet, SABnzbd, qBittorrent, Transmission and many more. It will determine when an episode has been downloaded and move it to the correct media folder to be picked up by media servers such as Plex and Emby. The project was inspired by other Usenet/BitTorrent movie downloaders such as SickRage. Settting up Sonarr is alot like setting up Radarr, which of course is based on the Sonarr and you can read theTrueNAS: Radarr Manual Install article to walk through also downloading your movies automatically. This article will show you how to install Sonarr within an existing jail (e.g. with your OpenVPN connection and a torrent client which you setup by reading TrueNAS: Add VPN Connection to a Jail) in the most simple way to avoid path and file permission problems that I have previously experienced. With that, lets get on with a Sonarr manual install by following the directions in the article.
Sonarr Anime Setup
If you would like to install Sonnar V3 instead of Sonarr V2 which this guide will install, you can follow my FreeNAS: Sonarr V3 Manual Install post. While Sonarr V3 is still technically a beta, I’m using it and it is very usable and stable.
Delete cache memory android phones. This is part of my ongoing series of TrueNAS and FreeNAS setup, configuration and install articles.
Sonarr Manual Install
First we need to make sure that everything is up to date using the following commands from the shell within the jail in which you are installing Sonarr:pkg update
pkg upgrade
Next we can get the package manager to install Sonarr with the following command:pkg install sonarr
Wait a couple of minutes for it to install Sonarr and all it dependencies.
Sonarr Setup
First we will need to enable the Sonarr service and allow it to run at startup with the following command (again from within the jail’s shell):sysrc 'sonarr_enable=YES'
I was having security problems, so I want Sonarr to run as root, not as the user ‘sonarr’ which it is set to as default. To do this I edited the /usr/local/etc/rc.d/sonarr
file and changed:
: ${sonarr_user:=”sonarr”}
to:
: ${sonarr_user:=”root”}
Of course you can keep the user as ‘sonarr’ or change it to whatever user you like, just will need to pay close attention to the securities and how they relate to the securities in the larger TrueNAS system (e.g. match UIDs and GIDs).
Now you can start the service with:service sonarr start
Registax for mac. You can now begin configuring Sonarr from the web interface which is at the following weblink:http://%5Byourip%5D:8989
Ensuring Future Updates
We need to make sure Sonarr knows where to run mono from for future updates. If you don’t do this step you will get an error like:
System.ComponentModel.Win32Exception: ApplicationName=‘mono’, CommandLine=’–debug /tmp/nzbdrone_update/NzbDrone.Update.exe 7274 /tmp/nzbdrone_update /usr/pbi/sonarr-amd64/share/sonarr/NzbDrone.exe /data=/var/db/sonarr /nobrowser’, CurrentDirectory=’’, Native error= Cannot find the specified file
The issues is a path problem and thankfully the fix is quite simple. Simply enter the shell of the jail running Sonarr and enter the following command:ln -s /usr/local/bin/mono /usr/bin/mono
Sonarr Configuration
I won’t provide all the information on how to configure Sonarr as there are a number of guides out there and they don’t need to be TrueNAS specific. I will however provide a couple tips which can help.
First, I had trouble for a while with qBittorrent removing the torrent when done. Sonarr does not like it when you tell it to remove automatically (presumably as it needs time to note the download is complete and copy it). Instead, you need to tell qBittorrent to ‘pause’ when the download is complete. You may have the same situation with other download clients.
From the qBittorrent web interface, go to Tools -> Options -> Bittorrent Tab
. Under the ‘Share Ratio Limiting’ heading the drop box beside where it says ‘then’ select ‘pause them’. Now put a tick beside ‘Seed torrents until their ratio reaches’ and set the value to whatever you want. ‘0’ would mean it would pause as soon as the download is complete and ‘1’ would mean as soon as it has shared an amount equal to the size of the file. Using ‘0’ is frowned upon in the torrenting community. **Scroll to the bottom and click ‘Save’**
Second, when setting up Sonarr with Jackett, you do not need to individually add each URL for each search provider. Instead copy one (by clicking the ‘Copy Torznab Feed’ button) and pasting it into URL location in the Sonarr/Radarr config as shown in the image below.
You will need to edit the URL put in by removing the name of the search provider embedded with the URL and replacing it with ‘all’ as shown below:
Replace:
with
You will of course need to insert your API key and any other configuration necessary.
Sonarr Download
Conclusion
Sonarr Not Moving Files
So with this short, simple and straight forwards article on the easiest way to manually install Sonarr within an existing jail, you should now be off to the races in terms of automatically getting TV shows onto your Plex or Emby media server.
Happy Sonarring.
Sonargaon University
~Raze42