Empty _UNPACK_ folders being left in the TV folder

I have sonarr, SAB and deluge running on an UNraid server as docker, everything seems to be working and TV episodes are being snatched and downloaded, however, i am finding lots of empty UNPACK folders in the TV folder pertaining to each episode downloaded, it looks like sonarr has renamed the episode and moved it to its appropriate series/season folder in the TV folder but these annoying empty shells are being left behind in the TV folder…is there a setting i have wrong somewhere ?

Those should be cleaned up automatically, is there anything in debug logs that show it not being deleted?

Does Sonarr have write access to the folders to delete them? The fact that they are _UNPACK_ leads me to believe SAB isn’t able to rename them, so there is something blocking the rename/deletion.

Thanks for the reply. SAB seems to be doing its job in that on the SAB GUI i can see the episodes downloaded and they seem to have extracted without any errors, looking at the TV folder though there are lots of unpack folders that are empty, it looks as though sonarr has downloaded two or more different releases for the same episodes in some cases, im thinking that sonarr is seeing them as failed and then starts to download the next or that its going through a quality hierarchy. When CP downloads films via SAB i do not have this problem, films are renamed and put in the library, i have attached the log and there are errors in there but i cant make much sense of them. I have attached the log for your perusal for which i will be eternally grateful if you can see where i am going wrong. This board wont let me upload a txt file so i have put it on my google drive HERE

System.IO.FileNotFoundException: File doesn't exist: /mnt/user/tv/Game of Thrones S05E01 720p HDTV x264-KILLERS is there a folder with that path (the message is wrong and should say folder, not file).

I take it /mnt/user/tv is where SAB drops files?
Do the folders actually start with _Unpack_ (perhaps different casing)?

You should also run mono with the --debug switch, the current logs don’t show the line numbers and in the event of an error we need to troubleshoot there isn’t much we can do with them.

No there is no folder with that name in /mnt/user/tv, however the files for the said folder are renamed and moved into /mnt/user/tv/game of thrones/season5 as denoted by the yellow arrow in the picture below, the black arrow shows how the empty folders are appearing in /mnt/user/tv. Bare in mind that sonarr is downloading episodes from usenet and some from torrents using deluge as the download client. i turned on the debug logging last night and have uploaded it to my google drive [HERE][1]

[1]: https://drive.google.com/file/d/0Bzt5_DUHHZY0WmtYb25yaHRSYk0/view?usp=sharing/“HERE” not sure what you mean by the ‘mono’ part though.

Do let me know if i can furnish you with any other info and thanks for your time !

The fact that every folder starts with _UNPACK_ leads me to believe that SAB is failing to rename the folder (it should remove the _UNPACK_ once the files are extracted), solving that may solve Soanrr’s ability to delete them.

The fact that you have unsorted files and sorted files in the same folder (/mnt/user/tv) is a problem (or could be), you should get SAB to move them to a completely separate folder (/mnt/user/unsorted tv for example) and Sonarr will move them. Not only will this keep the sorted series cleaner it will ensure that something doesn’t accidentally treat the sorted files as unsorted or you don’t accidentally delete sorted files trying to clean things up.

https://github.com/Sonarr/Sonarr/wiki/Installation#other specifically:

###Run Nzbdrone with mono (debugging enabled)###

`mono --debug NzbDrone.exe

Notice this the other day, I wonder if these are files that failed unpacking and SAB tried to download again. I think this was the circumstance that happened around mine. I cleared it out and have not seen any for a bout a week.