Page 1 of 1

[0.7.16] Error when unpacking

Posted: January 14th, 2014, 4:29 pm
by albert123
Hi everybody,

Excuse me first if I'm not in the right forum, or if a similar post has bean already posted. I searched for hours now, but I didn't find a problem like me.

SabNzbd works very well on my Raspberry Pi. Watch folder is stored on /home/pi, whereas Temp and Finished folders are stored on my external drive (formatted in NTFS).

Today, I tried to download another file, which couldn't be unzipped : "unzip failed error writing or full hard drive ?"

Here is sabnzbd logfile : (I renamed here the original filename by "My file", which doesn't have special characters)

2009-01-02 22:37:02,671::INFO::[newsunpack:424] Extracting rarfile /media/MyBook/Telechargements/Temp/My file/My file.part001.rar (belonging to My file) to /media/MyBook/Telechargements/Termines/_UNPACK_My file
2009-01-02 22:37:02,674::DEBUG::[newsunpack:523] rar_extract(): Extractionpath: /media/MyBook/Telechargements/Termines/_UNPACK_My file
2009-01-02 22:37:04,131::DEBUG::[newsunpack:568] Running unrar ['/usr/bin/unrar', 'x', '-idp', '-o-', '-or', '-p-', '/media/MyBook/Telechargements/Temp/My file/My file.part001.rar', '/media/MyBook/Telechargements/Termines/_UNPACK_My file/']
2009-01-02 22:37:04,470::ERROR::[newsunpack:631] ERREUR : erreur d'écriture ( /media/MyBook/Telechargements/Termines/_UNPACK_My file/My file ComplŠte/my video file.mkv)

I tried to unrar files on my Mac with MacPAR, and unrar was OK BUT directory's name is : My file Complète (with special character).
In the logfile, we can see that "newsunpack" has replaced it by a weird character : Š. So newunpack seems to have a problem with the filenames contained in RAR files.

How can I fix it ?

I tried :
- check "sanitize_safe" (in Specials tab)
- uncheck "Replace illegal characters in directories name" (in Switches tab)
=> same result ! :(

Other information :
- My external drive is 3 To and 2 To is free.
- Temp and finished directories have correct permisions, because other files downloaded by Sabnzbd were unpacked well

Thanks by advance for your answers and excuse me for my bad English, I'm French !

Have a good day !

Re: [0.7.16] Error when unpacking

Posted: January 14th, 2014, 4:46 pm
by shypike
I'm not sure which character set your system uses.
Unrar always assumes that the system is capable of handling Unicode characters.
Sometimes this is not true.
I don't know of a fix, except what you did now.

Re: [0.7.16] Error when unpacking

Posted: January 14th, 2014, 4:50 pm
by albert123
Thanks for your quick answer !

I configured my raspberry's locales as fr_FR.UTF-8. Tried also with simply fr_FR : same result.

This error is an unrar problem with my configuration ?

Re: [0.7.16] Error when unpacking

Posted: January 14th, 2014, 4:55 pm
by shypike
Like I said, unrar simply assumes the system supports Unicode.
I think neither of the codes represents Unicode, but instead 8-bit ASCII.

Re: [0.7.16] Error when unpacking

Posted: January 14th, 2014, 5:08 pm
by albert123
And is there any option not to keep folders structure in unrar process ?

Because my problem is only in directory's name :

My file/My file with special character/My video file.mkv

I tried to directly unrar files with :

unrar e My\ file.part001.rar

and it worked because it directly unrar files in the current directory (with e directive in the command line). Could this be possible with sabnzbd ?


Thanks again !

Re: [0.7.16] Error when unpacking

Posted: January 15th, 2014, 3:17 pm
by shypike
Not using embedded folders isn't an option in SABnzbd.
You could patch the Python code of course.
SABnzbd does have options to move files to other folders (Sorting),
but it will still create the basic folders.
Isn't there an option to tell your system to use Unicode?

Re: [0.7.16] Error when unpacking

Posted: January 15th, 2014, 4:25 pm
by shypike
I'll add an option to ignore embedded folders in RAR files to release 0.7.17 (due next week).

Re: [0.7.16] Error when unpacking

Posted: January 16th, 2014, 2:14 am
by albert123
Thank you very much ! :)

I've just made you a (little) donation :)

Have a good day !