Disk error on creating file

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.
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Disk error on creating file

Post by safihre »

Received the log, it was a racing condition that can occur for very small downloads.
Will fix for 2.3.1.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
tranx
Newbie
Newbie
Posts: 10
Joined: October 23rd, 2017, 8:23 pm

Re: Disk error on creating file

Post by tranx »

Hi, this just happened, and now I had the DEBUG enabled.

My suspicion was correct, the directory is removed, and then yenc is called to decode a par2 file that doesn't exist anymore.

I will upload the log file in a bit

EDIT: Oh, I just realized you already know what the issue is :)

Thanks!
tranx
Newbie
Newbie
Posts: 10
Joined: October 23rd, 2017, 8:23 pm

Re: Disk error on creating file

Post by tranx »

Please let me know if you still need the log. Looking forward to testing 2.3.1..
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Disk error on creating file

Post by safihre »

2.3.1 is out, let me know if it's fixed! :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
tranx
Newbie
Newbie
Posts: 10
Joined: October 23rd, 2017, 8:23 pm

Re: Disk error on creating file

Post by tranx »

Sure thing, thanks a lot.
MikeC
Newbie
Newbie
Posts: 13
Joined: October 9th, 2016, 4:05 am

Re: Disk error on creating file

Post by MikeC »

I seem to be having this still. I am running SABnzbd 2.3.1 [f1695ec] on my Raspberry Pi

From the sabnzbd.log at the time it happens I see the following (I don't have any DEBUG logging or anything set I don't think) :

Code: Select all

2017-11-07 06:04:48,268::INFO::[assembler:96] Decoding /dl/incomplete/downloadname/"GQ4WENDBHAYTQMZQGA2DIYRYGQWEM3E" yEnc (1+1) yenc
2017-11-07 06:04:48,277::ERROR::[assembler:106] Disk error on creating file /dl/incomplete/downloadname/"GQ4WENDBHAYTQMZQGA2DIYRYGQWEM3E" yEnc (1+1)
2017-11-07 06:04:48,283::INFO::[assembler:108] Traceback:
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/sabnzbd/assembler.py", line 98, in run
    filepath = self.assemble(nzf, filepath)
  File "/usr/share/sabnzbdplus/sabnzbd/assembler.py", line 167, in assemble
    fout = open(path, 'ab')
IOError: [Errno 22] invalid mode ('ab') or filename: u'/dl/incomplete/downloadname/"GQ4WENDBHAYTQMZQGA2DIYRYGQWEM3E" yEnc (1+1)'
2017-11-07 06:04:48,287::INFO::[downloader:277] Pausing
A restart of SABnzbd kicks things back into action.

Let me know if there is more I can provide to be of any help.
hamid313
Newbie
Newbie
Posts: 5
Joined: October 16th, 2017, 9:00 am

Re: Disk error on creating file

Post by hamid313 »

2.3.1RC2 [770951b]
seems to be fixed
you need to update 1 of the files to include debugging in logs
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Disk error on creating file

Post by safihre »

That filename is very weird, that looks more like it could be the problem. Although on most Linux systems it shouldn't be a problem.
Maybe turn on Make Windows Compatible in Config Switches to filter out the weirdness.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Disk error on creating file

Post by sander »

Indeed a weird filename (with quotes in it ... asking for trouble). On what kind of filesystem is /dl/incomplete/ ? Is it ext3, ext4, btrfs, or ... a FAT or NTFS drive ...

Update:

With https://www.binsearch.info/index.php?q= ... YRYGQWEM3E

No problem downloading the NZB onto my Ext3 filesystem. Resulting file

Code: Select all

-rw-r--r--  1 sander sander   473 nov  7 13:30 'GQ4WENDBHAYTQMZQGA2DIYRYGQWEM3E' yEnc (1+1)
So ... single quotes in the filename ... brrr. But apparently no problem on ext3


But onto my FAT drive I get this message from SABnzbd:

Code: Select all

Disk error on creating file /media/sander/CDB8-59F1/Downloads/incomplete/GQ4WENDBHAYTQMZQGA2DIYRYGQWEM3E/"GQ4WENDBHAYTQMZQGA2DIYRYGQWEM3E" yEnc (1+1)
So ... a filesystem problem / limitation.

More OS/FS details on my FAT drive:

Strangely enough, I can create a filename with a single quote in it:

Code: Select all

sander@sammie-1710:~$ touch "/media/sander/CDB8-59F1/hello with ' blabla.txt"
sander@sammie-1710:~$ 

-rw-r--r--  1 sander sander     0 nov  7 19:33 hello with ' blabla.txt
Other notations, or double quotes, do not work:

Code: Select all

sander@sammie-1710:~$ touch "/media/sander/CDB8-59F1/hello with \' escape blabla.txt"
touch: setting times of '/media/sander/CDB8-59F1/hello with \'\'' escape blabla.txt': No such file or directory
sander@sammie-1710:~$ 
sander@sammie-1710:~$ touch '/media/sander/CDB8-59F1/hello with " double quote blabla.txt'
touch: setting times of '/media/sander/CDB8-59F1/hello with " double quote blabla.txt': No such file or directory
sander@sammie-1710:~$ 
sander@sammie-1710:~$ touch '/media/sander/CDB8-59F1/hello with \" double quote blabla.txt'
touch: setting times of '/media/sander/CDB8-59F1/hello with \" double quote blabla.txt': No such file or directory
MikeC
Newbie
Newbie
Posts: 13
Joined: October 9th, 2016, 4:05 am

Re: Disk error on creating file

Post by MikeC »

Thanks for all the replies. I suspected it could be to do with the double quotes.
The filesystem indeed FAT, well vfat (I made it that as I had plans to remove the drive now and then to use elsewhere to move media around, but never ended up doing that, so maybe I should reformat it to ext3)
I have enabled that Make Windows Compatible in Config Switches option and will keep an eye on things for now.
tranx
Newbie
Newbie
Posts: 10
Joined: October 23rd, 2017, 8:23 pm

Re: Disk error on creating file

Post by tranx »

Hi, I had this issue happen again on 2.3.1

I am on Linux and it's not a problem with the filename.

The download was a total of 3MB. I have the log with debugging enabled if needed.
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Disk error on creating file

Post by safihre »

Yes please send the whole log to [email protected].
Currently only intermittently near my computer so will try to inspect the log as soon as time permits! :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
tranx
Newbie
Newbie
Posts: 10
Joined: October 23rd, 2017, 8:23 pm

Re: Disk error on creating file

Post by tranx »

Sorry for the delay, I just sent this log to your email. Thanks
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Disk error on creating file

Post by safihre »

I think I found the spot where the problem is!
Will try to fix for 2.3.2
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
tranx
Newbie
Newbie
Posts: 10
Joined: October 23rd, 2017, 8:23 pm

Re: Disk error on creating file

Post by tranx »

Ok, thank you! I am glad that was helpful
Post Reply