I have a Windows Server 2016 with two drives.
While installing I try and set my folders to my second drive, in this case my Z: drive.
The Z: drive has two folders, Z:\complete and Z:\incomplete
When I switch the folders and try to apply the setting I receive the following error
The Completed Download Folder cannot be the same or a subfolder of the Temporary Download Folder
This error really makes no sense as neither statement in the error is true.
I have tried the default values and then editing the config file with the new locations but the server reverts to the original locations for the Temporary Download folder each time during startup.
I have also gone as far as changing my Downloads folder via the registry. This also does not work as it still shows the downloads folder at C:\Users\Administrator\Downloads.
Am I missing something that lets me me use C:\Users\Administrator and simply not Z:\ as the root for these folders?
Thanks for any input
Base Folder issue: "The Completed Download Folder cannot be the same or a subfolder of the Temporary Download Folder"
Forum rules
Help us help you:
Help us help you:
- Are you using the latest stable version of SABnzbd? Downloads page.
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
-
- Newbie
- Posts: 5
- Joined: November 29th, 2024, 6:19 pm
Re: Base Folder issue
Can you post a screenshot (like described on https://forums.sabnzbd.org/viewtopic.php?t=26810 )?
-
- Newbie
- Posts: 5
- Joined: November 29th, 2024, 6:19 pm
Re: Base Folder issue
imgur . com / a / BLJMT9h
Re: Base Folder issue
So https://imgur.com/a/BLJMT9h . Thanks.
Can you show a picture with both Incomplete/Temp and Complete in the screenshot?
It happens here https://github.com/sabnzbd/sabnzbd/blob ... #L430-L463 ... but I don't know why.
If you use C:\incomplete resp C:\complete ... is that accepted? Note: first make those directories!
If you use Z:\complete and Z:\incomplete (so: 'wrong' order): is that accepted by SABnzbd?
In other words: play with the directories so we can pinpoint / deduct better.
Can you show a picture with both Incomplete/Temp and Complete in the screenshot?
It happens here https://github.com/sabnzbd/sabnzbd/blob ... #L430-L463 ... but I don't know why.
If you use C:\incomplete resp C:\complete ... is that accepted? Note: first make those directories!
If you use Z:\complete and Z:\incomplete (so: 'wrong' order): is that accepted by SABnzbd?
In other words: play with the directories so we can pinpoint / deduct better.
-
- Newbie
- Posts: 5
- Joined: November 29th, 2024, 6:19 pm
Re: Base Folder issue: "The Completed Download Folder cannot be the same or a subfolder of the Temporary Download Folder
Nice catch there.
So here is everything I have tried now.
Place both folders directly on the c: drive...C:\complete and C:\incomplete...this works fine
Switch the two folders on the Z: drive...use Z:\incomplete for the completed folder and Z:\complete for incomplete folder...same error
Created random named folders on the Z: drive...same error
Create symbolic link in C:\arrs "mlink /H C:\arrs\complete Z:\complete" as complete pointing to Z:\complete while still using Z:\incomplete for the temp...same error
Needless to say....I am lost somewhere here
So here is everything I have tried now.
Place both folders directly on the c: drive...C:\complete and C:\incomplete...this works fine
Switch the two folders on the Z: drive...use Z:\incomplete for the completed folder and Z:\complete for incomplete folder...same error
Created random named folders on the Z: drive...same error
Create symbolic link in C:\arrs "mlink /H C:\arrs\complete Z:\complete" as complete pointing to Z:\complete while still using Z:\incomplete for the temp...same error
Needless to say....I am lost somewhere here
-
- Newbie
- Posts: 5
- Joined: November 29th, 2024, 6:19 pm
Re: Base Folder issue: "The Completed Download Folder cannot be the same or a subfolder of the Temporary Download Folder
OK, let me go through some setup changes here to see if this helps.
I am running a Windows 2016 server as a virtual server in UNRAID
Server is up to date with all drivers and guest-tools installed
Server has two drives, one for the OS, C: and one for applications Z:...both drives are qcow2
To try and figure this out I decided to add a passthrough USB drive to the server. I formatted it as exFAT and gave it a drive letter of Y:
I made the folders...
Y:\incomplete
Y:\complete
Y:\complete\movies
Y:\complete\shows
I changed the paths to correspond Y:\incomplete for the temp folder and Y:\complete for the completed folder and everything works.
So my real confusion now is why will the USB drive work but the second drive via QEMU will not?
I am going to try one more setup to see if there is a difference, I have a spare SSD drive in my server and am going to pass it through to the VM and see if by doing it this way will give me a different result.
Also am currently creating a 2012 R2 server with the same original setup of two qcow2 drives of C: and Z: to see if this is a server version issue.
Lets hope for something good here
I am running a Windows 2016 server as a virtual server in UNRAID
Server is up to date with all drivers and guest-tools installed
Server has two drives, one for the OS, C: and one for applications Z:...both drives are qcow2
To try and figure this out I decided to add a passthrough USB drive to the server. I formatted it as exFAT and gave it a drive letter of Y:
I made the folders...
Y:\incomplete
Y:\complete
Y:\complete\movies
Y:\complete\shows
I changed the paths to correspond Y:\incomplete for the temp folder and Y:\complete for the completed folder and everything works.
So my real confusion now is why will the USB drive work but the second drive via QEMU will not?
I am going to try one more setup to see if there is a difference, I have a spare SSD drive in my server and am going to pass it through to the VM and see if by doing it this way will give me a different result.
Also am currently creating a 2012 R2 server with the same original setup of two qcow2 drives of C: and Z: to see if this is a server version issue.
Lets hope for something good here
Re: Base Folder issue: "The Completed Download Folder cannot be the same or a subfolder of the Temporary Download Folder
Ah, a special setup! And Unraid, so normally I would shout #UnraidAlert ... but I cannot image unraid is causing this.
Do you have (or can you create) a github account?
If so, I can create a Windows binary that does extra logging in the relevant python code. My guess is one of the functions is truncating your directory names to the same (maybe an empty?) string.
SABnzbd only checks on the string, not on the type of filesystem, so I'm still surprised.
Do you have (or can you create) a github account?
If so, I can create a Windows binary that does extra logging in the relevant python code. My guess is one of the functions is truncating your directory names to the same (maybe an empty?) string.
SABnzbd only checks on the string, not on the type of filesystem, so I'm still surprised.
-
- Newbie
- Posts: 5
- Joined: November 29th, 2024, 6:19 pm
Re: Base Folder issue: "The Completed Download Folder cannot be the same or a subfolder of the Temporary Download Folder
So, am now thinking the is something on the UNRAID side. I am running 7.0.0-beta.4 right now.
I had the same problem with the 2012 R2 server with two qcow2 drives
The passthrough SSD drive works just fine just like the attached USB drive
Also I did throw up a BOHDI box with 2 qcow2 drives with the second drive mounted under /media and there is no problem there at all, but sadly for this server there is no way for me to use a Linux box.
As a last resort I setup a quick web server with php on the 2016 VM box and took a look at the the output of the folder names on the Z: drive with echo $_SERVER['DOCUMENT_ROOT'].
Instead of coming out as Z:\complete and Z:\incomplete as they should, they show as ////?//Z:\complete and ////?//Z:\incomplete
Think this has something to do with virtio as the same folders on the C: drive show up with the correct paths and the C: drive is passed through as a SATA drive to make the install easier.
I will now try and pass the Z: drive through as SATA and see where that leaves me.
Need to leave for a bit but will let you know where this ends.
Thanks again for all the help and all the work that goes into this project.
I had the same problem with the 2012 R2 server with two qcow2 drives
The passthrough SSD drive works just fine just like the attached USB drive
Also I did throw up a BOHDI box with 2 qcow2 drives with the second drive mounted under /media and there is no problem there at all, but sadly for this server there is no way for me to use a Linux box.
As a last resort I setup a quick web server with php on the 2016 VM box and took a look at the the output of the folder names on the Z: drive with echo $_SERVER['DOCUMENT_ROOT'].
Instead of coming out as Z:\complete and Z:\incomplete as they should, they show as ////?//Z:\complete and ////?//Z:\incomplete
Think this has something to do with virtio as the same folders on the C: drive show up with the correct paths and the C: drive is passed through as a SATA drive to make the install easier.
I will now try and pass the Z: drive through as SATA and see where that leaves me.
Need to leave for a bit but will let you know where this ends.
Thanks again for all the help and all the work that goes into this project.
Re: Base Folder issue: "The Completed Download Folder cannot be the same or a subfolder of the Temporary Download Folder
> Instead of coming out as Z:\complete and Z:\incomplete as they should, they show as ////?//Z:\complete and ////?//Z:\incomplete
I think that is some kind of (correct?) Windows speak
https://github.com/sabnzbd/sabnzbd/blob ... #L715-L719 says
path = path.replace("\\\\?\\UNC\\", "\\\\", 1).replace("\\\\?\\", "", 1)
I cannot simulate from fillesystem.same_directory() because I'm not on Windows, but maybe the below is helpful for you (if you have python3 on your system). Even with overruling the win32 checks.
I think that is some kind of (correct?) Windows speak
https://github.com/sabnzbd/sabnzbd/blob ... #L715-L719 says
path = path.replace("\\\\?\\UNC\\", "\\\\", 1).replace("\\\\?\\", "", 1)
I cannot simulate from fillesystem.same_directory() because I'm not on Windows, but maybe the below is helpful for you (if you have python3 on your system). Even with overruling the win32 checks.
Code: Select all
sander@zwarte:~/git/sabnzbd$ python3
Python 3.12.3 (main, Nov 6 2024, 18:32:19) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from sabnzbd import filesystem
>>> filesystem.same_directory("a", "b")
0
>>> filesystem.same_directory("abc", "abc")
1
>>> filesystem.same_directory("////?//Z:\\complete", "////?//Z:\\incomplete")
0