Page 1 of 1

[BUG] Disk error on creating file - yenc decode

Posted: January 21st, 2012, 3:33 am
by FrankSpierings
Symptoms:
- Sabnzbd is paused and stays paused.
- The log shows errors like 'Disk error on creating file <path>/<time>.r00'
- There are only files in the incomplete/<name>/__ADMIN__ dir.
- The nzb contains time with ':' in the file names.

Setup:
Version: 0.6.14
OS: Ubuntu 10.04.3 LTS x64
Install type: http://ppa.launchpad.net/jcfp/ppa/ubuntu
FS: Cifs->EXT4
IPv6: No
Reproducable: Yes --> NZBMatrix --> 'Constantine 2005 720p BluRay DTS x264 HiDt'

I currently have no workaround except for deleting the entry.

Hope someone can help.

Re: [BUG] Disk error on creating file - yenc decode

Posted: January 21st, 2012, 5:47 am
by shypike
It's not the NZB, but the downloaded RAR files that contain colons.
File names containing colons would cause problems on Windows, but not on Linux.
(Actually SABnzbd for Windows has a work-around for this.)

Are you using a Windows-formatted share or external drive as "temporary download folder"?
Not a good idea, because it's vulnerable to cross-platform differences that SABnzbd cannot detect.
It downloads fine on a local Linux disk (ext3).

Re: [BUG] Disk error on creating file - yenc decode

Posted: January 21st, 2012, 6:39 am
by FrankSpierings
shypike,

Very true, its the rars to blame. I meant to say that the nzb contains the <file></file> entries which contain those 'wrong' filenames.
I'm currently downloading to a cifs share, which has EXT4 underneath. So I guess cifs doesn't like that character either. I might change the share to nfs in that case, but I'm also quite interested in the workaround. Also, what sort of cross-platform differences (fs related) should I know about? (Always good to learn).

Thanks for the quick response.

Re: [BUG] Disk error on creating file - yenc decode

Posted: January 21st, 2012, 6:47 am
by shypike
The work-around is no use to you.
It anticipates the strange way par2 handles the colon when running on Windows.
SABnzbd, par2 and unrar all are unaware that your system
doesn't follow the normal Linux name space.

Re: [BUG] Disk error on creating file - yenc decode

Posted: January 21st, 2012, 6:50 am
by FrankSpierings
Okay,

I'll try to either convert the incomplete location to iSCSI or NFS.

Thanks.

Re: [BUG] Disk error on creating file - yenc decode

Posted: January 22nd, 2012, 1:27 am
by FrankSpierings
I know its still a bad idea to mount with cifs, but for now I did circumvent the issue by mounting cifs with the option mapchars.

mount -t cifs //server/share /mnt/share -o mapchars,username=....

Might come in handy for others.

Re: [BUG] Disk error on creating file - yenc decode

Posted: November 25th, 2012, 2:44 am
by ugokanain
Just got a few Disk error on creating file ~/nntp/downloads/Post.DVDRip - 0147 - Post.DVDRip.parts.part01.rar yEnc.cp(ttxxxxx)/Post.DVDRip.parts.part44.rar

The trouble is that I am on a Mac with 0.7.6

Re: [BUG] Disk error on creating file - yenc decode

Posted: November 25th, 2012, 4:50 am
by shypike
What happens if you retry the job from History?
(Assuming it got so far.)

Re: [BUG] Disk error on creating file - yenc decode

Posted: November 25th, 2012, 4:56 am
by ugokanain
It doesn't get that far, it pauses on that job. If I start it again, the problem happens again. It happened with another job, and after many resumes, it finishes.

If I do a different post, there is no problem.

Re: [BUG] Disk error on creating file - yenc decode

Posted: November 25th, 2012, 5:35 am
by shypike
Can you try to create a path like in the error message, manually?
Possibly the path is not allowed by OSX, although I see no obvious reason.

Re: [BUG] Disk error on creating file - yenc decode

Posted: November 25th, 2012, 4:53 pm
by ugokanain
For some reason it doesn't like it. Maybe it thinks it is a command (cp)? Too many spaces?

However, Sab did create the enclosing folder.
pico ~/nntp/downloads/Gandhi.1982.DVDRip - 0147 - Gandhi.1982.DVDRip.parts.part01.rar yEnc.cp(tt0083987)/Gandhi.1982.DVDRip.parts.part06.rar
-bash: syntax error near unexpected token `('
PB:~ $ cd ~/nntp/downloads/Gandhi.1982.DVDRip - 0147 - Gandhi.1982.DVDRip.parts.part01.rar yEnc.cp(tt0083987)
-bash: syntax error near unexpected token `('
PB:~ $ cd "~/nntp/downloads/Gandhi.1982.DVDRip - 0147 - Gandhi.1982.DVDRip.parts.part01.rar yEnc.cp(tt0083987)"
PB:Gandhi.1982.DVDRip - 0147 - Gandhi.1982.DVDRip.parts.part01.rar yEnc.cp(tt0083987)

Re: [BUG] Disk error on creating file - yenc decode

Posted: November 25th, 2012, 5:02 pm
by shypike
You need to put quotes " around the path.
Brackets are special to Terminal.

Re: [BUG] Disk error on creating file - yenc decode

Posted: November 25th, 2012, 6:34 pm
by ugokanain
pico "~/nntp/downloads/Gandhi.1982.DVDRip - 0147 - Gandhi.1982.DVDRip.parts.part01.rar yEnc.cp(tt0083987)/Gandhi.1982.DVDRip.parts.part06.rar" works

I tried a simpler named nzb with sab and it seems to work. This name was passed by couchpotato