Par2 not working correctly in Python source

Report & discuss bugs found in 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Par2 not working correctly in Python source

Post 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.
Glen
Release Testers
Release Testers
Posts: 6
Joined: December 26th, 2010, 2:56 am

Re: Par2 not working correctly in Python source

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Par2 not working correctly in Python source

Post 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.
Glen
Release Testers
Release Testers
Posts: 6
Joined: December 26th, 2010, 2:56 am

Re: Par2 not working correctly in Python source

Post by Glen »

I've sent an nzb that showed the problem yesterday.

Cheers

Glen.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Par2 not working correctly in Python source

Post 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).
Post Reply