Page 2 of 2

Re: Par2 not working correctly in Python source

Posted: January 16th, 2011, 8:51 am
by shypike
How do you start SABnzbd?
If you run it from some init.d script, it's very likely that this script has a limited PATH variable
so that SABnzbd cannot find the program.
Interactive shells usually have a more complete PATH.
Check which PATH SABnzbd gets and whether the par2 program is reachable with this PATH.

Re: Par2 not working correctly in Python source

Posted: January 16th, 2011, 10:33 am
by Glen
Par2 must be pathed, as it is clearly mentioned in the log files I've sent you today.

Notably

2010-10-06 14:45:09,063::INFO::[postproc:247] Par2 check starting on #a.b.mm@efnet - req 59336 - xxxxxxxxxxxxxx

par2 creates additional join files, but never actually rejoins the files. Whenever I run the windows version of par2 on the files that are left behind after sabnzbd has failed the download, all that is required is for the files to be rejoined.

Please check the email I sent to bugs@sabnzbd for screenshots and a complete log file.

Cheers

Glen.

Re: Par2 not working correctly in Python source

Posted: January 16th, 2011, 11:51 am
by shypike
Glen wrote: Please check the email I sent to bugs@sabnzbd for screenshots and a complete log file.
Gmail thinks your email advertises little blue pills :), I had to recover it from the spam box.
The most important info is missing: the NZB file in case.
Can you send that too? Or another one with the same behaviour.

Re: Par2 not working correctly in Python source

Posted: January 16th, 2011, 12:08 pm
by Glen
I've sent an nzb that showed the problem yesterday.

Cheers

Glen.

Re: Par2 not working correctly in Python source

Posted: January 16th, 2011, 12:44 pm
by shypike
There's noting wrong with the NZB file itself and it downloads properly on Windows (even with a deliberately damaged NZB file).
(I will test later on Ubuntu)
The actual test to do is not running QuickPar on Windows, but running par2 on the server manually.
Just this should do:
cd /where-your-files-are
par2 r name-of-any-par2-file.par2

If par2 fails here, then there's nothing more I can do.
If not, then things become interesting (from a SABnzbd perspective).