Page 1 of 1

".1" folder not removed

Posted: August 24th, 2017, 2:24 pm
by sebrk
So I use CouchPotato and Sonarr and this issue only seem to arise in combination with Sonarr. However I have searched Sonarr guide/FAQ for an answer and it/they seem to throw the blame over here so here I go:

After downloading with Sonarr my incomplete folder (downloading folder) always has the folder left. Unwanted files are removed and the wanted file is sent to the correct Complete/XXXYYY folder. However the enclosing folder is left. And is always named with the ending ".1".

Does anyone have a clue? I have a feeling it has to do with that ".1" ending.

Re: ".1" folder not removed

Posted: August 24th, 2017, 2:48 pm
by safihre
Can you switch logging to +Debug in the Status Window, wait until you have it again and then download the log.
There you can search why the name is like this.
Usually this happens when there are 2 downloads with the same name.

Re: ".1" folder not removed

Posted: August 26th, 2017, 6:15 am
by sebrk
Thanks I'll try it and get back here. Although I'm certain I don't have multiple downloads with the same name.

Re: ".1" folder not removed

Posted: August 28th, 2017, 3:21 am
by sebrk
OK here are my relevant logs I guess. As you can see stuff is downloaded to the /Incomplete folder with correct name then suddenly Sabnzbd creates this .1 folder but I get no indication as to why? I have replaced the name with XXX.YYY

Apparently I can't post my logs here as they are detected as links. And I can't link to a pastebin either. I'm a new user. That is a new one ;D

Anyway the logs doesn't really tell me why. It only states that it is/will create the .1 folder?

Re: ".1" folder not removed

Posted: August 28th, 2017, 3:34 am
by safihre
Usually because the folder without the .1 already exists.

Re: ".1" folder not removed

Posted: August 28th, 2017, 3:43 am
by sebrk
It does. It downloads to that original folder. Should Sabnzbd not delete whatever it creates in that case? Or simply work within that folder? How should I get rid of this? Interestingly Sabnzbd deletes everything within the .1 folder but leaves the folder itself.

Re: ".1" folder not removed

Posted: August 28th, 2017, 3:51 am
by safihre
You should be able to post links no (more than 3 post I think), maybe try and share the log again?

Re: ".1" folder not removed

Posted: August 28th, 2017, 4:01 am
by sebrk
safihre wrote: August 28th, 2017, 3:51 am You should be able to post links no (more than 3 post I think), maybe try and share the log again?
Should I post the complete log or am I risking something? Should I obfuscate filenames?

Re: ".1" folder not removed

Posted: August 28th, 2017, 4:22 am
by safihre
Just do it via pastebin :)
Passwords/usernames/api-keys will be removed from the log if you get it via Show logging.

Re: ".1" folder not removed

Posted: August 28th, 2017, 4:45 am
by sebrk
https://pastebin.com/HqKm8UA2

Interestingly it tries to remove the older three times at lines 1364. Guessing that fails which is sort of weird since it created the folder itself.

Re: ".1" folder not removed

Posted: August 28th, 2017, 5:00 am
by safihre
Ohhhh now I see.

You have set your unpack directory to the Temporary Directory via your Category settings.. Why did you do that? :o
Temporary Download directory should only be used for SABnzbd, you should *not* store stuff in there!

Re: ".1" folder not removed

Posted: August 28th, 2017, 5:21 am
by sebrk
safihre wrote: August 28th, 2017, 5:00 am Ohhhh now I see.

You have set your unpack directory to the Temporary Directory via your Category settings.. Why did you do that? :o
Temporary Download directory should only be used for SABnzbd, you should *not* store stuff in there!
Isn't "Incomplete" the definition of something temporary?

So should I have a temporary folder within the Incomplete which SAB operates in and and then let Sonarr and Couchpotato look in the Incomplete root folder?

Re: ".1" folder not removed

Posted: August 28th, 2017, 5:58 am
by safihre
No. Sonarr and Couchpotato use the API of SABnzbd to request the location of the download, it doesn't matter where it is.
The 'Temporary' and 'Complete' you should view from SABnznb's perspective, "folder where it downloads raw data to" and "folder where it puts the final result".

So for example you should have:
/Volumes/LaCie/Incomplete
And:
/Volumes/LaCie/Complete

Simple :)

Re: ".1" folder not removed

Posted: August 28th, 2017, 8:23 am
by sebrk
safihre wrote: August 28th, 2017, 5:58 am No. Sonarr and Couchpotato use the API of SABnzbd to request the location of the download, it doesn't matter where it is.
The 'Temporary' and 'Complete' you should view from SABnznb's perspective, "folder where it downloads raw data to" and "folder where it puts the final result".

So for example you should have:
/Volumes/LaCie/Incomplete
And:
/Volumes/LaCie/Complete

Simple :)
Actually it is a bit unclear still. Are you not talking about 3 folders here?

/Volumes/LaCie/Temp - Used when downloading
/Volumes/LaCie/Incomplete - Used after downloading, post processing etc.
/Volumes/LaCie/Complete - Ready to be consumed video

If not, I cannot see why I cannot download and unpack in the same folder and then let Sonarr/Couchpotato do their postprocessing there before moving the file?

Re: ".1" folder not removed

Posted: August 28th, 2017, 9:06 am
by safihre
From SABnzbd point there are only 2 folders:
/Volumes/LaCie/Incomplete - Used when downloading
/Volumes/LaCie/Complete - Used after downloading, post processing, ready to be consumed video
(notice the changes)

What happens after that is not SABnzbd's concern, where Sonarr/Couchpotato place it. There is no need for you to specify different paths in Categories for these apps, they will pick up the download from wherever it is and place it where you specify it in their respective configurations.

The point of the story is, do not in any way (Folder or Category settings) make the Complete and Incomplete folder IN Sabnzbd the same.