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
Post Processing Script Stopped Working
Forum rules
Help us help you:
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.
-
- Newbie
- Posts: 4
- Joined: March 13th, 2018, 6:02 am
Re: Post Processing Script Stopped Working
Maybe you can add a "print sys.argv" before the error and see what input it is getting?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
-
- Newbie
- Posts: 4
- Joined: March 13th, 2018, 6:02 am
Re: Post Processing Script Stopped Working
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?
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?
Re: Post Processing Script Stopped Working
That seems right and how it's always been: https://sabnzbd.org/wiki/scripts/post-p ... ng-scripts
8 + the path to the script.
8 + the path to the script.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
-
- Newbie
- Posts: 4
- Joined: March 13th, 2018, 6:02 am
Re: Post Processing Script Stopped Working
right so why is the length giving 9? can't seem to work this out...
is it a Python thing?
is it a Python thing?
-
- Newbie
- Posts: 4
- Joined: March 13th, 2018, 6:02 am
Re: Post Processing Script Stopped Working
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...