Unrar problem [raspberry]

Get help with all aspects of 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.
robertus
Newbie
Newbie
Posts: 10
Joined: January 2nd, 2016, 10:38 am

Unrar problem [raspberry]

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: Unrar problem [raspberry]

Post 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".
robertus
Newbie
Newbie
Posts: 10
Joined: January 2nd, 2016, 10:38 am

Re: Unrar problem [raspberry]

Post 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)
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: Unrar problem [raspberry]

Post 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.
robertus
Newbie
Newbie
Posts: 10
Joined: January 2nd, 2016, 10:38 am

Re: Unrar problem [raspberry]

Post 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)
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: Unrar problem [raspberry]

Post 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)
robertus
Newbie
Newbie
Posts: 10
Joined: January 2nd, 2016, 10:38 am

Re: Unrar problem [raspberry]

Post 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)
Last edited by robertus on January 4th, 2016, 4:18 am, edited 1 time in total.
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: Unrar problem [raspberry]

Post by sander »

my version is SABnzbd Version0.6.15
That's old.
robertus
Newbie
Newbie
Posts: 10
Joined: January 2nd, 2016, 10:38 am

Re: Unrar problem [raspberry]

Post 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?
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: Unrar problem [raspberry]

Post by sander »

Before you proceed: can you post the output I asked for?
robertus
Newbie
Newbie
Posts: 10
Joined: January 2nd, 2016, 10:38 am

Re: Unrar problem [raspberry]

Post 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 )
robertus
Newbie
Newbie
Posts: 10
Joined: January 2nd, 2016, 10:38 am

Re: Unrar problem [raspberry]

Post 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 :(
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: Unrar problem [raspberry]

Post 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?
robertus
Newbie
Newbie
Posts: 10
Joined: January 2nd, 2016, 10:38 am

Re: Unrar problem [raspberry]

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: Unrar problem [raspberry]

Post 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.
Post Reply