How to import into Sonarr using SFTP from remote host

Sonarr version (exact version): 2.0.0.5338
Mono version (if Sonarr is not running on Windows): 5.20.1.34
OS: Docker on Ubuntu (linuxserver/sonarr)
Debug logs: n/a
Description of issue: Working fine, question regarding importing

I tried to search for this, but nothing really comes up with this use case (at least not that I can find).

I have recently started working on getting Sonarr working on my system and I had a question regarding how to import manually downloaded files if the Drone Factory part of v2 was being removed. I am coming from SickChill and I just dump the files into a TVDown folder on my NAS (homebuilt FreeNAS system). Without Drone Factory, I am not sure how to accomplish this.

A little background. I have Sonarr working great via docker on my Ubuntu server, and once I figured out some permissions issues, it is working perfectly. With SickChill I would SFTP from my Seedbox back to a folder on my NAS, and then (due to the very issue that Drone Factory was having from the sounds of it and not locking the files) I would manually copy them into the TVDown folder where SickChill will grab them, copy to the correct ShowName/Season folder and rename them based on what I have specified. I would then at a later time manually remove the files from the TVDown folder.

The adding of torrents to Deluge is automated in both Sonarr and SickChill, but I manually do the SFTP as I tend to just download them all at once overnight. SFTP is used to at least attempt to hide what I am downloading.

So how do I go about doing this with Sonarr without using Drone Factory? I want to dump into a folder all files and then just have Sonarr do its thing and move and rename. I have no issues with needing to remove the temporary files afterwards. Due to certain conditions I can’t have it automatically just download the file as soon as it is done in Deluge at the remote location, it has to wait till darkness falls.

Any ideas?

You would either need to use remote path mapping to remap the path deluge reports to a local path or use the API to tell Sonarr to import each download.

The remote path mapping approach is probably the best approach, but you need to make sure Sonarr doesn’t see files partially transferred so transfer to a location Sonarr doesn’t know about, then move (on the same drive/volume) to the remapped path and it’ll pick things up.

Okay, let me see if I understand correctly, this is different than what SickChill does (it uses the current method).

I have four machines involved in this: MachineA is my desktop that is running SFTP. ServerA is where Sonarr actually runs on. ServerB is my NAS. RemoteA is my seedbox at some non-local location.

ServerA has a mounted folder from ServerB named “Incoming” and a second mount named “TV”. Inside of the folder incomming is SonarrDown. MachineA downloads from RemoteA to a mounted shared L:\Incoming (manual process). Once everything is downloaded, I manually move all files I need copied into the NAS TV folders into SonarrDown. Since this is the same filesystem, it is very fast and should never cause any locking issues with partials (my way past the issue that Drone Factory would have with partials, SickChill had this exact same issue when I started using it).

So using Drone Factory this is easy as it just scans the folder on ServerB (NAS) that is mounted to ServerA (Sonarr), and then moves it to the the mounted folder on ServerB “TV\Series Name\Season”. There is some slight copy delay as those folders are two separate mount points, but it is very fast and shouldn’t cause any issues.

So, if I am understanding this I just need to make Remote Path say the Host is ServerB (the NAS), Remote path would be set to the location I need the files dropped into (in this case the TV mount point) and the localpath would be set to ServerB’s Incoming\SonarrDown folder? That kind of seems what Drone Factory is already doing.

To add complexity, I have two separate TV folders to balance space when I added drives to my NAS (FreeNas pools). So it would need to know that Show1 is on TV and Show2 is on TV2.

Hopefully that all makes sense.

Pretty much, but doesn’t rely on rescanning the folder often for changes, it uses the download client to tell when it’s done (a bit misleading in your scenario).

That won’t make a difference, Sonarr will import to the correct series folder.

Okay, makes sense I guess. Do I need something to tell Sonarr that the client has finished downloading since there is nothing that is talking to it directly? I probably need something I can cron that would tell Sonarr to import whatever is in the folder.

Seems added complexity when everything is handled remotely and only relies on Sonarr to grab and index the shows, not handle everything from A to Z.

How does the torrent end up in the client? If Sonarr is sending it, it’s already checking if it’s finished, if not then you’ll need a client in Sonarr for Completed Download Handling to work.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.