Page 1 of 2

Unrar problem [raspberry]

Posted: January 2nd, 2016, 10:51 am
by robertus
Hi to everybody,

I have a little problem, because in my raspberry i have installed sabnzbd, but i can't extract .rar files

Infact i have this message

Code: Select all

⋅ Your UNRAR version is not recommended, get it from http://www.rarlab.com/rar_add.htm
I read a thread in this forum about this problem but suggest to unistall and install again. ( doesn't work for me )

My installation of it is:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install sabnzbdplus
then
sabnzbdplus --server 0.0.0.0
to launch wizard and configure.
sudo nano /etc/apt/sources.list
i add
deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free rpi
sudo apt-get update
mkdir ~/unrar-nonfree && cd ~/unrar-nonfree
sudo apt-get build-dep unrar-nonfree
sudo apt-get source -b unrar-nonfree
sudo dpkg -i unrar_4.1.4-1+deb7u1_armhf.deb 
reboot but say always this message
I hope that someone can help me.

Re: Unrar problem [raspberry]

Posted: January 3rd, 2016, 2:32 am
by sander
Assuming you're using Raspbian:

This is how I updated the unrar on my raspbian to UNRAR 5.30 beta 6 freeware:

Code: Select all

cd
wget http://www.rarlab.com/rar/unrar-5.3.7-arm.gz
gunzip unrar-5.3.7-arm.gz 
chmod +x unrar-5.3.7-arm 
./unrar-5.3.7-arm 
That last command should show "UNRAR 5.30 beta 6 freeware".

If so, let's continue:

Code: Select all

which unrar
sudo mv /usr/bin/unrar /usr/bin/unrar-4.10
sudo cp unrar-5.3.7-arm /usr/bin/unrar
unrar
That last command should show "UNRAR 5.30 beta 6 freeware".

Re: Unrar problem [raspberry]

Posted: January 3rd, 2016, 11:20 am
by robertus
sander wrote:Assuming you're using Raspbian:

This is how I updated the unrar on my raspbian to UNRAR 5.30 beta 6 freeware:

Code: Select all

cd
wget http://www.rarlab.com/rar/unrar-5.3.7-arm.gz
gunzip unrar-5.3.7-arm.gz 
chmod +x unrar-5.3.7-arm 
./unrar-5.3.7-arm 
That last command should show "UNRAR 5.30 beta 6 freeware".

If so, let's continue:

Code: Select all

which unrar
sudo mv /usr/bin/unrar /usr/bin/unrar-4.10
sudo cp unrar-5.3.7-arm /usr/bin/unrar
unrar
That last command should show "UNRAR 5.30 beta 6 freeware".
yes raspbian and i tried your command, but no success.

when i launch unrar command i see that is 5.3.7 but anyway sabnzbd say the same problem (⋅ Your UNRAR version is not recommended, get it from http://www.rarlab.com/rar_add.htm)

Re: Unrar problem [raspberry]

Posted: January 3rd, 2016, 12:43 pm
by sander
Can you post the output of:

Code: Select all

which unrar
and

Code: Select all

unrar | head -5
and

Code: Select all

cat ~/.sabnzbd/logs/sabnzbd.log  | grep -i unrar | tail -5
That will give more information about what is going on.

Re: Unrar problem [raspberry]

Posted: January 3rd, 2016, 3:13 pm
by robertus
sander wrote:Can you post the output of:

Code: Select all

which unrar
and

Code: Select all

unrar | head -5
and

Code: Select all

cat ~/.sabnzbd/logs/sabnzbd.log  | grep -i unrar | tail -5
That will give more information about what is going on.

Code: Select all

pi@raspberrypi ~ $ which unrar
/usr/bin/unrar

Code: Select all

pi@raspberrypi ~ $ unrar | head -5

UNRAR 5.30 beta 6 freeware      Copyright (c) 1993-2015 Alexander Roshal

Usage:     unrar <command> -<switch 1> -<switch N> <archive> <files...>
               <@listfiles...> <path_to_extract\>

Code: Select all

pi@raspberrypi ~ $ cat ~/.sabnzbd/logs/sabnzbd.log  | grep -i unrar | tail -5
2015-12-18 12:00:35,528::INFO::[sabnzbdplus:458] unrar binary... found (/usr/local/bin/unrar)
2015-12-18 12:13:46,567::INFO::[sabnzbdplus:458] unrar binary... found (/usr/local/bin/unrar)
2015-12-18 12:16:31,796::INFO::[sabnzbdplus:458] unrar binary... found (/usr/local/bin/unrar)

Re: Unrar problem [raspberry]

Posted: January 3rd, 2016, 4:41 pm
by sander
I think you use an older version of SABnzbd. Can you run SABnzbd 0.8.0 beta4 like below?

First stop SABnzbd.

Then:

Code: Select all

cd
wget 'https://github.com/sabnzbd/sabnzbd/releases/download/0.8.0Beta4/SABnzbd-0.8.0Beta4-src.tar.gz'
tar xvzf SABnzbd-0.8.0Beta4-src.tar.gz 
cd SABnzbd-0.8.0Beta4/
./SABnzbd.py 
After two minutes, stop SABnzbd (CTRL-C), and do this:

Code: Select all

cat ~/.sabnzbd/logs/sabnzbd.log | grep -i unrar
Post that output here.

Result on my Raspbian:

Code: Select all

2016-01-03 22:38:57,131::INFO::[newsunpack:149] UNRAR binary version 5.30
2016-01-03 22:38:57,150::INFO::[SABnzbd:499] UNRAR binary... found (/usr/bin/unrar)

Re: Unrar problem [raspberry]

Posted: January 4th, 2016, 4:11 am
by robertus
sander wrote:I think you use an older version of SABnzbd. Can you run SABnzbd 0.8.0 beta4 like below?

First stop SABnzbd.

Then:

Code: Select all

cd
wget 'https://github.com/sabnzbd/sabnzbd/releases/download/0.8.0Beta4/SABnzbd-0.8.0Beta4-src.tar.gz'
tar xvzf SABnzbd-0.8.0Beta4-src.tar.gz 
cd SABnzbd-0.8.0Beta4/
./SABnzbd.py 
After two minutes, stop SABnzbd (CTRL-C), and do this:

Code: Select all

cat ~/.sabnzbd/logs/sabnzbd.log | grep -i unrar
Post that output here.

Result on my Raspbian:

Code: Select all

2016-01-03 22:38:57,131::INFO::[newsunpack:149] UNRAR binary version 5.30
2016-01-03 22:38:57,150::INFO::[SABnzbd:499] UNRAR binary... found (/usr/bin/unrar)
my version is SABnzbd Version0.6.15

Code: Select all

pi@raspberrypi ~/SABnzbd-0.8.0Beta4 $ cat ~/.sabnzbd/logs/sabnzbd.log | grep -i unrar
2015-12-18 12:00:35,528::INFO::[sabnzbdplus:458] unrar binary... found (/usr/local/bin/unrar)
2015-12-18 12:13:46,567::INFO::[sabnzbdplus:458] unrar binary... found (/usr/local/bin/unrar)
2015-12-18 12:16:31,796::INFO::[sabnzbdplus:458] unrar binary... found (/usr/local/bin/unrar)

Re: Unrar problem [raspberry]

Posted: January 4th, 2016, 4:16 am
by sander
my version is SABnzbd Version0.6.15
That's old.

Re: Unrar problem [raspberry]

Posted: January 4th, 2016, 4:19 am
by robertus
sander wrote:
my version is SABnzbd Version0.6.15
That's old.
anyway i get a version that you suggest. i do the output

i try with this version, the message at the moment disappear.

you know how to autorun sabnzbd at reboot?

with previous version i edit sudo nano /etc/default/sabnzbdplus
USER=pi

but now?

Re: Unrar problem [raspberry]

Posted: January 4th, 2016, 6:07 am
by sander
Before you proceed: can you post the output I asked for?

Re: Unrar problem [raspberry]

Posted: January 4th, 2016, 6:22 am
by robertus
sander wrote:Before you proceed: can you post the output I asked for?

of course, some post ago

http://forums.sabnzbd.org/viewtopic.php ... 42#p103640

with your version

http://forums.sabnzbd.org/viewtopic.php ... 42#p103642

( this output is with your version that you suggest )

Re: Unrar problem [raspberry]

Posted: January 4th, 2016, 3:35 pm
by robertus

Code: Select all

pi@raspberrypi ~/SABnzbd-0.8.0Beta4 $ cat ~/.sabnzbd/logs/sabnzbd.log | grep -i unrar
2015-12-18 12:00:35,528::INFO::[sabnzbdplus:458] unrar binary... found (/usr/local/bin/unrar)
2015-12-18 12:13:46,567::INFO::[sabnzbdplus:458] unrar binary... found (/usr/local/bin/unrar)
2015-12-18 12:16:31,796::INFO::[sabnzbdplus:458] unrar binary... found (/usr/local/bin/unrar)
sander wrote:Before you proceed: can you post the output I asked for?
2016-01-04 20:18:53,739 ERROR: Error "[Errno 8] Exec format error" while running rar_unpack on mydownloads

no way, doesn't unrar :(

Re: Unrar problem [raspberry]

Posted: January 4th, 2016, 3:47 pm
by sander
Your logging is old: december 2015. So where is your current logging of SAB 0.8.0 Beta4?

And why the /usr/local/bin/unrar ? Can you rename that file to something like /usr/local/bin/unrar-OLD, and then run again?

Re: Unrar problem [raspberry]

Posted: January 4th, 2016, 3:58 pm
by robertus
sander wrote:Your logging is old: december 2015. So where is your current logging of SAB 0.8.0 Beta4?

And why the /usr/local/bin/unrar ? Can you rename that file to something like /usr/local/bin/unrar-OLD, and then run again?

i don't know why is old my time in old, how can i fix it? in raspbian is right.

Code: Select all

pi@raspberrypi /usr/local/bin $ ls
indiecity  rar
here i don't have any unrar folder

Re: Unrar problem [raspberry]

Posted: January 4th, 2016, 4:53 pm
by sander
Your time is correct, but probably your SAB logging is now going somewhere else. I don't know where.

Strange that there is no unrar (anymore) in /usr/local/bin/.

You can follow https://forums.sabnzbd.org/viewtopic.php?f=16&t=9844 to update SABnzbd on your system.
First check with

Code: Select all

cat /etc/apt/sources.list | awk '{ print $3 }'
which Debian version you have. Probably jessie, so use that.