| title | Sonarr |
|---|---|
| description | A guide to installing Sonarr in TrueNAS Scale as well as docker via compose |
| published | true |
| date | 2025-07-09 14:47:09 UTC |
| tags | |
| editor | markdown |
| dateCreated | 2024-02-23 13:32:51 UTC |
Sonarr is a PVR for Usenet and BitTorrent users. It monitors RSS feeds for new episodes, grabs, sorts and renames them, then upgrades quality when a better release appears.
🚀 Quick‑Start Checklist
- Deploy container (Docker Compose or TrueNAS chart)
- Create
/media/tvroot folder in Sonarr (make sure it’s Monitored → ✅) - Add qBittorrent as Download Client
- Add Indexers via Prowlarr so Sonarr can actually find releases
- (Optional) Import Recyclarr profiles & advanced cleanup
services:
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
environment:
- PUID=568
- PGID=568
- TZ=America/New_York
volumes:
- /mnt/tank/configs/sonarr:/config
- /mnt/tank/media:/media
ports:
- 8989:8989
restart: unless-stopped- PUID / PGID – media‑owner UID/GID (TrueNAS SCALE default 568:568).
- Volumes – configs at
/mnt/tank/configs/sonarr, media at/mnt/tank/media. 📌 See the Folder‑Structure guide.
| Step | Action |
|---|---|
| 1 | Apps → Discover Apps → Sonarr → Install |
| 2 | Port Number → 8989 |
| 3 | Sonarr Config Storage → Host Path → /mnt/tank/configs/sonarr |
| 4 | Additional Storage → Host Path → mount dataset /mnt/tank/media ➜ /media |
| 5 | Click Save → Deploy |
- Settings → Media Management → Add Root Folder
- Choose /media/tv and ensure the switch is set to Monitored ✅
If it’s Unmonitored, Sonarr will ignore new episodes! {.is-info}
- Settings → Download Client → ➕ → qBittorrent
- Fill the form:
| Field | Example |
|---|---|
| Host | 10.251.0.244 |
| Port | 8080 |
| Username | admin |
| Password | •••••••• |
| Category | tv-sonarr |
| Recent/Older Priority | Last |
| Remove Completed | ✅ |
- Install Prowlarr and connect it to Sonarr (
Settings → Apps → +). - Add indexers in Prowlarr
- Click Test → Save — Sonarr now inherits all indexers automatically.
Warning – For Recyclarr users. Enable Show Advanced first. {.is-warning}
| Field | Recommended |
|---|---|
| Rename Episodes | True |
| Episode Formats | TRaSH template strings |
| Series Folder Format | {Series TitleYear} [imdbid-{ImdbId}] |
| Propers & Repacks | Do Not Prefer |
| Set Permissions | True (chmod 770) |
📑 Common Tags / Custom Formats (cheat‑sheet)
| Tag | Purpose |
|---|---|
| x265 / HEVC | Prefer modern video codec |
| HDR10 / DV | Force HDR releases |
| Atmos | Require Dolby Atmos audio |
| Anime | Anime‑specific profiles |
Copy these into Settings → Profiles → Custom Formats.
Delete default profiles → keep Recyclarr‑generated profiles → set Jellyseerr default.
Enable Kodi/Emby metadata.
Backups: /media, Interval = 1 day, Retention = 7.
🔄 Restoring a Backup
| Step | Action |
|---|---|
| 1 | Stop the Sonarr container / chart |
| 2 | Copy the latest *.zip from /media/Backups to your config folder (/mnt/tank/configs/sonarr) |
| 3 | In Sonarr: System → Backup → Restore → choose the file you just copied |
| 4 | Restart Sonarr when prompted and verify your settings/series are back |
Check Health tab first! Sonarr will flag missing root paths, import errors and indexer failures in System → Health. {.is-info}
Sonarr cannot see media files
ls -lah /mnt/tank/media/tv
chgrp -R root:apps /mnt/tank/media/tvPermission denied
chmod -R 770 /mnt/tank/media/tvDownloads stay in qBittorrent
- Verify Download Client Path Mapping matches container paths.
- Confirm Sonarr can access the completed-downloads directory.




