Page 1 of 1

Multiple Errors; complete_dir directory: / Cannot create directory

Posted: August 11th, 2022, 4:14 am
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.

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

Posted: August 11th, 2022, 5:26 am
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)

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

Posted: August 11th, 2022, 5:36 am
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

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

Posted: August 11th, 2022, 7:23 am
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.

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

Posted: August 11th, 2022, 7:36 am
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?

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

Posted: August 11th, 2022, 8:15 am
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.

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

Posted: August 11th, 2022, 8:30 am
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.

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

Posted: August 11th, 2022, 8:37 am
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

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

Posted: August 18th, 2022, 3:05 pm
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

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

Posted: August 18th, 2022, 3:12 pm
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

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

Posted: September 1st, 2022, 2:34 pm
by thmceleste
Thanks R3mi, i followed the link and there is a new version and that one is working. for me resolved