Page 1 of 1

PermissionError: [WinError 5] Access is denied

Posted: August 21st, 2020, 4:37 pm
by kbn0512
I'm getting this error after download

"PermissionError: [WinError 5] Access is denied: '\\\\?\\C:\\Incomplete'"

I don't have my download folders set to C: at all, so I'm not sure why it's trying to write there or how to fix. Any advice is appreciated. Thank you

Re: PermissionError: [WinError 5] Access is denied

Posted: August 22nd, 2020, 1:49 am
by sander
Can you give the surrounding info, for example from sabnzbd.log?

Re: PermissionError: [WinError 5] Access is denied

Posted: August 22nd, 2020, 2:11 am
by safihre
Somewhere it is set to that directory, it could be in Config Folders or in Config Categories.
But indeed, if you could share some logging it would help.

Re: PermissionError: [WinError 5] Access is denied

Posted: August 22nd, 2020, 7:34 am
by kbn0512
I'm trying to include logging info. I can't seem to get it into this form. I keep getting a message saying "New users are not allowed to post links"

I get this message even when I just copy/paste the text from the log file to this reply and try to Submit. Hey I can include emojis though ;D

Re: PermissionError: [WinError 5] Access is denied

Posted: August 22nd, 2020, 7:40 am
by sander
Can you express in emoji's then?

;-)

You can put the logging on pastebin, then put the URL with space in it here on the forum.

(It's all an anti-spam measure for new users)

Re: PermissionError: [WinError 5] Access is denied

Posted: August 22nd, 2020, 7:42 am
by kbn0512
Thanks @safihre, I did find in the Config Categories where the path is set to C:// Not sure if it's always been that way and it just stopped working or if the latest update possibly changed this folder. It looks like I'll need to either change this path or figure out how to allow SABnzbd to access this path.

EDIT: I was wrong about this ^^ I was looking at the default folder. I do not have folders set to the default path.

Re: PermissionError: [WinError 5] Access is denied

Posted: August 22nd, 2020, 7:45 am
by kbn0512
Thanks for the pastebin suggestion. It looks like that works

https://pastebin.com/TAQiCbLG

Re: PermissionError: [WinError 5] Access is denied

Posted: August 22nd, 2020, 7:51 am
by sander
I don't have my download folders set to C: at all,
Well, I really think you have set SABnzbd "Incomplete" to C:\Incomplete\ or C:\Incomplete\sonarr (or maybe-maybe sonarr is doing that ... I don't know Sonarr):

Code: Select all

2020-08-21 07:40:40,847::INFO::[filesystem:558] Creating directories: \\?\C:\Incomplete\sonarr\Big.Brother.US.S22E07.720p.HDTV.x264-aAF
2020-08-21 07:40:40,847::ERROR::[filesystem:585] Failed making (C:\Incomplete\sonarr\Big.Brother.US.S22E07.720p.HDTV.x264-aAF)
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
PermissionError: [WinError 5] Access is denied: '\\\\?\\C:\\Incomplete'
So check your Folder settings on http://127.0.0.1:8080/sabnzbd/config/folders/

Re: PermissionError: [WinError 5] Access is denied

Posted: August 22nd, 2020, 8:25 am
by kbn0512
In the System Folders section, I do see that that the Admin folder and Log folder are set to C:, but the Download folders are not.

Re: PermissionError: [WinError 5] Access is denied

Posted: August 22nd, 2020, 8:41 am
by kbn0512
On this page - http://127.0.0.1:38080/sabnzbd/config/, I see the 'Config' file and 'Parameters' file are both set to C:. I guess I'm confused because I haven't made any changes to any folders. I can't figure out why this would have just started happening.