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