March 22, 201511 yr [TL/DR Solution: The Needo template for SABNZBD does not run BASH postprocessing scripts. Python scripts work fine.] Hi Guys - I've tried searching but can't seem to find a resolution to my issue. I've configured SABNZBD to run a post-processing script, but it kicks out this error when it tries to executive the script: 2015-03-22 10:59:08,325::DEBUG::[newsunpack:157] Failed script /scripts/sab_pp_mount_and_copy.sh, Traceback: Traceback (most recent call last): File "/usr/share/sabnzbdplus/sabnzbd/newsunpack.py", line 155, in external_processing startupinfo=stup, env=env, creationflags=creationflags) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory I've configured the docker volumes as advised (/mnt/user:/mnt/user rw) I have configured the right post-processing folder in SAB, and I've selected the script in the category config page too. I've also checked all linux permissions to make sure ownership, group and execute rights are correct on the script folder and the script itself. (I've attached pics) The script itself works fine (I can run it manually from the command line) but SAB can't seem to run it when it comes time to process? What am I missing?
March 23, 201511 yr so your scripts folder is mounted as /mnt/cache/appdata/sabnzbd/scripts while you are telling sab it is in /mnt/user/appdata/....etc I'm still fairly new as well but it looks like your paths are probably different.
March 23, 201511 yr so your scripts folder is mounted as /mnt/cache/appdata/sabnzbd/scripts while you are telling sab it is in /mnt/user/appdata/....etc I'm still fairly new as well but it looks like your paths are probably different. Bingo. Seconded that this is where the problem lies. Nice catch.
March 23, 201511 yr You're also creating extra volumes. In theory, once you map /mnt:/mnt you don't need any of the other volumes because the rest can ALL be accessed under /mnt. Still, the /config volume is setup to store the config data so it's needed. You don't need the /scripts volume because you can just use the /config volume to get to /config/scripts inside the Docker. You don't need /downloads because you can just use the /mnt volume to get to /mnt/user/Movies/TV_Series_Downloads inside the Docker. You don't need the /mnt/user volume because you can just use the /mnt volume to get to the /mnt/user inside the Docker. I personally don't like creating a wide-open volume like /mnt:/mnt. Use a volume to drill-down to each directory you want to access.
March 23, 201511 yr You're also creating extra volumes. In theory, once you map /mnt:/mnt you don't need any of the other volumes because the rest can ALL be accessed under /mnt. Still, the /config volume is setup to store the config data so it's needed. You don't need the /scripts volume because you can just use the /config volume to get to /config/scripts inside the Docker. You don't need /downloads because you can just use the /mnt volume to get to /mnt/user/Movies/TV_Series_Downloads inside the Docker. You don't need the /mnt/user volume because you can just use the /mnt volume to get to the /mnt/user inside the Docker. I personally don't like creating a wide-open volume like /mnt:/mnt. Use a volume to drill-down to each directory you want to access. The hardest part I had with the transition from plugins to Docker containers on unRAID was keeping track of the different paths. In the end I just started creating mountpoints that are the same between the two (i.e., /mnt/cache/ goes to /mnt/cache, /mnt/user/TV goes to /mnt/user/TV) to stay consistent. Still forced to use /config, but for everything else--especially something like sab that has a whole lot of potential customizable locations--I go with the full unRAID path.
March 23, 201511 yr Author Thanks for trying, guys but no dice. I know I've got some extra volumes, I'll deal with that later. I've attached my docker volume list and the SABNZB postprocessing folder config: I still get this error: 2015-03-23 18:30:25,472::DEBUG::[newsunpack:157] Failed script /mnt/user/appdata/sabnzbd/scripts/sab_pp_mount_and_copy.sh, T raceback: Traceback (most recent call last): File "/usr/share/sabnzbdplus/sabnzbd/newsunpack.py", line 155, in external_processing startupinfo=stup, env=env, creationflags=creationflags) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
March 26, 201511 yr Author Well, i tried that too with no change in error. But, I tried writing a rudimentary Python post-processing script, and it worked. So it just doesn't like BASH post-processing scripts. I'm using the Needo template for SABNZBD. ...time to learn python I guess! I grew up on BASH tho! darn!
October 1, 201510 yr Did you ever figure this out? Can you use the SabtoSickbeard script that comes with Sickbeard?
Archived
This topic is now archived and is closed to further replies.