PAR2 and Unrar not working.

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
jeff_porter
Newbie
Newbie
Posts: 25
Joined: February 13th, 2008, 5:02 pm

PAR2 and Unrar not working.

Post by jeff_porter »

Hello all,

I'm having trouble getting Par2 and Unrar working.

I get the following message in the log files...

2008-02-16 11:42:19,308::INFO::_yenc module... NOT found!
2008-02-16 11:42:19,313::INFO::celementtree module... NOT found!
2008-02-16 11:42:19,317::INFO::par2 binary... NOT found!
2008-02-16 11:42:19,322::INFO::rar binary... NOT found
2008-02-16 11:42:19,326::INFO::unzip binary... NOT found!
2008-02-16 11:42:19,331::WARNING::Perl interpreter... NOT found, cannot EMail!

If I log into the box (Unix/DS107e) I can type par2 or par2repair or unrar and they are found/work.

Can anyone give me some advice on this please?

Thanks
Jeff
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: PAR2 and Unrar not working.

Post by shypike »

The _yenc and celemtree messages mean that you did not install these Python modules.
Also, it looks like you don't have Perl installed (required for email).

The rest, I'm not sure. You could try the attached test script.
It should produce some thing like this:
!usr!bin!par2
!usr!bin!unrar
!usr!bin!nice
!usr!bin!unzip
!usr!bin!perl

(The slashes have been replaced by ! chars, to bypass the idiot security filter that this forum uses.)

If anything is missing, it means that SABnzbd cannot find it using the $PATH variable.
jeff_porter
Newbie
Newbie
Posts: 25
Joined: February 13th, 2008, 5:02 pm

Re: PAR2 and Unrar not working.

Post by jeff_porter »

I get the following back...

DiskStation> python testpath.py.txt
/volume1/opt/bin/par2
/volume1/opt/bin/unrar
/volume1/opt/bin/unzip

so its on the path.

But I'm not sure why SAB can't find them.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: PAR2 and Unrar not working.

Post by shypike »

Which SABnzbd version do you use?
Older ones are sensitive to where they start from.

Try this:

cd full-path-to-sabnzbd
python SABnzbd.py "whatever options"

If that doesn't work, I'm afraid that you need to add additional "print" statements in the
Python code to find this problem.
The code is located in the file "newsunpack.py" in the folder sabnzbd.
DeXeS
Release Testers
Release Testers
Posts: 206
Joined: January 28th, 2008, 1:04 pm
Location: The Netherlands

Re: PAR2 and Unrar not working.

Post by DeXeS »

Reinstall one of the modules (par2, yenc etc) again and see if that helps... I have no problems with any of the versions of sab on my Ubuntu server(linux).

edit: I see that you got the same problem with the older versions http://synology.com/enu/forum/viewtopic ... da9384b4b0
Did you manage to fix it with the old version?

did you get any errors or found strange things when installing SABnzbd by the instructions from that forum/site?
Last edited by DeXeS on February 16th, 2008, 1:13 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: PAR2 and Unrar not working.

Post by shypike »

Ubuntu is tested by the core team, NAS/SAN's are not.
However, I suggest you send "mdamen" a personal message through this forum,
he's working  on SABnzbd on Synology sytems.
I know he has it running on his box.
jeff_porter
Newbie
Newbie
Posts: 25
Joined: February 13th, 2008, 5:02 pm

Re: PAR2 and Unrar not working.

Post by jeff_porter »

thanks for the support guys.

I think I've got it working now.

I updated from 3.1RC1 to 3.1 and changed back to the normal template (not plush).

It seems to be working now, so I'm going to let it run for a week and then change the template again.

Thanks again.

Jeff Porter
jeff_porter
Newbie
Newbie
Posts: 25
Joined: February 13th, 2008, 5:02 pm

Re: PAR2 and Unrar not working.

Post by jeff_porter »

ok, so I setup my box to download, par2 and unrar a file last night.

But I got these error messages...

2008-02-19 03:40:52,017 ERROR [newsunpack] Unknown exception while running par2_repair on set xor-pb.313 Traceback (most recent call last): File "/volume1/opt/SABnzbd-0.3.1/sabnzbd/newsunpack.py", line 598, in par2_repair actionname, joinables) File "/volume1/opt/SABnzbd-0.3.1/sabnzbd/newsunpack.py", line 687, in PAR_Verify startupinfo=stup, creationflags=creationflags) File "/opt/lib/python2.4/subprocess.py", line 543, in __init__ errread, errwrite) File "/opt/lib/python2.4/subprocess.py", line 975, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

2008-02-19 03:40:52,371 ERROR [newsunpack] Unknown exception while running rar_unpack on PB.nzb Traceback (most recent call last): File "/volume1/opt/SABnzbd-0.3.1/sabnzbd/newsunpack.py", line 317, in rar_unpack nzo, actionname, extraction_path) File "/volume1/opt/SABnzbd-0.3.1/sabnzbd/newsunpack.py", line 380, in RAR_Extract startupinfo=stup, creationflags=creationflags) File "/opt/lib/python2.4/subprocess.py", line 543, in __init__ errread, errwrite) File "/opt/lib/python2.4/subprocess.py", line 975, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Now I'm guessing the unrar failed since par2 failed.
But I'm not sure why par2 failed.

I'm pretty sure that /opt/ is linked from /volume1/opt/, I'll double check this when I get home though.
Its possible I used a softlink and the box has been rebooted.

What do you lot think?
jeff_porter
Newbie
Newbie
Posts: 25
Joined: February 13th, 2008, 5:02 pm

Re: PAR2 and Unrar not working.

Post by jeff_porter »

ok, so the link is a hard link.

Line 975 of Subprocess is this...

            # Parent
            os.close(errpipe_write)
            if p2cread and p2cwrite:
                os.close(p2cread)
            if c2pwrite and c2pread:
                os.close(c2pwrite)
            if errwrite and errread:
                os.close(errwrite)

            # Wait for exec to fail or succeed; possibly raising exception
            data = os.read(errpipe_read, 1048576) # Exceptions limited to 1 MB
            os.close(errpipe_read)
            if data != "":
                os.waitpid(self.pid, 0)
                child_exception = pickle.loads(data)
                raise child_exception #THIS IS 975


Any ideas?

Jeff Porter
jeff_porter
Newbie
Newbie
Posts: 25
Joined: February 13th, 2008, 5:02 pm

Re: PAR2 and Unrar not working.

Post by jeff_porter »

Note: I hand cranked Par2repair on my files and download is good.

"All files are correct, repair is not required."
jeff_porter
Newbie
Newbie
Posts: 25
Joined: February 13th, 2008, 5:02 pm

Re: PAR2 and Unrar not working.

Post by jeff_porter »

anyone got any tips for me to try and resolve this?

;D
DeXeS
Release Testers
Release Testers
Posts: 206
Joined: January 28th, 2008, 1:04 pm
Location: The Netherlands

Re: PAR2 and Unrar not working.

Post by DeXeS »

I have no advice... have you mailed mdamen as Shypike suggested?
shypike wrote: However, I suggest you send "mdamen" a personal message through this forum,
he's working  on SABnzbd on Synology sytems.
I know he has it running on his box.
jeff_porter
Newbie
Newbie
Posts: 25
Joined: February 13th, 2008, 5:02 pm

Re: PAR2 and Unrar not working.

Post by jeff_porter »

success!!

;D ;D

It was one of several things, not sure which, but I did the following...

Delete the SABnzb.ini file and let the system create a new one.

Apply 777 to all files/directories etc.

Can't remember what the 3rd thing I did was.
DeXeS
Release Testers
Release Testers
Posts: 206
Joined: January 28th, 2008, 1:04 pm
Location: The Netherlands

Re: PAR2 and Unrar not working.

Post by DeXeS »

;D
nice that it's working now!
Post Reply