[Synology][upnp] Post process script error

Come up with a useful post-processing script? Share it here!
Post Reply
differenthink
Newbie
Newbie
Posts: 5
Joined: April 18th, 2011, 10:58 am

[Synology][upnp] Post process script error

Post 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.
ddacer
Newbie
Newbie
Posts: 3
Joined: June 10th, 2011, 11:24 am

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

Post 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
differenthink
Newbie
Newbie
Posts: 5
Joined: April 18th, 2011, 10:58 am

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

Post by differenthink »

Sadly i didn't find any solution :/.... be if you do let me know..
Sledgehammer
Newbie
Newbie
Posts: 9
Joined: September 6th, 2010, 12:59 pm

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

Post by Sledgehammer »

there must be a way!!!!  argghhh
User avatar
Mar2zz
Jr. Member
Jr. Member
Posts: 85
Joined: February 4th, 2011, 8:30 am
Contact:

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

Post 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....
starsys
Newbie
Newbie
Posts: 33
Joined: July 26th, 2011, 4:17 am

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

Post 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.
Post Reply