Unpack fails on Unrar RAR_COMMAND ?

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.
Post Reply
jadz
Newbie
Newbie
Posts: 5
Joined: June 17th, 2008, 5:14 pm

Unpack fails on Unrar RAR_COMMAND ?

Post by jadz »

Version: 0.3.4
OS: FreeBSD
Install-type: python source
Skin (if applicable): Default
Firewall Software: N/A
Are you using IPV6?: No
Is the issue reproducible? Yes

I'm starting SABnzbd+ from rc.d and am having a problem unraring and am having problems getting newsunpack to unrar my downloads.

I get the following every time. I had some problems at first because python was not in the path at rc.d startup, but I fixed that problem.. I'm now having the problem that I can't seem to unrar the contents. I noticed there is a RAR_COMMAND option that can be set but I couldn't find any documentation to explain what I should put there.

History through the web console gives me the following

Code: Select all

Stage Unrar
    [RAR-INFO]yyyyyyy: => At least one file failed to be unpacked, skipping
The sabnzbd.log gives me the following:

Code: Select all

2008-06-17 02:38:15,438::INFO::[newsunpack] Unrar starting on /media/news_downloads/incomplete/xxxxxxxxxxxxxxxxxxx
2008-06-17 02:38:15,441::INFO::[newsunpack] Extracting rarfile /media/news_downloads/incomplete/xxxxxxxxxxxxxxxxxxx/yyyyyyy.r00 (belonging to yyyyyyy) to /media/news_downloads/__UNPACK_IN_PROGRESS__xxxxxxxxxxxxxxxxxxx
2008-06-17 02:38:15,505::INFO::[newsunpack] Missing expected file: /media/news_downloads/__UNPACK_IN_PROGRESS__xxxxxxxxxxxxxxxxxxx/nice: /bin/unrar e: No such file or directory => unrar error?
2008-06-17 02:38:15,506::INFO::[newsunpack] At least one file failed to be unpacked in /media/news_downloads/incomplete/xxxxxxxxxxxxxxxxxxx/yyyyyyy.r00, skipping
auskento
Moderator
Moderator
Posts: 77
Joined: January 21st, 2008, 8:45 pm
Location: Melbourne, AUS

Re: Unpack fails on Unrar RAR_COMMAND ?

Post by auskento »

It doesnt look like unrar is installed on your system
jadz
Newbie
Newbie
Posts: 5
Joined: June 17th, 2008, 5:14 pm

Re: Unpack fails on Unrar RAR_COMMAND ?

Post by jadz »

I'm quite sure I do have unrar on the system as that is what I use to unrar files manually...

I did manually set the RAR_COMMAND by setting that variable in the newsunpack.py file. I had set it to "/bin/unrar e"

su-2.05b# which unrar
/bin/unrar
Last edited by jadz on June 17th, 2008, 8:08 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Unpack fails on Unrar RAR_COMMAND ?

Post by shypike »

unrar has to be found on the $PATH in the session you use to start SABnzbd.
Do you start SABnzbd in the same circumstances as you do the check with which?
Check the logging at startup, does it say something like "unrar found"?
jadz
Newbie
Newbie
Posts: 5
Joined: June 17th, 2008, 5:14 pm

Re: Unpack fails on Unrar RAR_COMMAND ?

Post by jadz »

2008-06-18 08:31:06,501::INFO::par2 binary... found (/bin/par2)
2008-06-18 08:31:06,501::INFO::rar binary... found (/bin/unrar)
2008-06-18 08:31:06,501::INFO::unzip binary... found (/usr/local/bin/unzip)
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Unpack fails on Unrar RAR_COMMAND ?

Post by shypike »

I suspect that the nice command is missing.

Either that or the nice command is incapable of finding /bin/unrar.
jadz
Newbie
Newbie
Posts: 5
Joined: June 17th, 2008, 5:14 pm

Re: Unpack fails on Unrar RAR_COMMAND ?

Post by jadz »

Can I disable nice by making NICE_COMMAND = "" ? 

I made a symlink from /usr/local/bin/nice to /bin/nice

which nice returns /bin/nice now...
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Unpack fails on Unrar RAR_COMMAND ?

Post by shypike »

The simlink should be OK.
jadz
Newbie
Newbie
Posts: 5
Joined: June 17th, 2008, 5:14 pm

Re: Unpack fails on Unrar RAR_COMMAND ?

Post by jadz »

And all seems to be working now that I made that symlink... Thanks!
Post Reply