[resolved]2.3.2RC1 on Zesty ; Error on pre queu scripts

Support for the Debian/Ubuntu package, created by JCFP.
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.
Post Reply
GzergzSra
Newbie
Newbie
Posts: 5
Joined: December 1st, 2017, 3:41 pm

[resolved]2.3.2RC1 on Zesty ; Error on pre queu scripts

Post by GzergzSra »

Hi,
Since yesterday and an update of Python and Sabnzbd, my pre-queue scripts doesn't works anymore.

This is the error in logs :

Code: Select all

2017-12-01 21:05:12,229::DEBUG::[newsunpack:2306] Failed script Traceback: 
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/sabnzbd/newsunpack py", line 2304, in pre_queue
    startupinfo=stup, env=env, creationflags=creationflags)
  File "/usr/lib/python2.7/subprocess py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess py", line 1024, in _execute_child
    raise child_exception
My script is just to set password in pre-queue

I hop the forum allow me to post this :'(
hum ok : phpbb think py extension is an url ;D
Last edited by GzergzSra on December 26th, 2017, 5:28 am, edited 1 time in total.
GzergzSra
Newbie
Newbie
Posts: 5
Joined: December 1st, 2017, 3:41 pm

Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Post by GzergzSra »

My script :

Code: Select all

import sys
try:
    (scriptname, nzbname, postprocflags, category, script, prio, downloadsize, grouplist, showname, season, episodenumber, episodename) = sys.argv
except:
    sys.exit(1)    # exit with 1 causes SABnzbd to ignore the output of this script

nzbname = nzbname.replace("REPOST-", "")
nzbname = nzbname.replace(".nfo", "")
nzbname = nzbname + " / " + nzbname

print "1"    # Accept
print nzbname
print
print
print
print
print
# 0 means OK
sys.exit(0)

User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Post by sander »

Long shot: in first line of script put:

#!/usr/bin/python2
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Post by safihre »

Is there more in the log? It seems maybe the first or last lines of the error got cut off, in which it says what exception is being thrown.
If you can't post it due to the forum software, you can also email it to me at [email protected]
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
GzergzSra
Newbie
Newbie
Posts: 5
Joined: December 1st, 2017, 3:41 pm

Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Post by GzergzSra »

sander wrote: December 4th, 2017, 3:17 pm Long shot: in first line of script put:

#!/usr/bin/python2
Hi, unfortunately that change nothing.
But thanks!
safihre wrote: December 4th, 2017, 4:38 pm Is there more in the log? It seems maybe the first or last lines of the error got cut off, in which it says what exception is being thrown.
If you can't post it due to the forum software, you can also email it to me at [email protected]
Hi Safihre,

I will send you the full log in a few minutes.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Post by safihre »

I found a bug in the SABnzbd code, I hope to release RC2 tomorrow.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
GzergzSra
Newbie
Newbie
Posts: 5
Joined: December 1st, 2017, 3:41 pm

Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Post by GzergzSra »

Hi Safihre,

I will test it when RC2 will be available on the jcfp ppa.

thanks ! :)
GzergzSra
Newbie
Newbie
Posts: 5
Joined: December 1st, 2017, 3:41 pm

Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Post by GzergzSra »

Resolved in the 2.3.2 release ;D
Thx
Post Reply