Page 1 of 1
rar 5 help for sabnzbd noob
Posted: November 21st, 2013, 2:34 pm
by rsmik
I have come across some archives packed with rar 5, I only find this out after sabnzbd (version 0.7.16) finishes processing the download and I get a large file with no extension. I would hate to have to turn off automatic unrar and manually unpack everything I download using winrar 5. Is there a stupid noob way to configure sabnzbd to use unrar 5 instead of whatever is built in and how do I go about doing this? Thanks
Re: rar 5 help for sabnzbd noob
Posted: November 21st, 2013, 4:14 pm
by sander
Which platform is running SABnzbd running on? Linux, OSX, Windows, NAS, ... ?
And, out of curiosity: can you PM a link to such a rar5 newspost?
SABnzbd has an option "Enable Unrar Enable built-in unrar functionality.". That's on by default. I'm not sure what happens when you uncheck ... maybe SAB search for a unrar executable in the OS path?
Re: rar 5 help for sabnzbd noob
Posted: November 21st, 2013, 4:56 pm
by sander
I uses winrar5 and selected RAR5 as archive type, and created bigrandomfile-rar5-winrar-FTW.rar
The unpack results:
unrar3 doesn't work:
Code: Select all
$ unrar3 x bigrandomfile-rar5-winrar-FTW.rar
UNRAR 3.30 beta 3 freeware Copyright (c) 1993-2003 Eugene Roshal
bigrandomfile-rar5-winrar-FTW.rar is not RAR archive
No files to extract
unrar 4 doesn't work:
Code: Select all
$ unrar4 x bigrandomfile-rar5-winrar-FTW.rar
UNRAR 4.20 freeware Copyright (c) 1993-2012 Alexander Roshal
Unsupported archive format. Please update RAR to a newer version.
bigrandomfile-rar5-winrar-FTW.rar is not RAR archive
No files to extract
but unrar5 works:
Code: Select all
$ unrar5 x bigrandomfile-rar5-winrar-FTW.rar
UNRAR 5.00 freeware Copyright (c) 1993-2013 Alexander Roshal
Extracting from bigrandomfile-rar5-winrar-FTW.rar
Extracting random-100MB.bin OK
All OK
So indeed it's possible unrar 5 is needed.
Have you tried unchecking the SABnzbd option I mentioned? You shoud first install unrar 5 in your OS path.
Re: rar 5 help for sabnzbd noob
Posted: November 22nd, 2013, 11:22 pm
by rsmik
Thanks for all your help, I really appreciate it. I replaced unrar.exe that came installed with sabnzbd with version 5 and am now able to unpack the archives correctly.
Re: rar 5 help for sabnzbd noob
Posted: November 23rd, 2013, 2:26 am
by sander
Cool. One advice/warning: SABnzb up to 0.7.16 cannot handle the output of unrar5 in case of password encrypted rars. So watch out for that.
Re: rar 5 help for sabnzbd noob
Posted: April 1st, 2014, 2:42 pm
by zoggy
0.7.17 and pw protected releases.. i can confirm the included 5.0.1 works fine on detecting encrypted releases..
0.7.17 windows binary install comes with:
Code: Select all
C:\Program Files (x86)\SABnzbd\win\unrar\x64>UnRAR.exe -V
UNRAR 5.01 freeware Copyright (c) 1993-2013 Alexander Roshal
checking release manually:
Code: Select all
C:\Program Files (x86)\SABnzbd\win\unrar\x64>UnRAR.exe l "C:\Users\test\Documents\downloads\incomplete\_removed_release_name_\82F5cDB7vvCDeLW_qxitosXF36.part01.rar"
UNRAR 5.01 freeware Copyright (c) 1993-2013 Alexander Roshal
Enter password (will not be echoed) for C:\Users\test\Documents\downloads\incomplete\_removed_release_name_\82F5cDB7vvCDeLW_qxitosXF36.part01.rar:
Checksum error in the encrypted file C:\Users\test\Documents\downloads\incomplete\_removed_release_name_\82F5cDB7vvCDeLW_qxitosXF36.part01.rar. Corrupt file or wrong password.
Archive: C:\Users\test\Documents\downloads\incomplete\_removed_release_name_\82F5cDB7vvCDeLW_qxitosXF36.part01.rar
Details: RAR 4, volume, lock, encrypted headers
so as we can see,
its rar4 format not 5. and sure enough it is pw protected.
sab 0.7.17 binary install detects this as it should:
Code: Select all
2014-04-01 14:10:31,769::INFO::[assembler:88] Decoding C:\Users\test\Documents\downloads\incomplete\_removed_release_name_\82F5cDB7vvCDeLW_qxitosXF36.part01.rar yenc
2014-04-01 14:10:32,388::DEBUG::[rarfile:325] CRC mismatch! ofs =20
2014-04-01 14:10:32,390::WARNING::[assembler:117] WARNING: Paused job "_removed_release_name_" because of encrypted RAR file
switched from 0.7.17 win folder to 0.7.16 win folder. (changing back to unrar 4.20), started up sab and added the nzb back.. it detected it as encrypted once again:
Code: Select all
2014-04-01 14:40:26,323::INFO::[assembler:88] Decoding C:\Users\test\Documents\downloads\incomplete\_removed_release_name_\82F5cDB7vvCDeLW_qxitosXF36.part01.rar yenc
2014-04-01 14:40:27,209::DEBUG::[rarfile:325] CRC mismatch! ofs =20
2014-04-01 14:40:27,209::WARNING::[assembler:117] WARNING: Paused job "_removed_release_name_" because of encrypted RAR file
so overall good to go.. reverted win folder changes back to 0.7.17 binary install.
talking to a user in irc about this, hence my test above.
turns out i have
pre check disabled. turned it on, restarted sab (0.7.17). added nzb. notice it now doesnt catch the release is encrypted anymore while it's downloading... only catches it when it finishes the whole thing..
Code: Select all
2014-04-01 15:06:03,397::INFO::[__init__:626] Adding _removed_release_name_.nzb
2014-04-01 15:09:21,746::INFO::[assembler:88] Decoding C:\Users\test\Documents\downloads\incomplete\_removed_release_name_\82F5cDB7vvCDeLW_qxitosXF36.part01.rar yenc
2014-04-01 15:11:45,997::DEBUG::[newsunpack:575] Running unrar ['C:\\Program Files (x86)\\SABnzbd\\win\\unrar\\x64\\UnRAR.exe', 'x', '-idp', '-o-', '-or', '-ai', '-p-', 'C:\\Users\\test\\Documents\\downloads\\incomplete\\_removed_release_name_\\82F5cDB7vvCDeLW_qxitosXF36.part01.rar', 'd:\\sab-movies\\_UNPACK__removed_release_name_/']
2014-04-01 15:11:46,069::ERROR::[newsunpack:519] Unpacking failed, archive requires a password (82F5cDB7vvCDeLW_qxitosXF36.part01.rar)
Re: rar 5 help for sabnzbd noob
Posted: April 1st, 2014, 3:13 pm
by _flake
With completion checking enabled .17 is not detecting passworded releases until the complete release is leeched.
Re: rar 5 help for sabnzbd noob
Posted: April 2nd, 2014, 7:13 am
by shypike
Yes, that's because SABnzbd cannot decode RAR5 files on its own yet.
Re: rar 5 help for sabnzbd noob
Posted: April 2nd, 2014, 2:41 pm
by zoggy
shypike wrote:Yes, that's because SABnzbd cannot decode RAR5 files on its own yet.
if you see above, the release is in rar4 format. i thought it was a rar5 thing at first.. why i checked both.. turned out its a pre-check bug. hence my github issues report
*update* i see you must be talking to the original poster which yes is rar5.
btw shy rar5.10b1 adds some things that may be nice for sab..
Version 5.10 beta 1
1. Added extraction support for ZIP and ZIPX archives using BZIP2, LZMA and PPMd compression.
2. Added extraction support for 7z split archives (.7z.001, .7z.002, ...).
3. Added support for AES-NI CPU instructions allowing to improve RAR encryption and decryption performance.