brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: a Sonarr remote path mapping is a plain find and replace on the path

Arr-suite
~/tips/tip-sonarr-remote-path-mapping-dumb-replace

Remote Path: /downloads/

Explains that a remote path mapping only swaps one path text for another, and when you can skip it.

The error about a path that Sonarr cannot see after a download finishes sends many people straight to Remote Path Mappings. The mapping is simpler than it looks, and often it is the wrong fix.

The Servarr wiki describes a remote path mapping as a dumb search and replace: when the download client reports a completed path, Sonarr looks for the remote value you entered and replaces it with the local value, for the specified host. It is used when the app and the download client are not on the same server, with merged setups such as mergerfs, or when the client reports the folder in a way Sonarr does not address.

A made-up example: the client says it finished in /downloads/tv/Show, but in the Sonarr container that same folder is /data/torrents/tv/Show.

Host:        qbittorrent.example
Remote Path: /downloads/
Local Path:  /data/torrents/

The wiki gives two useful pointers for debugging. If the error message about the bad path does not contain the replaced value, the mapping is not working as you expect, and the usual solution is to remove it and add it again.

The bigger point is in the wiki’s note: if Sonarr and the download client are both Docker containers, a remote path mapping is rarely needed. The wiki says it is generally only required when the client runs on Linux and the app on Windows or the other way round, with mixed Docker and native setups, or with a remote server. For two containers on the same Unraid box the usual cause is that they mount the same folder under different container paths. Give both containers the same path to the data, and the mapping becomes unnecessary. That also helps with hardlinks, which the wiki points to in its Docker guide.

The caveat: a mapping hides the real problem. It makes the import work, but if the paths differ because of two separate mounts, you may end up copying files instead of linking them. Fix the mounts first, and use a mapping only when the systems really are separate.

Further reading: Sonarr settings, Servarr wiki

Going deeper: Guide: link Prowlarr to Sonarr and Radarr once, and stop typing indexers into every app

More Arr-suite tips Scene S01E01-E02-E03 Minimum Seeders Add {edition-{Edition Tags}} to the Radarr movie format for director's cuts Sonarr: None, Local Release, UTC Release Date Prowlarr does not sync download clients, so add one only for searches inside Prowlarr All Arr-suite tips (56) All topics

Link