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: 4
Joined: December 1st, 2017, 3:41 pm

2.3.2RC1 on Zesty ; Error on pre queu scripts

Post by GzergzSra » December 4th, 2017, 3:04 pm

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

GzergzSra
Newbie
Newbie
Posts: 4
Joined: December 1st, 2017, 3:41 pm

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

Post by GzergzSra » December 4th, 2017, 3:07 pm

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: 6160
Joined: January 22nd, 2008, 2:22 pm

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

Post by sander » December 4th, 2017, 3:17 pm

Long shot: in first line of script put:

#!/usr/bin/python2

User avatar
safihre
Administrator
Administrator
Posts: 2214
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

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

Post by safihre » 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]

GzergzSra
Newbie
Newbie
Posts: 4
Joined: December 1st, 2017, 3:41 pm

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

Post by GzergzSra » December 7th, 2017, 2:45 pm

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: 2214
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

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

Post by safihre » December 7th, 2017, 4:52 pm

I found a bug in the SABnzbd code, I hope to release RC2 tomorrow.

GzergzSra
Newbie
Newbie
Posts: 4
Joined: December 1st, 2017, 3:41 pm

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

Post by GzergzSra » December 9th, 2017, 8:23 am

Hi Safihre,

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

thanks ! :)

Post Reply