Page 1 of 1

Post Processing Script Stopped Working

Posted: March 13th, 2018, 6:18 am
by nzbds-dude82
Hi everyone,

Hope someone can help me with my issue. I noticed that my post processing script has stopped working and I am not sure why. I checked my logs for both SickBeard and CouchPotato and it says "Invalid number of arguments received from client."

I did notice this only happens if len(sys.argv) is anything but 8 or 3. I cannot for the life of me figure out how this all ties together and where the number is derived from.

Has anyone seen this happen and was able to fix it?
- I've redone the set up steps to see if there were issues with the connection or whatnot
- I checked and Sickbeard and CouchPotato can connect to Sabnzbd
- it's only the post processing script that fails...

I this this started to happen when I updated my Packages in Synology...

SABnzbd Version: 2.3.1-33
SickBeard Version: 20140528-5
CouchPotato version: 20141013-6

Re: Post Processing Script Stopped Working

Posted: March 13th, 2018, 9:09 am
by safihre
Maybe you can add a "print sys.argv" before the error and see what input it is getting?

Re: Post Processing Script Stopped Working

Posted: March 14th, 2018, 5:35 am
by nzbds-dude82
Hi,

I've attached an image to the output of the log after putting in:

print (sys.argv)

print sys.argv (with the parameters split out)

Is there something amiss here?

Image

Re: Post Processing Script Stopped Working

Posted: March 14th, 2018, 5:44 am
by safihre
That seems right and how it's always been: https://sabnzbd.org/wiki/scripts/post-p ... ng-scripts
8 + the path to the script.

Re: Post Processing Script Stopped Working

Posted: March 14th, 2018, 6:17 am
by nzbds-dude82
right so why is the length giving 9? can't seem to work this out...

is it a Python thing?

Re: Post Processing Script Stopped Working

Posted: March 14th, 2018, 6:25 am
by nzbds-dude82
oh wait: there are 9 parameters in the sys.argv... i just upaded the if statement to look for 9 instead of 8 and it works...