[0.7.16] Error when unpacking

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.
Post Reply
albert123
Newbie
Newbie
Posts: 4
Joined: January 14th, 2014, 4:14 pm

[0.7.16] Error when unpacking

Post 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 !
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.16] Error when unpacking

Post 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.
albert123
Newbie
Newbie
Posts: 4
Joined: January 14th, 2014, 4:14 pm

Re: [0.7.16] Error when unpacking

Post 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 ?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.16] Error when unpacking

Post 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.
albert123
Newbie
Newbie
Posts: 4
Joined: January 14th, 2014, 4:14 pm

Re: [0.7.16] Error when unpacking

Post 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 !
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.16] Error when unpacking

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.16] Error when unpacking

Post by shypike »

I'll add an option to ignore embedded folders in RAR files to release 0.7.17 (due next week).
albert123
Newbie
Newbie
Posts: 4
Joined: January 14th, 2014, 4:14 pm

Re: [0.7.16] Error when unpacking

Post by albert123 »

Thank you very much ! :)

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

Have a good day !
Post Reply