digiMoot:

FreeNAS: Lidarr Manual Install

FreeNAS Install Lidarr
Lidarr is a multi-platform app to search, download, and manage TV shows. It automatically downloads music albums sorted by artist via Usenet and BitTorrent. Lidarr 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 album 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 Lidarr is alot like setting up Sonarr or Radarr (you can read all about setting up Sonarr and setting up Raddar) which are for downloading your movies and TV shows automatically. This article will show you how to install Lidarr on your FreeNAS system within an existing jail (e.g. with your OpenVPN connection and a torrent client which you setup by reading FreeNAS: Add VPN Connection to a Jail). The method used is this tutorial is much simpler, in my opinion than the directions included on the Lidarr FreeNAS install page. With that, lets get on with a Lidarr manual install by following the directions in the article.

This article is part of my series of FreeNas setup, configuration and install articles.

Lidarr 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 Lidarr:

pkg update
pkg upgrade

Next we can get the package manager to install Lidarr with the following command:

pkg install lidarr

Wait a couple of minutes for it to install Lidarr and all it dependencies.

Lidarr Setup

First we will need to enable the Lidarr service and allow it to run at startup with the following command (again from within the jail’s shell):

sysrc "lidarr_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/lidarr file and changed:

: ${lidarr_user:=”lidarr”}

to:

: ${lidarr_user:=”root”}

Of course you can keep the user as ‘lidarr’ or change it to whatever user you like, just you will need to pay close attention to the securities and how they relate to the securities in the larger FreeNAS system (e.g. match UIDs and GIDs).

Now you can start the service with:

service lidarr start

You can now begin configuring Lidarr from the web interface which is at the following weblink:

http://[yourip]:8686

Ensuring Future Updates

We need to make sure Lidarr 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 Lidarr and enter the following command:

ln -s /usr/local/bin/mono /usr/bin/mono

Lidarr Configuration

I won’t provide all the information on how to configure Lidarr as there are a number of guides out there and they don’t need to be FreeNAS specific. I will however provide onee tips which can help. 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/Lidarr config as shown in the image below.

Lidarr Config
Radarr Config

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:

http://x.x.x.x:9117/api/v2.0/indexers/torrentz/results/torznab/

with

http://x.x.x.x:9117/api/v2.0/indexers/all/results/torznab/

You will of course need to insert your API key and any other configuration necessary.

Conclusion

So with this short, simple and straight forwards article on the easiest way to manually install Lidarr 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 Lidarring.

~Raze42

Liked it? Take a second to support digiMoot on Patreon!

15 thoughts on “FreeNAS: Lidarr Manual Install

  1. Hi I’m getting an error when I run the command: ln -s /usr/local/bin/mono /usr/bin/mono
    ln: /usr/bin/mono: Read-only file system

    1. Hi I’m really struggling with this I’m very new to this is there maybe a command that I can run to give you more info that you can maybe help me to resolve this issue thx in advance.

      1. Hi got is sorted.
        You have to edit the fstab to make it writable.
        Run the following change all ro to rw and restart your jail.
        iocage fstab -e

  2. First, thank you for writing this tutorial! I recently updated my Freenas installation and was excited about getting Lidarr to run a jail.

    I am running Freenas 11.2-U8. After I follow both this install method and the “official” Lidarr Freenas Jail install, my mount points to my music folder shows unavailable in the add root folder section of Lidarr. I have hopped into the shell, ran the su command as booth root and lidarr user and they each have read and write access to the folder. I cannot figure this one out. I would appreciate any suggestions!

    1. I figured it out. On creating a Jail, select Release 11.2 (I assume it would be 11.3 if I was running 11.3 version of FreeNAS). Once I created a new jail with that, the mounting points immediately worked. Thanks again for a great shortcut in installing Lidarr!

      1. Glad it worked. My jails are still 11.2 I wouldn’t think there would be any difference, but… My first thought was to check ACL permissions. I’ll have to try with 11.3 and report back.

      2. The annoying thing about that is, what happens when we all upgrade to TrueNAS 12… It’s not working on there. You didn’t happen to find out what the root cause was? I checked all my ACLs and they seem fine.

  3. I’m going through the process of updating all of these freenas articles for v12. I’ve done a few but lidarr will probably be one of the last ones.

  4. I’m currently working on getting Lidarr/Radarr updates working from the UI. Sonarr is working fine. I’ve installed via pkg however the point that you suggest creating the symbolic link is giving me some issues. I’ve manually upgraded to Mono 6.8 across the board so possibly this is why. Maybe the directories that it expects are located differently. Any ideas? Both Lidarr and Radarr are working fine aside from the updates from the UI and it is reporting the error that you list above in the logs.

    1. I think your right. The link is pointing to the wrong location as you have a different install location for mono. You should be able to find the install location of the package using ‘pkg info -lx ‘ and the you can update the ln command accordingly.

Leave a Reply

Your email address will not be published. Required fields are marked *