Page 1 of 1

Unpack fails on Unrar RAR_COMMAND ?

Posted: June 17th, 2008, 5:24 pm
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

Re: Unpack fails on Unrar RAR_COMMAND ?

Posted: June 17th, 2008, 6:37 pm
by auskento
It doesnt look like unrar is installed on your system

Re: Unpack fails on Unrar RAR_COMMAND ?

Posted: June 17th, 2008, 8:01 pm
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

Re: Unpack fails on Unrar RAR_COMMAND ?

Posted: June 18th, 2008, 1:43 am
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"?

Re: Unpack fails on Unrar RAR_COMMAND ?

Posted: June 18th, 2008, 6:17 am
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)

Re: Unpack fails on Unrar RAR_COMMAND ?

Posted: June 18th, 2008, 9:59 am
by shypike
I suspect that the nice command is missing.

Either that or the nice command is incapable of finding /bin/unrar.

Re: Unpack fails on Unrar RAR_COMMAND ?

Posted: June 18th, 2008, 10:11 am
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...

Re: Unpack fails on Unrar RAR_COMMAND ?

Posted: June 18th, 2008, 10:51 am
by shypike
The simlink should be OK.

Re: Unpack fails on Unrar RAR_COMMAND ?

Posted: June 18th, 2008, 10:51 am
by jadz
And all seems to be working now that I made that symlink... Thanks!