Page 1 of 3

Disk error on creating file = Errno 13

Posted: March 19th, 2021, 7:52 am
by texasmcse
I've been using Sabnzb for years with no issues. Starting a couple days ago I can't download anything, including the test files, without getting "Disk error on creating file....". It happened on the latest stable release so upgraded to 3.21RC1 and still happens. I've changed the folders where it is writing to and still happens and have also excluded the folders from Defender. this is a Windows 10 device with plenty of room on the hard drive and no checkdisk errors reported. The folders I am using are on the local C: drive and there are no permission restrictions on the folders. I can write and delete files manually from those folders.

thanks for any assistance.

Re: Disk error on creating file = Errno 13

Posted: March 19th, 2021, 7:53 am
by texasmcse
new user so really having trouble adding in the log file data, says can't post links.

Re: Disk error on creating file = Errno 13

Posted: March 19th, 2021, 7:54 am
by texasmcse
Traceback (most recent call last):
File "sabnzbd \ assembler . py", line 104, in run
File "sabnzbd \ assembler . py", line 209, in assemble
PermissionError: [Errno 13] Permission denied: path sometestfile . part009 . rar'

Re: Disk error on creating file = Errno 13

Posted: March 19th, 2021, 11:40 am
by sander
What is your setting for Temporary Download Folder, and Completed Download Folder ? You can check via http://127.0.0.1:8080/sabnzbd/config/folders/

Furthermore: you can post all logging on pastebin, and post the URL with space in it here

Re: Disk error on creating file = Errno 13

Posted: March 19th, 2021, 12:08 pm
by texasmcse
right now its

temporary down folder C: \ NZB \ I
Completed C: \ NZB \ C
Watched C: \ NZB \ Watch
scripts: empty

Re: Disk error on creating file = Errno 13

Posted: March 19th, 2021, 12:12 pm
by sander
OK. And log on pastebin?

Re: Disk error on creating file = Errno 13

Posted: March 19th, 2021, 12:30 pm
by texasmcse

Re: Disk error on creating file = Errno 13

Posted: March 20th, 2021, 12:05 am
by sander
Things worth to try:

turn off you virusscanner, or at least turf it off to scan c:\nzb\i
turn off directunpack in SABnzbd

Re: Disk error on creating file = Errno 13

Posted: March 20th, 2021, 3:48 pm
by texasmcse
tried both, no luck.

Re: Disk error on creating file = Errno 13

Posted: March 20th, 2021, 4:17 pm
by sander
Can you share the NZB via pastebin?

What if you use another directory to save to?

Re: Disk error on creating file = Errno 13

Posted: March 20th, 2021, 4:34 pm
by texasmcse
fyi the 100MB test download and the 1GB test download both complete every time. The 10GB test download fails every time.

https://pastebin.com/kgpVnvwY

Re: Disk error on creating file = Errno 13

Posted: March 20th, 2021, 4:57 pm
by sander
Is it a matter of a big download? If your drive is FAT (SAB will tell at startup "Completed Download Folder %s is on FAT file system, limiting maximum file size to 4GB"), it cannot create files bigger than 4.2 GB

... but that cannot happen with the rar files as they are only 100MB each.

How did you disable your virus scanner?
How much disk space is available on your C: and D:?

Re: Disk error on creating file = Errno 13

Posted: March 20th, 2021, 5:12 pm
by sander
I'm pasting in your error

Code: Select all

2021-03-20 16:22:41,735::DEBUG::[assembler:102] Decoding part of \\?\D:\downs\i\test_download_10GB\sometestfile.part008.rar
2021-03-20 16:22:41,737::INFO::[notifier:122] Sending notification: Error - Disk error on creating file D:\downs\i\test_download_10GB\sometestfile.part008.rar (type=error, job_cat=None)
2021-03-20 16:22:41,737::ERROR::[assembler:112] Disk error on creating file D:\downs\i\test_download_10GB\sometestfile.part008.rar
2021-03-20 16:22:41,737::INFO::[assembler:114] Traceback: 
Traceback (most recent call last):
  File "sabnzbd\assembler.py", line 104, in run
  File "sabnzbd\assembler.py", line 209, in assemble
PermissionError: [Errno 13] Permission denied: '\\\\?\\D:\\downs\\i\\test_download_10GB\\sometestfile.part008.rar'
Like SAB says [Errno 13] means Permission denied. https://docs.python.org/3/library/errno.html tells: errno 13 is "errno.EACCES Permission denied". So your operating Windows is not allowing SAB to write that file.

OS problem. If it happens to one file, but not other files, it's often a virus scanner.

FWIW

Code: Select all

$ python3
Python 3.8.5 (default, Jan 27 2021, 15:41:15) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> import os
>>> os.strerror(13)
'Permission denied'

>>> import errno
>>> errno.EACCES
13
>>> os.strerror(errno.EACCES)
'Permission denied'
>>> 

Re: Disk error on creating file = Errno 13

Posted: March 20th, 2021, 5:14 pm
by texasmcse
I have always used the local C: drive which is SSD and has over 100GB free. I also tried a D: drive which is an external USB which also has over 100GB available. Both are NTFS and I've downloaded countless large files over the years. This is a new issue, started a week or two ago. I am using Windows Defender and modified the local policy and restarted. Folders have been added to the exclude list and I even excluded .rar files when Defender was still active.

Re: Disk error on creating file = Errno 13

Posted: March 27th, 2021, 11:50 am
by craytron
I'm getting this same error. Been working fine for years. All of a sudden, can't write to same directory been saving to forever.