Disk error on creating file = Errno 13

Get help with all aspects of 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.
texasmcse
Newbie
Newbie
Posts: 11
Joined: March 19th, 2021, 7:33 am

Disk error on creating file = Errno 13

Post 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.
Last edited by texasmcse on March 19th, 2021, 7:57 am, edited 1 time in total.
texasmcse
Newbie
Newbie
Posts: 11
Joined: March 19th, 2021, 7:33 am

Re: Disk error on creating file = Errno 13

Post by texasmcse »

new user so really having trouble adding in the log file data, says can't post links.
texasmcse
Newbie
Newbie
Posts: 11
Joined: March 19th, 2021, 7:33 am

Re: Disk error on creating file = Errno 13

Post 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'
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Disk error on creating file = Errno 13

Post 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
texasmcse
Newbie
Newbie
Posts: 11
Joined: March 19th, 2021, 7:33 am

Re: Disk error on creating file = Errno 13

Post by texasmcse »

right now its

temporary down folder C: \ NZB \ I
Completed C: \ NZB \ C
Watched C: \ NZB \ Watch
scripts: empty
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Disk error on creating file = Errno 13

Post by sander »

OK. And log on pastebin?
texasmcse
Newbie
Newbie
Posts: 11
Joined: March 19th, 2021, 7:33 am

Re: Disk error on creating file = Errno 13

Post by texasmcse »

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

Re: Disk error on creating file = Errno 13

Post 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
texasmcse
Newbie
Newbie
Posts: 11
Joined: March 19th, 2021, 7:33 am

Re: Disk error on creating file = Errno 13

Post by texasmcse »

tried both, no luck.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Disk error on creating file = Errno 13

Post by sander »

Can you share the NZB via pastebin?

What if you use another directory to save to?
texasmcse
Newbie
Newbie
Posts: 11
Joined: March 19th, 2021, 7:33 am

Re: Disk error on creating file = Errno 13

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Disk error on creating file = Errno 13

Post 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:?
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Disk error on creating file = Errno 13

Post 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'
>>> 
texasmcse
Newbie
Newbie
Posts: 11
Joined: March 19th, 2021, 7:33 am

Re: Disk error on creating file = Errno 13

Post 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.
craytron
Newbie
Newbie
Posts: 3
Joined: March 27th, 2021, 11:49 am

Re: Disk error on creating file = Errno 13

Post 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.
Post Reply