NzbDrone trying to move files before SABnzbd finishes unpacking

NZBget unpacks in the temp directory before moving the download to the category directory.

Is the move from the temporary folder to the drone factory folder to another disk? If so would it be possible to have them on the same disk? That would mean instant transfers versus copying the whole file to another disk.

Drone does a number of checks to make sure the file isn’t in use, to prevent this as well.

I have the same issue with NZBget. My setup is all downloading is done on my NAS and NzbDrone is on my PC. NZBget downloads and unpacks the files in Incomplete folder then moves the file to my watched folder, TV (all on one drive). I think it is moving the file before the transfer is complete to TV. The file always seems to be about 3/4 the original size. I think it happens because my NAS gets slowed down from other downloads that it does not complete the transfer in time of the NzbDrone 1 minute scans. Is there any way to adjust how often the watch folder is scanned? I really wouldn’t like downloading to my PC then having it transferred to the NAS.

The temporary directory, and the Watched directory are on the same drive. I believe that since I am using linux which does not do a simple move it performs a copy job, nzbdrone is grabbing the incomplete file before its fully copied over and moving this file as the complete episode.

Any news on this? It’s getting frustrating only getting half of the episodes and manually having to grab the full file and switch it out. I think my NAS is too slow in unpacking or moving it all to the watch folder. I believe it takes longer then a minute and thats what NZBDrone is set to scan at. I think it starts to pull the file before the transfer is complete. NZBDrone is on a different machine from the downloads. Don’t think NZBDrone works on Qnap.

Drone will skip folders that start with UNPACK do you have that option enabled in SAB?

Under switches its: “Enable folder rename”

I’m using NZBGet since it runs better on my NAS. How it’s setup is it has a working folder called “Incomplete” and does the downloading and unpacking in that folder. Once that is done it moves the whole folder to “TV” where NZBDrone scans. The label of the unpack folder is “_unpack”. Do you think it’s an issue of not moving in time when it scans or something to do with the unpacking?

It would be the move time, on the same drive that should be instant (at least that’s how it is on Windows).

Drone does check if the folder/files within it as in use, but that’s likely not as reliable on Linux as it is on Windows.

I’ll have to take a look.

Speaking of same drives, I checked and the downloads folder is actually on drive 1 and my TV Shows are on drive 2 in my NAS. I switched it so that both are on the same drive. It seemed to be working but a couple shows still got moved only half complete. I noticed it seems to be more with HD files, probably since the size of them takes longer.

Is there any way to increase the Drone factory scan time to something more then a minute? It seems like every minute is a little overkill, keeps my hard drives constantly spun up also. It’s frustrating to have to check every file that is downloaded to make sure it’s complete.

Latest dev release allows you to change it, or disable it completely: https://trello.com/c/eaLpkynV/526-disable-drone-factory-scan-and-allow-it-to-be-called-from-a-post-processing-script

Great, thanks a lot.

Thanks, markus, for implementing this feature! Using the example on the wiki and it is working great. My drive is no longer constantly spinning!

Hi,

I’m having this problem as well with the drone factory moving the file while it’s still in the _unpack stage. I use Nzbget to download and it creates an _unpack folder in the destination folder where the drone factory is looking. However the drone factory is picking up the file while it’s still in the _unpack folder. I saw the new featuare of disabling the drone and then using a script to kick it off, but I’m unsure how to make the script that will work properly. Any help would be appreciated as most of my downloaded files currently are unusable because of this issue.

Thanks,
Doug

@dougnliz https://github.com/NzbDrone/NzbDrone/wiki/Disable-Drone-Factory-Folder-Scanning examples for powershell (Windows) and curl (Linux) are there. To my knowledge nzbget doesn’t use an unpack folder in the final destination, it unpacks it elsewhere and then moves it, which is the reason why there are issues.

@markus101 Thanks for the help! I had seen the example but I didn’t think it was as simple as just pasting that into a shell script. However, it really is that simple. The scripts works great and I now have nzbget calling it during the postprocess step.

I watched one of my shows process and it definitely is putting the _unpack inside the destination folder. So for example if I downloaded Justified.S01E01. The download and par check happens in the intermediate folder, Then it creates /dst/tv/Justified.S01E01/_unpack/ and does the unpack. Once the unpack is complete the final file is in /dst/tv/Justified.S01E01/

Thanks so much for the help! This is awesome.

Doug

Ahhh, they hide it inside the folder, that’s good to know, SAB would do _unpack_Justified.S01E01 so this wasn’t immediately obvious.

Thanks for the Complete Download Handling functionality it totally resolves this issue. Great work!

A post was split to a new topic: UNPACK directories and Sonarr Importing