Skip to Content
Sonarr

Sonarr

Smart PVR for automated TV series management and quality upgrades

Sonarr is a PVR (Personal Video Recorder) for Usenet and BitTorrent users. It monitors multiple RSS feeds for new episodes of your favorite shows and automatically grabs, sorts, and renames them. Sonarr can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available.

📺 Automatic Series Monitoring

Track your favorite TV shows and automatically download new episodes as they become available

Quality Management

Define preferred quality profiles and automatically upgrade existing episodes to better quality versions

📅 Calendar Integration

Visual calendar showing upcoming and aired episodes with at-a-glance schedule overview

🔍 TheTVDB Integration

Search and add new series from TheTVDB with comprehensive metadata and episode information

📁 Automatic Organization

Rename and organize files with customizable naming patterns for consistent library structure

🔗 Download Client Support

Works with qBittorrent, Deluge, SABnzbd, NZBGet, rTorrent, and Transmission

🔔 Notification System

Get notified when episodes are grabbed, downloaded, or upgraded via Discord, Slack, Email, and more

⚙️ Custom Scripts

Run custom scripts on grab, download, rename, or import events for advanced automation


Installation

Prerequisites

  • QuickBox Pro v3 installed and configured
  • Download client installed (qBittorrent, Deluge, rTorrent, etc.)
  • Media storage location configured (/home/username/Media/TV)
  • User account created on the server

What You Get

  • Per-user installation with isolated configurations
  • Automatic integration with your download clients
  • Pre-configured nginx reverse proxy with SSL
  • Auto-generated ports and API keys for security
  • Systemd service for automatic startup and management

Basic Installation

Install Sonarr v4 (stable) for a specific user:

qb install sonarr -u username

Sonarr v4 is Now Default

Sonarr v4 is the current stable version installed by default. The --v4 flag is only used for updating existing v3 installations to v4—not for new installs.

Installation Commands

Command
qb install sonarr -u username
Description
Install Sonarr v4 (stable) with automatic configuration
Command
qb install sonarr -u username --nightly
Description
Install nightly build (develop branch) for latest features
Command
qb install sonarr -u username --4k
Description
Install separate 4K instance for high-resolution content
Command
qb install sonarr -u username --nightly --4k
Description
Install 4K instance on nightly branch
Command
qb reinstall sonarr -u username
Description
Reinstall Sonarr (preserves configuration and database)
Command
qb update sonarr -u username
Description
Update to latest version (auto-detects branch)
Command
qb update sonarr -u username --v4
Description
Upgrade existing v3 installation to v4 (v3 users only)
Command
qb remove sonarr -u username
Description
Remove standard installation
Command
qb remove sonarr -u username --4k
Description
Remove 4K instance
Command
qb help sonarr
Description
Display comprehensive help information
-u, --usernameRequired

Specify the user for installation

-u john
--nightly

Install develop branch (nightly builds) for cutting-edge features

--4k

Install dedicated 4K instance (Sonarr4K) with separate config and port

--v4

Upgrade existing v3 to v4 (update command only - not for new installs)

4K Instance

The --4k flag creates a separate Sonarr4K instance dedicated to 4K/UHD content with its own port, configuration directory (~/.config/Sonarr4K), and quality profiles—perfect for managing standard and 4K libraries separately without conflicts.

Update Branch Handling

When you run qb update sonarr -u username, QuickBox automatically detects your current branch (main or develop) from config.xml and updates accordingly. You don’t need to specify --nightly unless you want to switch branches.


Directory Structure

/home/username
.config/
├── Sonarr/# Sonarr configuration directory
│ ├── sonarr.db# Main database - backup regularly!
│ ├── config.xml# Core configuration (ports, URL base, branch)
│ └── logs/# Application logs
└── Sonarr4K/# 4K instance configuration (if --4k flag used)
│ ├── sonarr.db# 4K instance database
│ └── config.xml# 4K instance configuration
Media/# Recommended media storage location
├── TV/# TV shows root folder
└── TV-4K/# 4K TV shows (if using --4k)

Configuration Details

Standard instance:

  • Install location: /opt/username/Sonarr/
  • Config directory: ~/.config/Sonarr/
  • Database: ~/.config/Sonarr/sonarr.db
  • Service: sonarr@username.service
  • Default port: 8989 (auto-generated if in use)
  • SSL port: 9898 (auto-generated if in use)

4K instance (—4k flag):

  • Install location: /opt/username/Sonarr4K/
  • Config directory: ~/.config/Sonarr4K/
  • Database: ~/.config/Sonarr4K/sonarr.db
  • Service: sonarr4k@username.service
  • Ports: Auto-generated (typically 8990+)

Upgrading from v3 to v4

Important Migration Information

If you have an existing Sonarr v3 installation, you must upgrade to v4 using the --v4 flag. This is a one-time migration that updates your database schema.

Upgrade Command

qb update sonarr -u username --v4

Pre-Upgrade Checklist

Before Upgrading

  • Backup your database: ~/.config/Sonarr/sonarr.db
  • Stop any manual searches or active downloads
  • Note your current configuration (ports, API key, indexers)
  • Verify you have sufficient disk space

Upgrade Process

  • Service is stopped automatically
  • Latest v4 package is downloaded and installed
  • Database schema is migrated to v4 format
  • Configuration and settings are preserved
  • Service restarts automatically with v4

Database Backup

Always backup before upgrading: cp ~/.config/Sonarr/sonarr.db ~/.config/Sonarr/sonarr.db.v3-backup


Accessing Sonarr

After installation, Sonarr is accessible through QuickBox’s nginx reverse proxy with SSL:

Instance Type
Standard
Access URL
https://your-server-ip/username/sonarr
Instance Type
4K Instance
Access URL
https://your-server-ip/username/sonarr4k

QuickBox Dashboard Integration

Sonarr is automatically integrated into your QuickBox dashboard. Find it in the Application Control panel with port, API key, and status information. Click the LAUNCH icon to open the web interface, or use the Package Management tab to install/remove applications.

Network Configuration

QuickBox automatically configures:

  • URL Base: /username/sonarr (or /username/sonarr4k)
  • Bind Address: 127.0.0.1 (local only - proxied through nginx)
  • Port: Auto-assigned (typically 8989 for standard, 8990+ for 4K)
  • SSL: Handled by nginx reverse proxy (port 443)
  • Authentication: Initially set to None (configure on first access)

Initial Configuration

1. Set up Authentication

Security First

Configure authentication immediately after installation if your server is accessible from the internet.

  1. Navigate to Settings → General
  2. Under Security, configure:
    • Authentication Method: Forms (recommended) or Basic
    • Username: Your chosen username
    • Password: Strong password

2. Configure Download Client

Sonarr needs a download client to grab releases. QuickBox configures clients with SSL through nginx.

Steps:

  1. Go to Settings → Download Clients
  2. Click Add (+) button
  3. Select your client (qBittorrent, Deluge, rTorrent, etc.)
  4. Enable Show Advanced to access URL Base field
  5. Enter connection details from the table below
⬇️

Download Client Configuration

QuickBox-specific connection details for common download clients

All configurations use SSL (port 443) through nginx reverse proxy
🌊

Deluge

HTTPS
Hostlocalhost or server IP
Port443
URL Base/username/deluge
AuthPassword (from Deluge connection manager)
🌊

Flood

HTTPS
Hostlocalhost or server IP
Port443
URL Base/username/flood
AuthUsername & Password (Flood credentials)
📥

NZBGet

HTTPS
Hostlocalhost or server IP
Port443
URL Base/username/nzbget
AuthUsername & Password (NZBGet credentials)

qBittorrent

HTTPS
Hostlocalhost or server IP
Port443
URL Base/qbittorrent
AuthUsername & Password (qBittorrent credentials)
📡

rTorrent

HTTPS
Hostlocalhost or server IP
Port443
URL Path/username (SCGI routed by QuickBox)
AuthUsername & Password (ruTorrent credentials)
📦

SABnzbd

HTTPS
Hostlocalhost or server IP
Port443
URL Base/username/sabnzbd
AuthAPI Key (from SABnzbd settings) and Username & Password (SABnzbd credentials)
🚂

Transmission

HTTPS
Hostlocalhost or server IP
Port443
URL Base/username/transmission
AuthUsername & Password (Transmission credentials)
  1. Click Test to verify connection
  2. Click Save if test succeeds

Download Client Categories

Configure categories in your download client (e.g., tv-sonarr) to isolate Sonarr downloads and set specific paths automatically.

Prowlarr provides centralized indexer management across all *arr applications:

  1. Install Prowlarr: qb install prowlarr -u username
  2. In Prowlarr, navigate to Settings → Apps
  3. Click Add (+) and select Sonarr
  4. Enter:
    • Sonarr URL: http://localhost:8989/username/sonarr
    • API Key: Found in Sonarr → Settings → General → Security
  5. Click Test then Save
  6. Add indexers in Prowlarr—they automatically sync to Sonarr

Why Prowlarr over Jackett?

Prowlarr is the modern successor to Jackett. When you add or remove indexers in Prowlarr, they automatically sync to Sonarr, Radarr, Lidarr, and other *arr apps. This centralized management saves time and ensures consistency.

Alternative: Manual indexers

  • Go to Settings → Indexers → Add (+)
  • Add trackers/usenet indexers individually

4. Set Root Folder

Define where Sonarr should store TV shows:

  1. Navigate to Settings → Media Management
  2. Click Root Folders
  3. Click Add Root Folder
  4. Enter path (e.g., /home/username/Media/TV)
  5. Click OK

Recommended structure:

  • Standard instance: /home/username/Media/TV
  • 4K instance: /home/username/Media/TV-4K

5. Quality Profiles & Upgrades

Configure quality preferences and automatic upgrades:

  1. Navigate to Settings → Profiles
  2. Edit existing profile or create new one
  3. Configure:
    • Upgrade Until: Maximum quality (e.g., Bluray-1080p)
    • Upgrades Allowed: ✓ Enabled
    • Cutoff: When to stop upgrading
  4. Click Save

Example workflow:

  • Episode airs → Download HDTV 720p
  • Web release available → Upgrade to WEBDL 1080p
  • Blu-ray released → Upgrade to Bluray 1080p (cutoff reached, stop upgrading)

Smart Upgrading Strategy

Set upgrade cutoffs to prevent endless upgrading. For example, setting cutoff to Bluray-1080p prevents automatic upgrades to massive 4K remuxes unless you specifically want them. This saves bandwidth and storage space.


File Naming Configuration

Recommended settings for consistent library organization:

Navigate to Settings → Media Management → File Management:

Setting
Rename Episodes
Recommended Configuration
✓ Enabled - Ensures consistent naming across your library
Setting
Replace Illegal Characters
Recommended Configuration
✓ Enabled - Removes filesystem-incompatible characters
Setting
Standard Episode Format
Recommended Configuration
{Series Title} - S{season:00}E{episode:00} - {Episode Title} {Quality Full}
Setting
Daily Episode Format
Recommended Configuration
{Series Title} - {Air-Date} - {Episode Title} {Quality Full}
Setting
Anime Episode Format
Recommended Configuration
{Series Title} - S{season:00}E{episode:00} - {absolute:000} - {Episode Title} {Quality Full}
Setting
Series Folder Format
Recommended Configuration
{Series Title} ({Series Year})

Example output:

  • Standard: The Office - S02E05 - Halloween WEBDL-1080p.mkv
  • Daily: The Daily Show - 2024-12-24 - Holiday Special HDTV-720p.mkv
  • Anime: Attack on Titan - S01E13 - 013 - Primal Desire Bluray-1080p.mkv

Adding TV Series

  1. Click Series in the main navigation
  2. Click Add New button
  3. Search for your show by name
  4. Select the series from search results
  5. Configure options:
    • Root Folder: Where to save the show
    • Quality Profile: Desired quality settings
    • Monitor: Which episodes to track (see below)
    • Series Type: Standard, Daily, or Anime
  6. Click Add Series

Monitoring Options

Monitoring Option
All Episodes
Behavior
Monitor and download all episodes (past and future) - ideal for completing a full series
Monitoring Option
Future Episodes
Behavior
Only monitor new episodes from now on - perfect for ongoing shows you're caught up on
Monitoring Option
Missing Episodes
Behavior
Download missing episodes from existing seasons - useful for filling gaps
Monitoring Option
Existing Episodes
Behavior
Don't search for old episodes - monitors only what you already have
Monitoring Option
First Season
Behavior
Only monitor season 1 - great for testing new shows
Monitoring Option
Latest Season
Behavior
Only monitor the most recent season - conserve bandwidth on long-running shows

Smart Monitoring

Use Future Episodes for ongoing shows you’re already caught up on to avoid re-downloading existing episodes. For new shows or filling gaps, use Missing Episodes or All Episodes.


Service Management

Sonarr runs as a systemd service for reliability and automatic startup.

Service Commands

Command
systemctl status sonarr@username
Description
Check service status and health
Command
systemctl restart sonarr@username
Description
Restart the service
Command
systemctl stop sonarr@username
Description
Stop the service
Command
systemctl start sonarr@username
Description
Start the service
Command
journalctl -u sonarr@username -f
Description
View live logs (follow mode)
Command
journalctl -u sonarr@username --since today
Description
View logs from today

4K instance commands:

Replace sonarr with sonarr4k in all commands above:

systemctl status sonarr4k@username systemctl restart sonarr4k@username journalctl -u sonarr4k@username -f

Auto-Start on Boot

QuickBox automatically enables Sonarr to start on boot. You don’t need to run systemctl enable manually unless you’ve previously disabled it.


Troubleshooting

Sonarr Won’t Start

Check These First

  • Check service logs: journalctl -u sonarr@username -f
  • Verify port availability: grep -E '<Port>' ~/.config/Sonarr/config.xml
  • Check for database corruption
  • Ensure config directory permissions are correct

Solutions

  • Restart the service: systemctl restart sonarr@username
  • Fix permissions: qb fix permissions -u username
  • Restore database backup if corrupted
  • Check for conflicting port usage with other services

View detailed logs:

journalctl -u sonarr@username --since "10 minutes ago" --no-pager

Downloads Not Appearing

Common Issues

  • No releases found in manual search
  • Episodes not automatically downloading
  • Download client connection errors (qBittorrent, Deluge, etc.)
  • Series shows as monitored but nothing happens

How to Fix

  • Verify indexers: Settings → Indexers → Test or check Prowlarr
  • Test download client: Settings → Download Clients → Test
  • Ensure series/episodes are monitored (blue icons on series page)
  • Try manual search: Click episode → Manual Search icon
  • Check quality profile cutoffs haven't been reached

Permission Issues

If Sonarr can’t access files or directories:

# Fix all user permissions qb fix permissions -u username # Restart Sonarr systemctl restart sonarr@username # Verify ownership ls -la ~/.config/Sonarr/

Common Permission Problems

Permission issues often occur after manually moving files or changing directory ownership. The qb fix permissions command resets ownership recursively for all user directories.

Database Corruption

Symptoms

  • Sonarr won't start with database errors in logs
  • Series or episodes disappearing randomly
  • Settings not saving properly
  • Constant crashes or unexpected behavior

Recovery Steps

  • Stop service: systemctl stop sonarr@username
  • Backup current DB: cp ~/.config/Sonarr/sonarr.db ~/.config/Sonarr/sonarr.db.corrupt
  • Restore from backup if available
  • Or reinstall: qb reinstall sonarr -u username (preserves DB)
  • Last resort: Delete DB and reconfigure from scratch

Check database integrity:

sqlite3 ~/.config/Sonarr/sonarr.db "PRAGMA integrity_check;"

Indexer Rate Limiting

If you’re getting rate limit errors from indexers:

  1. Reduce RSS sync interval: Settings → Indexers → Options → RSS Sync Interval (increase to 30-60 minutes)
  2. Use Prowlarr for centralized rate limit management
  3. Remove duplicate or redundant indexers
  4. Consider premium/VIP indexer accounts for higher limits

Best Practices

Do

  • Use Prowlarr for centralized indexer management across all *arr apps
  • Set reasonable quality profiles—avoid unnecessary 4K downloads if you don't need them
  • Monitor only shows you actually want to prevent excessive bandwidth usage
  • Configure proper file naming (Settings → Media Management) for consistent library organization
  • Set up automatic backups of your Sonarr database (~/.config/Sonarr/sonarr.db)
  • Use download client categories (e.g., tv-sonarr) to separate Sonarr downloads
  • Set upgrade cutoffs (e.g., Bluray-1080p) to prevent endless quality chasing
  • Enable notifications (Discord, Telegram, etc.) to track downloads and failed grabs
  • Use separate 4K instance (--4k flag) for 4K content management

Don't

  • Don't monitor every episode of every show—be selective to save bandwidth and storage
  • Don't set upgrade cutoff too high (4K remuxes are 50-100GB+ and may not be necessary)
  • Don't use too many indexers—causes rate limits and excessive API hits
  • Don't download to system drive—use dedicated media storage (/home/username/Media/TV)
  • Don't ignore failed download warnings—investigate and resolve issues promptly
  • Don't mix standard and 4K content in same instance—use separate 4K instance
  • Don't disable authentication if Sonarr is accessible from the internet
  • Don't ignore database backups—corruption can happen and cause permanent data loss
  • Don't use Jackett if Prowlarr is available—Prowlarr is the modern replacement

Use Cases & Workflows

Automated TV Collection

Perfect for building and maintaining a complete TV library:

  • New series monitoring: Add shows and automatically download all past episodes
  • Weekly episode tracking: Catch new episodes within minutes of release
  • Quality upgrades: Automatically upgrade from HDTV → WEBDL → Bluray
  • Library organization: Consistent naming and folder structure across thousands of episodes

Multiple Quality Tiers

Manage different quality standards with separate instances:

Quality TierConfiguration
Standard HD
Main Sonarr instance with 720p/1080p profiles for general viewing
4K/UHD
4K instance (--4k flag) with separate root folder (/home/username/Media/TV-4K)
Anime
Dedicated instance with anime naming format and specific indexers

Integration with Media Servers

Sonarr works seamlessly with:

  • Plex: Automatic library updates when new episodes are imported
  • Jellyfin: Native integration for metadata and library scanning
  • Emby: Real-time notifications when new content is added

Request Management Workflow

Combine with request management systems:

  1. User requests show in Overseerr or Jellyseerr
  2. Request automatically adds series to Sonarr
  3. Sonarr searches indexers and sends to download client
  4. Media server notifies user when available
  5. Sonarr continues monitoring for future episodes

Sonarr integrates seamlessly with the QuickBox ecosystem:

🎬

Media Management

📺

Media Servers

🎫

Request Management

📝

Subtitles


Additional Resources


Join the Community

Media server operators sharing configs, getting support, and shaping the future of QuickBox Pro.

Dedicated Support
Feature Previews
Community Configs
Active Discussions
Join Discord Server