Page 1 of 1

[Synology][upnp] Post process script error

Posted: April 18th, 2011, 1:23 pm
by differenthink
Hello,

I m trying to run a post process script that will update my synology upnp index (synoindex) when the download is done.

My script is pretty simple :

Code: Select all

#!/bin/bash
/usr/syno/bin/synoindex -a "$1"
/usr/syno/bin/synoindex -A "$1"

Code: Select all

Here is the error i ve from Sabnzb :
2011-04-18 05:28:37,692::INFO::[newsunpack:127] Running external script /volume1/Downloads/scripts/upnp_update.sh(/volume1/video/Series/Desperate Housewives/Season 7, Desperate.Housewives.S07E18.720p.HDTV.X264-DIMENSION.nzb, Desperate.Housewives.S07E18.720p.HDTV.X264-DIMENSION, , tv, alt.binaries.teevee, 0)
2011-04-18 05:28:37,807::INFO::[newsunpack:134] Failed script /volume1/Downloads/scripts/upnp_update.sh, Traceback: 
Traceback (most recent call last):
  File "/usr/local/sabnzbd/share/SABnzbd/sabnzbd/newsunpack.py", line 132, in external_processing
    startupinfo=stup, env=env, creationflags=creationflags)
  File "/usr/local/sabnzbd/lib/python2.6/subprocess.py", line 623, in __init__
    errread, errwrite)
  File "/usr/local/sabnzbd/lib/python2.6/subprocess.py", line 1141, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
I don't really understand where is the problem.
The command "/usr/syno/bin/synoindex -a " is working, i checked in console.
Is the problem on the file path ? i don't know how to test it...
I also thought about permission problem, but my script is chmod 777...

So any help would be very appreciated.

Thank you.

Re: [Synology][upnp] Post process script error

Posted: June 10th, 2011, 11:45 am
by ddacer
hello

sorry for my english , i 'm french.
i m looking the same script for indexing film and  music. are you find the solution for doing indexation?
if it's the case, could you write the script on this discusion.
thank in advance

bye

Re: [Synology][upnp] Post process script error

Posted: June 10th, 2011, 12:48 pm
by differenthink
Sadly i didn't find any solution :/.... be if you do let me know..

Re: [Synology][upnp] Post process script error

Posted: June 29th, 2011, 4:40 pm
by Sledgehammer
there must be a way!!!!  argghhh

Re: [Synology][upnp] Post process script error

Posted: July 1st, 2011, 12:55 pm
by Mar2zz
Don't know if this is a solution, but synology doesn't have bash, but ash.

On top of your script you have #!/bin/bash, change that into #!/bin/sh. Maybe that will work, I have no synology, but it's worth a try....

Re: [Synology][upnp] Post process script error

Posted: July 26th, 2011, 4:23 pm
by starsys
Hello. I really need this cool script. Can anyone help me to make it work with the last version of sabnzbd ?
What is the syntax ? How should I rename the script file ? Thanks a lot from France in advance.