Page 1 of 1
Debugging a processing script - rerun
Posted: January 27th, 2020, 2:32 pm
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?
Re: Debugging a processing script - rerun
Posted: January 28th, 2020, 8:11 am
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..
Re: Debugging a processing script - rerun
Posted: January 28th, 2020, 12:13 pm
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.
Re: Debugging a processing script - rerun
Posted: January 29th, 2020, 1:41 pm
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?
Re: Debugging a processing script - rerun
Posted: January 29th, 2020, 2:44 pm
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..
Re: Debugging a processing script - rerun
Posted: January 29th, 2020, 4:05 pm
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.