Multiple Errors; complete_dir directory: / Cannot create directory

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
r3mi
Newbie
Newbie
Posts: 6
Joined: August 11th, 2022, 3:55 am

Multiple Errors; complete_dir directory: / Cannot create directory

Post by r3mi »

Hi,

On my mac (Mac Mini 2012 with MacOS 10.15.7) I get multiple warnings when using SABnzbd 3.6.0.
Downgrading to 3.5.3 fixes the problem.
I have been using SABnzbd with this setup, Mac connected to Synology NAS using Automount, for years and never been a problem.
Downloads also usually complete fine.

Image

Please let me know if I need to upload more info.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Multiple Errors; complete_dir directory: / Cannot create directory

Post by sander »

Image is invisble.

Post the errors as text on https://pastebin.com/, and post the URL here ... with spaces in it (as you're a new user; otherwise the anti-spam will kick in)

And/or post the image on https://postimages.org/, and post the URL here ... with spaces in it (as you're a new user; otherwise the anti-spam will kick in)
r3mi
Newbie
Newbie
Posts: 6
Joined: August 11th, 2022, 3:55 am

Re: Multiple Errors; complete_dir directory: / Cannot create directory

Post by r3mi »

right click on the image and then open in tab makes it visible.

I copied them over, I edited out my username:
https:// pastebin .com /M8HxNbZi
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Multiple Errors; complete_dir directory: / Cannot create directory

Post by sander »

Found image via Chrome's "Inspect"

https://imgur.com/a/1lsg5i9

The logging:

Code: Select all

complete_dir directory: /Users/Downloads/Complete error accessing
Cannot create directory /Users/Downloads/Complete
Failed making (/Users/Downloads/Complete)

Traceback (most recent call last):
File "sabnzbd/filesystem.py", line 719, in create all dirs
FileExistsError: [Errno 17] File exists: 'User/Plex'
Is this the real logging? Or did you leave out stuff, like file or directory names.

If it's the real logging
my guess would be: problem with user rights on filesystem. And you mentioned "NAS", so that is a flag too.
I'm also surprsed that those base directories do not exist, and that SAB tries to write to that base. Do oyou have series/rss things that do funny stuff?


More in depth:

Code: Select all

complete_dir directory: /Users/Downloads/Complete error accessing
Cannot create directory /Users/Downloads/Complete
Failed making (/Users/Downloads/Complete)
That "Cannot create directory" is from this code:

Code: Select all

        if not os.path.exists(my_dir):
            if not create_all_dirs(my_dir, apply_permissions):
                msg = T("Cannot create directory %s") % clip_path(my_dir)
                logging.error(msg)
                return False, my_dir, msg

So: my_dir /Users/Downloads/Complete does not exist, thus SAB tries to create it, which results in an error. First guess would be: a filesystem rights problem. Or parent path does not exist at all.
r3mi
Newbie
Newbie
Posts: 6
Joined: August 11th, 2022, 3:55 am

Re: Multiple Errors; complete_dir directory: / Cannot create directory

Post by r3mi »

Hi Sander,

Thank you for the response.

I left out some of the folder names as that has my real name (computer user).

But the directories do exist, as they are always being used by Plex and other services.
That's why it's so weird, the error is saying it can't create the dir while it already exists...

/Users/MYNAME/Plex/Downloads is the dir, fully recognized by Plex, Sonarr, Radarr and SABnzbd.
Just "randomly" there is that error.

Is there any screenshot or info you need to see how my setup is set?
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Multiple Errors; complete_dir directory: / Cannot create directory

Post by sander »

/Users/MYNAME/Plex/Downloads is the dir, fully recognized by Plex, Sonarr, Radarr and SABnzbd.
Just "randomly" there is that error.
Randomly? So sometimes it works, sometimes it doesn't? Against your NAS? Then I would say intermittent disk access and/or network problems. Intermittent problems are the nicest! ;)

BTW: You could consider running SABnzbd on your NAS.
Is there any screenshot or info you need to see how my setup is set?
No, thanks. I think with the above information, you should be analyze further yourself. It is very probably a disk/network problem, outside SAB.
r3mi
Newbie
Newbie
Posts: 6
Joined: August 11th, 2022, 3:55 am

Re: Multiple Errors; complete_dir directory: / Cannot create directory

Post by r3mi »

Hi Sander,

Yes intermittent is the best :P

I meant that I usually wake up to this error when after "videos" downloaded that night.
Unfortunately my NAS is not fast enough to install SABnzbd, need to upgrade that one day :)

My network is fine tho, the problem is only with SABnzbd 3.6.0.
3.5.3 or earlier had no problems.

I now installed 3.6.1RC1, maybe that solves it again.
r3mi
Newbie
Newbie
Posts: 6
Joined: August 11th, 2022, 3:55 am

Re: Multiple Errors; complete_dir directory: / Cannot create directory

Post by r3mi »

I've also changed my folders to absolute folder paths.

One thing I'll try later is changing the automount user to sabuser as described in:
viewtopic.php?t=18549
thmceleste
Newbie
Newbie
Posts: 3
Joined: July 31st, 2022, 5:49 am

Re: Multiple Errors; complete_dir directory: / Cannot create directory

Post by thmceleste »

hi,

i have exactly the same problem when i updated to sabnzb 3.6.0.

The files are downloaded. but when it is going to unrar the files it can not create the directionary.
so if i let sabnzb only download there is no issue,

i get exact the same issue as this in line 719

i hope you have an solution or how can i install 1 version back?

thanks in advance for your help
r3mi
Newbie
Newbie
Posts: 6
Joined: August 11th, 2022, 3:55 am

Re: Multiple Errors; complete_dir directory: / Cannot create directory

Post by r3mi »

thmceleste wrote: August 18th, 2022, 3:05 pm hi,

i have exactly the same problem when i updated to sabnzb 3.6.0.

The files are downloaded. but when it is going to unrar the files it can not create the directionary.
so if i let sabnzb only download there is no issue,

i get exact the same issue as this in line 719

i hope you have an solution or how can i install 1 version back?

thanks in advance for your help
You can go here and download an older version:

https://sabnzbd.org/download-stats
thmceleste
Newbie
Newbie
Posts: 3
Joined: July 31st, 2022, 5:49 am

Re: Multiple Errors; complete_dir directory: / Cannot create directory

Post by thmceleste »

Thanks R3mi, i followed the link and there is a new version and that one is working. for me resolved
Post Reply