Debugging a processing script - rerun

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.
Post Reply
psycik
Full Member
Full Member
Posts: 108
Joined: September 28th, 2009, 2:33 pm

Debugging a processing script - rerun

Post by psycik »

Is there a way of re-running a script that failed after a download? Or do I need to read the log and replicate the command line parms?
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Debugging a processing script - rerun

Post by safihre »

If you click Retry it should skip all the completed steps and proceed directly to the Script section.
Doesn't always work perfectlty..
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
psycik
Full Member
Full Member
Posts: 108
Joined: September 28th, 2009, 2:33 pm

Re: Debugging a processing script - rerun

Post by psycik »

Ok, I’ll try that. I can get it working when I manually execute it in the docker container, but seem to get a permission error when sab does it.
psycik
Full Member
Full Member
Posts: 108
Joined: September 28th, 2009, 2:33 pm

Re: Debugging a processing script - rerun

Post by psycik »

So I had another one fail. It just gets:
PermissionError: [Errno 13] Permission denied: 'util.cpython-36.pyc'
But doesn't seem to cause the download to fail, so there isn't a retry button. Is there an api call I can make to retry a download or kick it off?
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Debugging a processing script - rerun

Post by safihre »

Strange, seems your docker is having a problem running Python in general.
The retry will only work if SAB detected it as failed..
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
psycik
Full Member
Full Member
Posts: 108
Joined: September 28th, 2009, 2:33 pm

Re: Debugging a processing script - rerun

Post by psycik »

I did change the script (nzbtomedia) to python3...and if I run the python command inside the container it does work.

But for some reason, sab can't run it. I have cleaned up the __pycache dirs as there was some ownership issues.
Post Reply