Page 1 of 1

unrar - ARM processor (Linkstation) 3.41 beta 1 error!

Posted: February 22nd, 2010, 3:16 am
by koniosis
Hi,

I'm running SABnzbd on an ARM Linkstation Pro. I have been using v4 for a while now and it worked great.

Since upgrading to v5.0 automatic unrar has stopped working. I get an error "ERROR: Unknown option -or" when it tries to unrar.

I also receive a warning about my unrar version. However, checking the rarlabs.com website, the only version available for the ARM processor is 3.41 beta 1, there is no newer version so I'm stuck!

Is there a way to get SABnzbd to work with the older rar version, it worked with v4.

Is there a way to  get a newer unrar for ARM processors than the one on the rarlabs website?

Thanks for you help!

Koni

Version: (0.5.0 Final)
OS: (Debian)
Install-type: (python source)

Re: unrar - ARM processor (Linkstation) 3.41 beta 1 error!

Posted: February 22nd, 2010, 3:24 am
by shypike
Find module newsunpack.py.
At line 470 you'll see:

Code: Select all

    command = ['%s' % RAR_COMMAND, 'x', '-idp', '-o-', '-or', password,
Change it to

Code: Select all

    command = ['%s' % RAR_COMMAND, 'x', '-idp', '-o-', password,
That will fix it, but very occasionally you may run into problems with duplicate files.
See: https://trac2.assembla.com/SABnzbd/ticket/97

Re: unrar - ARM processor (Linkstation) 3.41 beta 1 error!

Posted: February 22nd, 2010, 3:34 am
by koniosis
Thank you!

I noticed that there are some open-source free versions of unrar that I could build from source, are these a suitable replacement or am I best sticking with this older version from rarlabs?

Re: unrar - ARM processor (Linkstation) 3.41 beta 1 error!

Posted: February 22nd, 2010, 3:37 am
by koniosis
Hmm, maybe a new bug ticket is required for this problem then. It seems SAB can check the version of unrar (hence the warning on the main page) so it would be useful if it disabled unsupported options for older versions?

Re: unrar - ARM processor (Linkstation) 3.41 beta 1 error!

Posted: February 22nd, 2010, 6:23 am
by shypike
The reason we do not want to support the "free" unrars is that they are of poor quality.
We were sick and tired of investigating people's reports about
"CRC errors" only to find out that they were using a crappy unrar.

Re: unrar - ARM processor (Linkstation) 3.41 beta 1 error!

Posted: February 22nd, 2010, 8:09 am
by koniosis
I e-mailed rarlabs, they have pointed me at the source: http://www.rarlab.com/rar/unrarsrc-3.9.9.tar.gz which can be built manually.

I will try building this on my Linkstation and post back here the results.

Thanks

Re: unrar - ARM processor (Linkstation) 3.41 beta 1 error!

Posted: February 22nd, 2010, 11:03 am
by koniosis
Could be some good out of this. If I can make a working build for the ARM processor, rarlabs have tentively agreed to post the binary on their website!

Re: unrar - ARM processor (Linkstation) 3.41 beta 1 error!

Posted: February 22nd, 2010, 1:32 pm
by shypike
We'll be happy to host it too, but rarlabs would be better.

Re: unrar - ARM processor (Linkstation) 3.41 beta 1 error!

Posted: February 22nd, 2010, 2:12 pm
by koniosis
Ok the build is good, where can I send the file for the website?

FYI, this was built on a Buffalo Linkstation Pro:

Linux Version 2.6.12.6-arm1
Compiled #77 Tue Dec 5 22:23:46 CST 2006
One ARM ARM926EJ-Sid(wb) rev 0 (v5l) Processor, 128M RAM
266.24 Bogomips Total

Re: unrar - ARM processor (Linkstation) 3.41 beta 1 error!

Posted: February 23rd, 2010, 4:05 am
by koniosis
rarlabs.com have accepted the binary, it can now be downloaded from:

http://www.rarlab.com/rar/unrar-3.9.9-arm.gz

And is listed on http://www.rarlab.com/rar_add.htm as "UnRAR for ARM Linux Command line freeware ARM Linux UnRAR."

Enjoy!