par2 fails after upgrading from 0.7.3 to 0.7.10 on CentOS5

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.
groentebroer
Newbie
Newbie
Posts: 40
Joined: July 1st, 2008, 8:47 am

Re: par2 fails after upgrading from 0.7.3 to 0.7.10 on CentO

Post by groentebroer »

Hi,

The problem seemed to be related to the par2cmdline I was using. This version did not correctly supported the commandline given by SABnzbd.

I installed par2 tbb from: http://chuchusoft.com/par2_tbb/index.html which works fine now.

Thanks for the help all.

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

Re: par2 fails after upgrading from 0.7.3 to 0.7.10 on CentO

Post by shypike »

Good that it's solved.
Kind of weird though, the stock par2cmdline seems to work fine on most platforms.
Tscherno
Newbie
Newbie
Posts: 7
Joined: July 25th, 2010, 7:16 am

Re: par2 fails after upgrading from 0.7.3 to 0.7.10 on CentO

Post by Tscherno »

Hi,

i have the same issue (i think since i upgraded to the latest version of my synology box) for every download:

2013-07-16 16:19:53,734::DEBUG::[newsunpack:950] Par2-classic = True
2013-07-16 16:19:53,745::DEBUG::[newsunpack:975] Starting par2: ['/var/packages/baseutils/target/utils/bin/par2', 'r', '/volume1/public/SABnzbd/download/adsf/asdf.par2', '/volume1/public/SABnzbd/download/asdf/*']
2013-07-16 16:19:53,801::INFO::[downloader:664] Thread [email protected]:80: forcing disconnect
2013-07-16 16:19:53,852::DEBUG::[newsunpack:1267] PAR2 output was
The source file does not exist: /volume1/public/SABnzbd/download/asdf/__ADMIN__
par2cmdline version 0.4, Copyright (C) 2003 Peter Brian Clements.
par2cmdline comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it and/or modify
it under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version. See COPYING for details.
Usage:
par2 c(reate) [options] <par2 file> [files] : Create PAR2 files
par2 v(erify) [options] <par2 file> [files] : Verify files using PAR2 file
par2 r(epair) [options] <par2 file> [files] : Repair files using PAR2 files
You may also leave out the "c", "v", and "r" commands by using "parcreate",
"par2verify", or "par2repair" instead.
Options:
-b<n> : Set the Block-Count
-s<n> : Set the Block-Size (Don't use both -b and -s)
-r<n> : Level of Redundancy (%%)
-c<n> : Recovery block count (Don't use both -r and -c)
-f<n> : First Recovery-Block-Number
-u : Uniform recovery file sizes
-l : Limit size of recovery files (Don't use both -u and -l)
-n<n> : Number of recovery files (Don't use both -n and -l)
-m<n> : Memory (in MB) to use
-v [-v]: Be more verbose
-q [-q]: Be more quiet (-q -q gives silence)
-- : Treat all remaining CommandLine as filenames
If you wish to create par2 files for a single source file, you may leave
out the name of the par2 file from the command line.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: par2 fails after upgrading from 0.7.3 to 0.7.10 on CentO

Post by shypike »

Looks like it has nothing to do with par2 itself. I will look into it.
Starshadow
Newbie
Newbie
Posts: 14
Joined: August 14th, 2013, 12:23 pm

Re: par2 fails after upgrading from 0.7.3 to 0.7.10 on CentO

Post by Starshadow »

I am experiencing this same problem on Gentoo Linux (kernel version 3.10.5-gentoo-r1). I tested the commit made on github to the 0.7.x branch on Aug 12, 2013 where the __ADMIN__ folder is changed to .admin. Unfortunately, I have to report that it did not solve the problem for me.

Code: Select all

2013-08-14 13:12:26,103::INFO::[SABnzbd:1257] SABnzbd.py-0.7.x (rev=unknown)
2013-08-14 13:12:26,103::INFO::[SABnzbd:1269] Platform = posix
2013-08-14 13:12:26,103::INFO::[SABnzbd:1270] Python-version = 2.7.5 (default, Jul 12 2013, 12:05:41)
[GCC 4.7.3]
...snip...
2013-08-14 13:14:52,316::INFO::[postproc:548] Par2 check starting on test.par2
2013-08-14 13:14:52,317::INFO::[__init__:859] /home/starshadow/incoming/SABnzbd/download/.admin/__verified__ missing
2013-08-14 13:14:52,317::INFO::[postproc:569] Running repair on set test
2013-08-14 13:14:52,317::DEBUG::[newsunpack:1420] Quick-check of file test.r08 OK
2013-08-14 13:14:52,317::DEBUG::[newsunpack:1420] Quick-check of file test.r09 OK
2013-08-14 13:14:52,317::DEBUG::[newsunpack:1420] Quick-check of file test.r24 OK
2013-08-14 13:14:52,317::INFO::[newsunpack:1427] Cannot Quick-check missing file test.r25!
2013-08-14 13:14:52,317::INFO::[newsunpack:838] Scanning "/home/starshadow/incoming/SABnzbd/download/test.par2"
2013-08-14 13:14:52,318::DEBUG::[newsunpack:1393] build_filelists(): joinables: []
2013-08-14 13:14:52,318::DEBUG::[newsunpack:1394] build_filelists(): zips: []
2013-08-14 13:14:52,318::DEBUG::[newsunpack:1395] build_filelists(): rars: ['/home/starshadow/incoming/SABnzbd/download/test.rar', '/home/starshadow/incoming/SABnzbd/download/test.r00', '/home/starshadow/incoming/SABnzbd/download/test.r01', '/home/starshadow/incoming/SABnzbd/download/test.r02', '/home/starshadow/incoming/SABnzbd/download/test.r03', '/home/starshadow/incoming/SABnzbd/download/test.r04', '/home/starshadow/incoming/SABnzbd/download/test.r05', '/home/starshadow/incoming/SABnzbd/download/test.r06', '/home/starshadow/incoming/SABnzbd/download/test.r07', '/home/starshadow/incoming/SABnzbd/download/test.r08', '/home/starshadow/incoming/SABnzbd/download/test.r09', '/home/starshadow/incoming/SABnzbd/download/test.r10', '/home/starshadow/incoming/SABnzbd/download/test.r11', '/home/starshadow/incoming/SABnzbd/download/test.r12', '/home/starshadow/incoming/SABnzbd/download/test.r13', '/home/starshadow/incoming/SABnzbd/download/test.r14', '/home/starshadow/incoming/SABnzbd/download/test.r15', '/home/starshadow/incoming/SABnzbd/download/test.r16', '/home/starshadow/incoming/SABnzbd/download/test.r17', '/home/starshadow/incoming/SABnzbd/download/test.r18', '/home/starshadow/incoming/SABnzbd/download/test.r19', '/home/starshadow/incoming/SABnzbd/download/test.r20', '/home/starshadow/incoming/SABnzbd/download/test.r21', '/home/starshadow/incoming/SABnzbd/download/test.r22', '/home/starshadow/incoming/SABnzbd/download/test.r23', '/home/starshadow/incoming/SABnzbd/download/test.r24']
2013-08-14 13:14:52,318::DEBUG::[newsunpack:1396] build_filelists(): ts: []
2013-08-14 13:14:52,318::DEBUG::[newsunpack:950] Par2-classic = True
2013-08-14 13:14:52,319::DEBUG::[newsunpack:975] Starting par2: ['/usr/bin/par2', 'r', '/home/starshadow/incoming/SABnzbd/download/test.par2', '/home/starshadow/incoming/SABnzbd/download/*']
2013-08-14 13:14:52,327::DEBUG::[newsunpack:1267] PAR2 output was
The source file does not exist: /home/starshadow/incoming/SABnzbd/download/.admin
par2cmdline version 0.4, Copyright (C) 2003 Peter Brian Clements.
par2cmdline comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it and/or modify
it under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version. See COPYING for details.
Usage:
par2 c(reate) [options] <par2 file> [files] : Create PAR2 files
par2 v(erify) [options] <par2 file> [files] : Verify files using PAR2 file
par2 r(epair) [options] <par2 file> [files] : Repair files using PAR2 files
You may also leave out the "c", "v", and "r" commands by using "parcreate",
"par2verify", or "par2repair" instead.
Options:
-b<n>  : Set the Block-Count
-s<n>  : Set the Block-Size (Don't use both -b and -s)
-r<n>  : Level of Redundancy (%%)
-c<n>  : Recovery block count (Don't use both -r and -c)
-f<n>  : First Recovery-Block-Number
-u     : Uniform recovery file sizes
-l     : Limit size of recovery files (Don't use both -u and -l)
-n<n>  : Number of recovery files (Don't use both -n and -l)
-m<n>  : Memory (in MB) to use
-v [-v]: Be more verbose
-q [-q]: Be more quiet (-q -q gives silence)
--     : Treat all remaining CommandLine as filenames
If you wish to create par2 files for a single source file, you may leave
out the name of the par2 file from the command line.
2013-08-14 13:14:52,327::INFO::[newsunpack:856] Par verify failed on /home/starshadow/incoming/SABnzbd/download/test.par2!
I really appreciate your attention to this issue. It sucks to have to manually download and repair par files! Please let me know if I can provide any more information.

Edit: I've noticed when I run this command directly from a shell:

Code: Select all

/usr/bin/par2 r /home/starshadow/incoming/SABnzbd/download/test.par2 /home/starshadow/incoming/SABnzbd/download/*
Everything works as expected.

Edit2: I did some more research and I just compiled a fork of par2cmdline that has "Ignore non-existent source file" behavior, and that solved my problem at hand. Here is the fork in case anyone wants to use this solution: https://github.com/eMPee584/par2cmdline
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: par2 fails after upgrading from 0.7.3 to 0.7.10 on CentO

Post by shypike »

It's likely the same issue, it will be fixed in 0.7.15
The root cause is a problem in either the par2cmdline tool or the bash shell of the OS.
User avatar
zaadstra
Newbie
Newbie
Posts: 20
Joined: January 5th, 2013, 7:49 pm

Re: par2 fails after upgrading from 0.7.3 to 0.7.10 on CentO

Post by zaadstra »

That is great news! :-)
reni
Newbie
Newbie
Posts: 5
Joined: January 5th, 2012, 4:51 am

Re: par2 fails after upgrading from 0.7.3 to 0.7.10 on CentO

Post by reni »

I had the same issue and applied the follow commit:
https://github.com/sabnzbd/sabnzbd/comm ... 20fffe08e4

On my QNAP with a par2cmd without wildcard support this atleast made the failed releases complete again after a retry.
I guess the wildcard was to fix the repair of badly named par2 files, not sure if this commit reverts the fix for that.

But apperently i had more releases that failed due to wildcard then to weird par2 files.
Post Reply