Debugging a processing script - rerun
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.
Debugging a processing script - rerun
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?
Re: Debugging a processing script - rerun
If you click Retry it should skip all the completed steps and proceed directly to the Script section.
Doesn't always work perfectlty..
Doesn't always work perfectlty..
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Re: Debugging a processing script - rerun
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.
Re: Debugging a processing script - rerun
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?
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?
Re: Debugging a processing script - rerun
Strange, seems your docker is having a problem running Python in general.
The retry will only work if SAB detected it as failed..
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
Re: Debugging a processing script - rerun
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.
But for some reason, sab can't run it. I have cleaned up the __pycache dirs as there was some ownership issues.

