Error 87 - The parameter is incorrect

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.
gaber
Newbie
Newbie
Posts: 8
Joined: June 8th, 2014, 4:10 pm

Error 87 - The parameter is incorrect

Post by gaber »

Hello all, this is my first time posting (I've lurked before). I am trying to learn how to interpret these logs so I can be self sufficient, but I am just getting into it really. I saw the error mentioned in the title today, and when I dug into the sabnzbd log I saw this:

2014-06-08 17:07:04,703::ERROR::[newsunpack:876] Error [Error 87] The parameter is incorrect while running par2_repair on set 59e8ec484ed2b56b9b49b0a2b4f40ad9
2014-06-08 17:07:04,717::INFO::[newsunpack:877] Traceback:
Traceback (most recent call last):
File "sabnzbd\newsunpack.pyo", line 854, in par2_repair
File "sabnzbd\newsunpack.pyo", line 1280, in PAR_Verify
WindowsError: [Error 87] The parameter is incorrect

As I am no python programmer, I thought I'd ask someone here to see what those lines contain, and whether this is a bug or something wrong with my download (much more likely the latter). I'd just go download again, however it is a fairly large data set that I'd prefer to try to fix first.

Thanks in advance for the help!


EDIT: So I am guessing that I need to supply more info to this post since it specifies a parameter being incorrect and that it is in the unpack code. Does the parameter referred to here exist in the nzb file itself?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Error 87 - The parameter is incorrect

Post by shypike »

Check Config->Switches for the extra par2 parameters.
Make sure it's empty.
gaber
Newbie
Newbie
Posts: 8
Joined: June 8th, 2014, 4:10 pm

Re: Error 87 - The parameter is incorrect

Post by gaber »

shypike wrote:Check Config->Switches for the extra par2 parameters.
Make sure it's empty.
Thank you for your response. It is indeed empty.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1032
Joined: February 7th, 2008, 12:45 pm

Re: Error 87 - The parameter is incorrect

Post by jcfp »

gaber wrote:EDIT: So I am guessing that I need to supply more info to this post since it specifies a parameter being incorrect and that it is in the unpack code. Does the parameter referred to here exist in the nzb file itself?
Try debug logging (see status page or command line param '--logging 2'), that should show all parameters sent to subprocesses such a par2.
gaber
Newbie
Newbie
Posts: 8
Joined: June 8th, 2014, 4:10 pm

Re: Error 87 - The parameter is incorrect

Post by gaber »

Thank you for the response jcfp. I am indeed using debug logging already - where will I see the subprocesses?
User avatar
jcfp
Release Testers
Release Testers
Posts: 1032
Joined: February 7th, 2008, 12:45 pm

Re: Error 87 - The parameter is incorrect

Post by jcfp »

Code says this:

Code: Select all

logging.debug('Starting par2: %s', command)
So search for "Starting par2" in the debug log of any job that gives you that repair error to find the relevant line(s).
gaber
Newbie
Newbie
Posts: 8
Joined: June 8th, 2014, 4:10 pm

Re: Error 87 - The parameter is incorrect

Post by gaber »

jcfp wrote:Code says this:

Code: Select all

logging.debug('Starting par2: %s', command)
So search for "Starting par2" in the debug log of any job that gives you that repair error to find the relevant line(s).
Right - so that is the original error I posted that found after the par2 process starts:

2014-06-08 17:07:04,703::ERROR::[newsunpack:876] Error [Error 87] The parameter is incorrect while running par2_repair on set 59e8ec484ed2b56b9b49b0a2b4f40ad9
2014-06-08 17:07:04,717::INFO::[newsunpack:877] Traceback:
Traceback (most recent call last):
File "sabnzbd\newsunpack.pyo", line 854, in par2_repair
File "sabnzbd\newsunpack.pyo", line 1280, in PAR_Verify
WindowsError: [Error 87] The parameter is incorrect


Or am I looking for something else?
User avatar
jcfp
Release Testers
Release Testers
Posts: 1032
Joined: February 7th, 2008, 12:45 pm

Re: Error 87 - The parameter is incorrect

Post by jcfp »

As I said, a debug log. And the excerpt you posted in the topic start isn't from one of those.
gaber
Newbie
Newbie
Posts: 8
Joined: June 8th, 2014, 4:10 pm

Re: Error 87 - The parameter is incorrect

Post by gaber »

jcfp wrote:As I said, a debug log. And the excerpt you posted in the topic start isn't from one of those.
Fair enough - though I don't see where it puts the debug log. It is not in that same directory.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Error 87 - The parameter is incorrect

Post by shypike »

You can download the logfile from the Status page, where you also set the level to "Debug".
gaber
Newbie
Newbie
Posts: 8
Joined: June 8th, 2014, 4:10 pm

Re: Error 87 - The parameter is incorrect

Post by gaber »

Ok, so the debug line shows:

Starting par2: ['C:\\Program Files\\SABnzbd\\win\\par2\\par2.exe', 'r', <then all of the file names>

The next line is the Error:

Error [Error 87] The parameter is incorrect while running par2_repair on set <GUID>
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Error 87 - The parameter is incorrect

Post by shypike »

Can you email the actual content of the log file?
bugs@sabnzbd.org and please include the URL of this message.
gaber
Newbie
Newbie
Posts: 8
Joined: June 8th, 2014, 4:10 pm

Re: Error 87 - The parameter is incorrect

Post by gaber »

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

Re: Error 87 - The parameter is incorrect

Post by shypike »

What is sent to par2 is an awful lot, that should not be the case.
I can imagine that the Error 87 is caused by an overload of filenames.
Can you also email me the original NZB file?
gaber
Newbie
Newbie
Posts: 8
Joined: June 8th, 2014, 4:10 pm

Re: Error 87 - The parameter is incorrect

Post by gaber »

Sent.
Post Reply