Debian server unrar problems

Support for the Debian/Ubuntu package, created by JCFP.
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.
bmarra
Newbie
Newbie
Posts: 13
Joined: January 17th, 2013, 5:02 am

Debian server unrar problems

Post by bmarra »

Hi, I have installed sabnzbd version 0.7.9 on my x64 Debian server and everything is working as it should downloading etc but even though I am using the recommended version of unrar from here 64bit: http://www.rarlab.com/rar/rarlinux-4.1.1.tar.gz
I still get the message "Your UNRAR version is not recommended, get it from http://www.rarlab.com/rar_add.htm"

I have been trying for days to fix it but I'm really struggling now I wouldn't say I'm totally new to linux but I'm hardly a pro, All my downloads are going great but the files are not getting unrared I have checked my log and have this

WARNING::[sabnzbdplus:469] unrar binary... NOT found 2013-01-11 19:19:22,519::INFO::[sabnzbdplus:472] unzip binary... found (/usr/bin/unzip)
yet when I check unrar I get
UNRAR 4.11 freeware Copyright (c) 1993-2012 Alexander Roshal
which I believe should be ok, Can anyone tell me what I'm doing wrong any help at all would be great, thanks.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1022
Joined: February 7th, 2008, 12:45 pm

Re: Debian server unrar problems

Post by jcfp »

The packaged unrar version supplied by debian in non-free (i.e. 'unrar', not 'unrar-free') will work just fine, consider using that. Manual installs may suffer from PATH issues, where depending on the environment the (correct) binary may not be found. Init scripts especially search only a limited PATH that doesn't include anything in user homedirs, so the results can be quite different compared to what you see when running unrar in a terminal window.
bmarra
Newbie
Newbie
Posts: 13
Joined: January 17th, 2013, 5:02 am

Re: Debian server unrar problems

Post by bmarra »

Thank for the reply, I just tried to install unrar but I got this

apt-get install unrar
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package unrar is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'unrar' has no installation candidate

Am I doing something wrong?, thanks again.

edit: I just uninstalled unrar and unrar-free to make sure I'm not confusing matters but even after uninstalling them when I check unrar I still get
UNRAR 4.11 freeware Copyright (c) 1993-2012 Alexander Roshal
could this be a problem?
bmarra
Newbie
Newbie
Posts: 13
Joined: January 17th, 2013, 5:02 am

Re: Debian server unrar problems

Post by bmarra »

sorry to reply to my own post but I got rid of unrar totally and reinstalled "apt-get install unrar" and now I get,
UNRAR 3.93 freeware Copyright (c) 1993-2010 Alexander Roshal

but because i'm a total idiot I hadn't realised I wasn't reading the log properly and it was finding unrar but that leaves me with a new problem,
Why is unrar being found but not unraring any of my downloads I've tried several today but everyone as finished downloading and when I have checked the folders they're all still packed, Any help would be appreciated, thanks.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Debian server unrar problems

Post by shypike »

Do all NZBs have the "+Delete" label in the queue?
bmarra
Newbie
Newbie
Posts: 13
Joined: January 17th, 2013, 5:02 am

Re: Debian server unrar problems

Post by bmarra »

shypike wrote:Do all NZBs have the "+Delete" label in the queue?
Thanks for the reply, yes they all have +Delete
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Debian server unrar problems

Post by shypike »

What does the download report say?
Set logging level to Debug on the Status page.
Download something.
Check the log on the Status page.
The interesting bit should be at the end of the log.
bmarra
Newbie
Newbie
Posts: 13
Joined: January 17th, 2013, 5:02 am

Re: Debian server unrar problems

Post by bmarra »

04:05:48,474::INFO::[newsunpack:684] Skipping unrar file check due to unreliable file names or old unrar
2013-01-18 04:05:48,475::INFO::[newsunpack:689] Unpacked 0 files/folders in 0 seconds
2013-01-18 04:05:48,475::DEBUG::[newsunpack:436] rar_unpack(): Rars: []
2013-01-18 04:05:48,475::DEBUG::[newsunpack:437] rar_unpack(): Newfiles: []
2013-01-18 04:05:48,475::INFO::[newsunpack:211] Unrar finished on

Is this the info you wanted I currently get this from unrar
UNRAR 3.93 freeware Copyright (c) 1993-2010 Alexander Roshal
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Debian server unrar problems

Post by shypike »

So SABnzbd does run the unrar tool, but somehow it doesn't unpack anything, nor does it report any errors.
Are the rar files transported to the "complete" folder in the end?
Try running the unrar tool from command prompt.
"cd" to the folder with the rar files and type
unrar x name-of-first-rar-001.rar
bmarra
Newbie
Newbie
Posts: 13
Joined: January 17th, 2013, 5:02 am

Re: Debian server unrar problems

Post by bmarra »

I'm sorry for taking so long to reply but being newish to Linux I messed up somewhere and basically I have just had to do a total reinstall, I've got everything else installed the only thing I haven't done yet is installed sabnzbd, would you advise just getting up to where I was in this thread or is there a tutorial about I should follow to avoid the problems I've had here. I followed this video the first time
http://www.linuxdistrocommunity.com/vid ... qwPyG7W9Ac

thanks for your help it's really appreciated.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1022
Joined: February 7th, 2008, 12:45 pm

Re: Debian server unrar problems

Post by jcfp »

Installing sabnzbdplus isn't any different than other packages. Just make sure contrib and non-free are enabled on your system before you start (google knows how) or there'll be no sabnzbdplus and/or unrar packages available.

Instructions for getting the latest version in debian by using the ubuntu ppa are here. The tutorial at linuxdistrocommunity.com you linked to essentially does the same, except that they unnecessarily make the installation of dependencies a separate step instead of relying on the package manager to take care of that.
bmarra
Newbie
Newbie
Posts: 13
Joined: January 17th, 2013, 5:02 am

Re: Debian server unrar problems

Post by bmarra »

Thanks jcfp my internet was down yesterday so I just sat down to get it sorted funny enough I just followed your tut about 2 minutes ago I'm not sure how I missed it as a rule on any forum I always check the stickies and do a search. I had my configs backed up so I'm ready to go everything's running and I'm basically where I was before I messed up my server when I go to sab through the browser I get the message "No UNRAR program found, unpacking RAR files is not possible" obviously I understand but before I go any further and start installing and uninstalling unrar can you tell me which is the recommended version, cheers.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1022
Joined: February 7th, 2008, 12:45 pm

Re: Debian server unrar problems

Post by jcfp »

post the output of

Code: Select all

apt-cache policy unrar
bmarra
Newbie
Newbie
Posts: 13
Joined: January 17th, 2013, 5:02 am

Re: Debian server unrar problems

Post by bmarra »

unrar:
Installed: (none)
Candidate: (none)
Version table:
User avatar
jcfp
Release Testers
Release Testers
Posts: 1022
Joined: February 7th, 2008, 12:45 pm

Re: Debian server unrar problems

Post by jcfp »

So you still don't have non-free enabled and the unrar package from there installed... :-\
Post Reply