Sickbeard post processing script

Come up with a useful post-processing script? Share it here!
Post Reply
deltaleader
Newbie
Newbie
Posts: 5
Joined: February 9th, 2011, 10:18 pm

Sickbeard post processing script

Post by deltaleader »

I recently migrated my sabnzbd plus sickbeard setup to Linux, and in general all is working great. The only issue that I have left is that the post processing script for Sickbeard (sabtosickbeard.py) fails when a new show downloads. I have verified that the script can be ran called directly from terminal, but it still fails in Sabnzbd.

This is the error that I get:

Exit(-1) Cannot run script /home/xxxxxx/Scripts/sabToSickBeard.py

Any ideas? Thanks for the help in advance.
User avatar
Mar2zz
Jr. Member
Jr. Member
Posts: 85
Joined: February 4th, 2011, 8:30 am
Contact:

Re: Sickbeard post processing script

Post by Mar2zz »

Did you rename autoProcessTV.cfg.sample to autoProcessTV.cfg and edited it with your setup?

Is Sickbeard running as the same user you execute this manually with? (stop then edit /etc/init.d/sickbeard and edit USER=)

The best option is to symlink sabtosickbeard.py to your scriptsdirectory (ln -s /home/xxxxxx/sickbeard/sabToSickbeard.py /home/xxxxx/Scripts/sabToSickbeard.py.

Is it really executable? running sh scriptname doesn't mean it's executable, running ./scriptname means it is.

If one of the above isn't a solution then I don't know...
Last edited by Mar2zz on February 10th, 2011, 1:26 pm, edited 1 time in total.
deltaleader
Newbie
Newbie
Posts: 5
Joined: February 9th, 2011, 10:18 pm

Re: Sickbeard post processing script

Post by deltaleader »

Thanks for the help. I had already tried the first two suggestions, but have now tried making the script a symlink. When I run ./sabtosickbeard.py from the Sickbeard/autoprocessTV directory it runs OK. When I attempt to run it from ~/Scripts, it says -bash: ./sabToSickBeard.py: Too many levels of symbolic links"? Is this an issue?
User avatar
Mar2zz
Jr. Member
Jr. Member
Posts: 85
Joined: February 4th, 2011, 8:30 am
Contact:

Re: Sickbeard post processing script

Post by Mar2zz »

I don't know. Did you remove the sabToSickbeard.py in your scriptsdirectory prior to creating the symlink? If not, delete in your scriptsfolder and try again. And use fullpathnames for creating the link to avoid problems.
deltaleader
Newbie
Newbie
Posts: 5
Joined: February 9th, 2011, 10:18 pm

Re: Sickbeard post processing script

Post by deltaleader »

I did remove it first, and create the symlink with the full pathname. I just used the ~/ notation to make me have to type less here :). I'll report back after Sickbeard does it's thing tonight.
deltaleader
Newbie
Newbie
Posts: 5
Joined: February 9th, 2011, 10:18 pm

Re: Sickbeard post processing script

Post by deltaleader »

With using the symlink Sabnzbd wouldn't even see the script. I then deleted the symlink, and copied over the script from the autoprocesstv folder. Then verified that all scripts in my scripts folder were marked as executable. Works now. Thanks for the help!
User avatar
Mar2zz
Jr. Member
Jr. Member
Posts: 85
Joined: February 4th, 2011, 8:30 am
Contact:

Re: Sickbeard post processing script

Post by Mar2zz »

glad it works for you. I symlink every script I have to my postprocessingfolder and that works ok, big questionmark why it won't work for you.
Post Reply