Wiki > Sonarr
"Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available."
Sonarr is available as an app on your Manage page. Select Manage Apps next to the slot you want to use Sonarr on. On this page, select
Add Sonarr and provide your Whatbox password. After a short wait, you can click
Open Sonarr to open Sonarr. You can also access Sonarr from your Manage page.
Sonarr updates are currently managed by us. Attempting to use the built-in automatic update or restart functions in Sonarr will fail. If you have attempted to update Sonarr and Sonarr is no longer accessible, connect to your slot via SSH, run
pkill -f NzbDrone.exe; rm ~/.config/NzbDrone/nzbdrone.pid and then restart Sonarr and from your Manage page.
Connecting to clients
Connecting to rTorrent
Under Settings > Download Client, select to add a client with the + button and then select rTorrent. Enter the following information to connect to rTorrent:
Host: server.whatbox.ca Port: 443 URL Path: xmlrpc Use SSL: Yes Username: user Password: Your server password
Connecting to Transmission
You will need the Transmission daemon port from your Slot Info page.
Under Settings > Download Client, select to add a client with the + button and then select Transmission. Enter the following information to connect to Transmission:
Host: server.whatbox.ca Port: Daemon port as listed on your Slot Info page Username: user Password: Your server password
Connection to Deluge
You will need the Deluge WebUI address from your Slot Info page.
Make sure the Deluge WebUI has been enabled from the Settings link on your Manage page.
Under Settings > Download Client, select to add a client with the + button and then select Deluge. Enter the following information to connect to Deluge:
Host: server.whatbox.ca Port: 5 digit port from the end of your Deluge WebUI link, as listed on your Slot Info page. Password: Your server password Category: Leave blank if the Label plugin has not yet been enabled in the Deluge WebUI
mono-based applications are inherently unstable and prone to crashing. Below are steps to take to have your Sonarr instance automatically restart if it crashes, or if the server is rebooted.
Make a file to be used for the script.
Edit the file and enter the text below.
nano -w ~/sonarr_restart.cron
#!/bin/bash if pgrep -fx "mono /usr/share/sonarr/NzbDrone.exe -c libcurl" > /dev/null then echo "Sonarr is running." else echo "Sonarr is not running, starting Sonarr" mono /usr/share/sonarr/NzbDrone.exe -c libcurl fi exit
Save the file with Ctrl+x and the "y" and Enter to accept overwriting.
Make the script executable.
chmod +x ~/sonarr_restart.cron
Open your crontab.
EDITOR=nano crontab -e
Enter the following text
@reboot /home/user/sonarr_restart.cron >/dev/null 2>&1 */5 * * * * /home/user/sonarr_restart.cron >/dev/null 2>&1
Save the crontab with Ctrl+x and the "y" and Enter to accept overwriting.
Sonarr v3 (beta)
You can follow these instructions to upgrade your existing Whatbox managed Sonarr v2 installation to a self-managed Sonarr v3 installation.
You must have Sonarr v2 enabled and working on your slot's Manage Apps page before following these instructions.
Connect to your slot with SSH
Navigate to your Manage page, click
Manage Appsthen click
Ensure Sonarr is disabled and the process has stopped
pkill -f -9 NzbDrone.exe4 Create a backup of your current Sonarr v2 config:
cp -r ~/.config/NzbDrone ~/.config/sonarrv2
Download the latest version
wget -O Sonarr.develop.V3.tar.gz "https://services.sonarr.tv/v1/download/phantom-develop/latest?version=3&os=linux"
Extract the archive
tar xzvf Sonarr.develop.V3.tar.gz
(Optional) Remove any installation archives
Update Mono's local user certificate storage. This is needed to access SSL/TLS servers from within Sonarr v3
/usr/bin/cert-sync --user /etc/ssl/certs/ca-certificates.crt
screen -dmS sonarr mono --debug ~/Sonarr/Sonarr.exe -c libcurl
(Optional) Change the automatic restart script to use the self-managed Radarr v3 installation
nano -w ~/sonarr_restart.cron
#!/bin/bash if pgrep -fx "mono --debug /home/user/Sonarr/Sonarr.exe -c libcurl" > /dev/null then echo "Sonarr is running." else echo "Sonarr is not running, starting Sonarr" screen -dmS sonarr mono --debug /home/user/Sonarr/Sonarr.exe -c libcurl fi exit
Save the file with
Enterto accept overwriting.