Radarr Install Ubuntu

0 views
Skip to first unread message

Leto Corrales

unread,
Aug 4, 2024, 8:45:42 PM8/4/24
to sotassliche
Radarrmakes failed downloads a thing of the past. Password protected releases, missing repair blocks or virtually any other reason? no worries. Radarr will automatically blacklist the release and tries another one until it finds one that works.

Ensure you get the right release every time! Custom Formats allows fine control over release prioritization and selection. As simple as a single preferred word or as complex as you want with multiple criteria and regex.


The Radarr team does not offer an official Docker image. However, a number of third parties have created and maintain their own.

These instructions provide generic guidance that should apply to any Radarr Docker image.


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.


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.


To install and use these Docker images, you'll need to keep the above in mind while following their documentation. There are many ways to manage Docker images and containers too, so installation and maintenance of them will depend on the route you choose. hotio/radarr:release hotio doesn't specify any default volumes, besides /config. Images are automatically updated multiple times in an hour if upstream changes are found. Hotio also builds our Pull Requests which may be useful for testing. Read the instructions on how to install the image.


linuxserver.io is one of the most prolific and popular Docker image maintainers. They also maintain images for most of the popular download clients as well. LinuxServer specifies a couple of optional default volumes such as /movies and /downloads. The default volumes are not optimal nor recommended. Our recommendation is to use a single volume for the data, as mentioned above.


Radarr uses a bundled version of ffprobe for media file analysis and does not require ffprobe or ffmpeg to be installed on the system. If Radarr says Ffprobe is not found this can typically be fixed with a reinstall.


The steps below will download the stable version (master release branch) Radarr and install it into /opt

Radarr will run under the user radarr and group media; media is the commonly suggested group to run the *Arrs, download clients, and media server under.

Radarr's configuration files will be stored in /var/lib/radarr


Installation Prerequisites

The below instructions are based on the following prerequisites. Change the instructions as needed to suit your specific needs if necessary.

* The user radarr is created

* The user radarr is part of the group media

* Your download clients and media server run as and are a part of the group media

* Your paths used by your download clients and media server are accessible (read/write) to the group media

* You created the directory /var/lib/radarr and ensured the user radarr has read/write permissions for it for it

* Previous/existing installations were using the master release branch noted on the FAQ or you update master in the download URL


Note: This assumes you will run as the user radarr and group media. You may change this to fit your usecase. It's important to choose these correctly to avoid permission issues with your media files. We suggest you keep at least the group name identical between your download client(s) and Radarr.


The below systemd creation script will use a data directory of /var/lib/radarr. Ensure it exists or modify it as needed. For the default data directory of /home/$USER/.config/Radarr simply remove the -data argument. Note: that $USER is the User Radarr runs as and is defined below.


You might have just installed Ubuntu 20.04 and want to install Radarr to automate your life, at least for watching TV shows. This tutorial has been run on Ubuntu 20.04 but can also apply to Debian or Raspbian 10 if you are setting up Radarr on your Raspberry Pi.


If you see similar output as follows, it indicates that the two software is installed. On my machine, the two packages are already installed on my Ubuntu 20.04 machine, but it is safer to run them anyways to avoid problems in later steps if we do not have them installed.


With the needed tools installed, we will now use apt-key to add the public key 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF owned by Xamarin, which is the company developing Mono. We use the adv parameter here to pass advanced parameters to apt-key such as key server and the key string. With this Mono key installed, mono related packages that were signed by this key will be authenticated and considered trusted.


The output will be like the following. You can see the key owner is Xamarin Public Jenkins (auto-signing) and the associated email (rel...@xamarin.com). Jenkins is an automation server for building, testing, and deploying software.


Now we will finally install the Mono package, more accurately the mono-devel package. As its name suggests, this package contains development tools and pulls in the development stack for Mono. You will see similar output from the following screenshot. Press enter or type Y and press enter to continue. After mono installation, it will take 382 MB disk space. The installation will be slow as it will compile on your machine.


You will see the output like the above: here the downloaded archive is 12.6 MB. To verify, we run ls Radarr*. As you can see, we downloaded the Linux develop version 0.2.0.1480: Radarr.develop.0.2.0.1480.linux.tar.gz. You version might be different from mine. Even though the archive is not Ubuntu or Ubuntu 20.04 specific, but we are fine because Ubuntu belongs to the Linux family.


Until the last step, if you restart your computer or experience a power outage, you will have to start Radarr again to use it. Here we will use a software called systemd to auto-start Radarr for you on boot. What we will use next is called systemd service.


Add the content above first. This is a sample systemd service file. You will need to change User and Group in the Service block. This is the user used to run Radarr on Ubuntu. Search vh and Change it to your current user. The group can be the same as your username. If you are an experienced Linux user, you can create a user called radarr but it is not necessary for the personal use of Radarr.


You will see the output as follows. Under the hood, it created a soft symbolic link (just a reference, like shortcut on Windows) to the multi-user target folder. All we need to know there is that the multi-user target starts after all the network services. Radarr service is under this category because it is essentially a network application.


Congratulations, you have learned how to install Radarr and make it auto-start by adding the Sonarr systemd service on your Ubuntu 20.04 computer! Now you can setup Radarr, add an indexer and download some movies you have probably bought from BestBuy, Walmart, or Target. If you want to monitor Radarr with missing movies or what are queued, you can run the Heimdall. Here is how you can install Heimdall on Ubuntu 20.04. If you prefer Docker, you can also install Heimdall on Ubuntu 20.04 with Docker.


Thanks so much for this and it works EXCEPT, no matter what I do I cant get the radarr.service to run, i have tried everything, I get ( Code=excited.status=2) error on the same line as the ExecStart path. The thing is I cant figure out what my path should even be? I followed the direction exactly as you said. Please advise if you can, and thanks again for this, I know you do this for nothing and that you are not responsible for our stupids.


OMG. nevermind. The formatting on the code blocks in your post had not loaded correctly so everything was on one line. After I posted my original comment and then reloaded the page I saw the proper formatting. Everything seems to be working now. Thanks again.


I did force it to install Radarr V3, but I was having the issue even before then. I figured Radarr V3 would fix it, but nah, either way at the end of the day it was the hardening rules that prevented it from running. I did also make sure the radarr user had permission to read/write/execute everything inside /opt/radarr and mnt/dietpie_userdata/radarr


Indeed the underlying Mono/.NET library had or has issues to write to directories that are not owned by the executing user and do not support POSIX permissions. But Radarr v3 AFAIK worked around that. That however still should not break the whole service to start .

3a8082e126
Reply all
Reply to author
Forward
0 new messages