Cannot create final folder

Report & discuss bugs found in SABnzbd
Forum rules
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.
Post Reply
PiERiT
Newbie
Newbie
Posts: 32
Joined: July 28th, 2010, 2:53 am

Cannot create final folder

Post by PiERiT »

Some completed downloads (not all) are failing to extract to my NAS with the following error. I thought this was maybe due to the 3.0.1 bug where NZB names weren't being parsed as strings, causing issues with names containing numbers, but the problem is persisting in 3.0.2. Never happened in 2.X.X. Any ideas?

Code: Select all

a few seconds ago Cannot create final folder \\?\UNC\Matt-NAS\Share\1109-UhjiRAdwaYamRZNV4Z95
ERROR a few seconds ago Failed making (\\Matt-NAS\Share)
Traceback (most recent call last):
  File "sabnzbd\filesystem.py", line 560, in create_all_dirs
  File "os.py", line 213, in makedirs
  File "os.py", line 213, in makedirs
  File "os.py", line 223, in makedirs
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '\\\\?\\UNC\\'

User avatar
safihre
Administrator
Administrator
Posts: 3979
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Cannot create final folder

Post by safihre »

I tried to reproduce but couldn't.
Maybe you can enable +Debug logging in the status and Interface settings window and then after it happens again send me the whole log at [email protected].
I wonder why some jobs fail and some don't.
Do you maybe have specific folders setup in Categories?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate

PiERiT
Newbie
Newbie
Posts: 32
Joined: July 28th, 2010, 2:53 am

Re: Cannot create final folder

Post by PiERiT »

Sorry, yes, I am using categories. The one in this instance has the Folder/Path configured as:

\\Matt-NAS\Share*

The * is to have it put the files in that Share folder as opposed to a subfolder named after the NZB. If I remove the *, that fixes the issue. Is there another way to accomplish this? Let me know if you still want the debug logs, too.

User avatar
safihre
Administrator
Administrator
Posts: 3979
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Cannot create final folder

Post by safihre »

I can reproduce it now. Very strange.
It seems it fails because the directory already exsists. Seems like a python bug.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate

PiERiT
Newbie
Newbie
Posts: 32
Joined: July 28th, 2010, 2:53 am

Re: Cannot create final folder

Post by PiERiT »

Is there another way to have jobs not create extra folders? Maybe something in the Sorting options?

User avatar
safihre
Administrator
Administrator
Posts: 3979
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Cannot create final folder

Post by safihre »

Hmm, not really at this point. I need to make a workaround in the code.

For reference, the bug at Python: https://bugs.python.org/issue41705
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate

User avatar
safihre
Administrator
Administrator
Posts: 3979
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Cannot create final folder

Post by safihre »

I updated the code, in a few minutes you should be able to download a patched release here:
https://github.com/sabnzbd/sabbuild/rel ... est-build1
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate

PiERiT
Newbie
Newbie
Posts: 32
Joined: July 28th, 2010, 2:53 am

Re: Cannot create final folder

Post by PiERiT »

That worked but direct unpack is very slow now. It only unpacked 31% of an 11GB file by the time the downloaded completed in 3m45s. In 2.X.X it would have unpacked all of it.

Is that some side effect of the workaround you had to make? That's fine if so and I'll figure out which problem is more bothersome and go with the lesser one. I just thought I'd mention it in case it shouldn't be occurring.

I appreciate your help. Thanks.

User avatar
safihre
Administrator
Administrator
Posts: 3979
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Cannot create final folder

Post by safihre »

Direct Unpack didn't change between 2.3.9 and now.
I am pretty sure it's the download itself: either the uploader used compression (non-regular uploaders usually do this) so unpacking takes much more CPU and memory, or for example a middle RAR-file is missing so it has to pause direct unpack until that one is downloaded.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate

PiERiT
Newbie
Newbie
Posts: 32
Joined: July 28th, 2010, 2:53 am

Re: Cannot create final folder

Post by PiERiT »

Hmm ok, I must be misremembering how long this particular download took to extract in older versions.

Thanks again.

PiERiT
Newbie
Newbie
Posts: 32
Joined: July 28th, 2010, 2:53 am

Re: Cannot create final folder

Post by PiERiT »

Was this workaround not included in 3.0.2? I am having the same issue again, or a very similar one. Are you able to re-host the hotfix version for me please? The link from Sep 3rd 404's.

Code: Select all

ERROR a few seconds ago Failed making (\\Matt-NAS\Share)
Traceback (most recent call last):
  File "sabnzbd\filesystem.py", line 560, in create_all_dirs
  File "os.py", line 213, in makedirs
  File "os.py", line 213, in makedirs
  File "os.py", line 223, in makedirs
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '\\\\?\\UNC\\'

User avatar
sander
Release Testers
Release Testers
Posts: 7240
Joined: January 22nd, 2008, 2:22 pm

Re: Cannot create final folder

Post by sander »

PiERiT wrote:
September 13th, 2020, 3:24 pm
Was this workaround not included in 3.0.2? I am having the same issue again, or a very similar one. Are you able to re-host the hotfix version for me please? The link from Sep 3rd 404's.

Code: Select all

ERROR a few seconds ago Failed making (\\Matt-NAS\Share)
Traceback (most recent call last):
  File "sabnzbd\filesystem.py", line 560, in create_all_dirs
  File "os.py", line 213, in makedirs
  File "os.py", line 213, in makedirs
  File "os.py", line 223, in makedirs
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '\\\\?\\UNC\\'
I think you need SABnzbd 3.1.0 Beta 2. See https://sabnzbd.org/downloads#

PiERiT
Newbie
Newbie
Posts: 32
Joined: July 28th, 2010, 2:53 am

Re: Cannot create final folder

Post by PiERiT »

sander wrote:
September 13th, 2020, 4:15 pm
PiERiT wrote:
September 13th, 2020, 3:24 pm
Was this workaround not included in 3.0.2? I am having the same issue again, or a very similar one. Are you able to re-host the hotfix version for me please? The link from Sep 3rd 404's.

Code: Select all

ERROR a few seconds ago Failed making (\\Matt-NAS\Share)
Traceback (most recent call last):
  File "sabnzbd\filesystem.py", line 560, in create_all_dirs
  File "os.py", line 213, in makedirs
  File "os.py", line 213, in makedirs
  File "os.py", line 223, in makedirs
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '\\\\?\\UNC\\'
I think you need SABnzbd 3.1.0 Beta 2. See https://sabnzbd.org/downloads#
Perfect. Thank you.

Post Reply